update framework to v2

This commit is contained in:
2020-04-22 16:49:57 +00:00
parent a061ba63a1
commit 2b83c47c55
9 changed files with 14 additions and 14 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"strings"
"text/tabwriter"
"samhofi.us/x/keybase/types/chat1"
"samhofi.us/x/keybase/v2/types/chat1"
)
/*
+1 -1
View File
@@ -12,5 +12,5 @@ require (
github.com/ugorji/go/codec v1.1.7
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 // indirect
gopkg.in/yaml.v2 v2.2.4 // indirect
samhofi.us/x/keybase v0.0.0-20200315012740-74fb4a152b35
samhofi.us/x/keybase/v2 v2.0.1
)
+2 -2
View File
@@ -29,5 +29,5 @@ gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
gopkg.in/yaml.v2 v2.2.4 h1:/eiJrUcujPVeJ3xlSWaiNi3uSVmDGBK1pDHUHAnao1I=
gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
samhofi.us/x/keybase v0.0.0-20200315012740-74fb4a152b35 h1:pnpx+34wna1ML9JxHEChf3lDSBOOEh91B5IDuNFUZYk=
samhofi.us/x/keybase v0.0.0-20200315012740-74fb4a152b35/go.mod h1:fcva80IUFyWcHtV4bBSzgKg07K6Rvuvi3GtGCLNGkyE=
samhofi.us/x/keybase/v2 v2.0.1 h1:4PMIlG09Tft+g1zRBrZsZ32a3woxnmHVZHoKDgAy5/c=
samhofi.us/x/keybase/v2 v2.0.1/go.mod h1:lJivwhzMSV+WUg+XUbatszStjjFVcuLGl+xcQpqQ5GQ=
+3 -3
View File
@@ -4,9 +4,9 @@ import (
"log"
"strings"
"samhofi.us/x/keybase"
"samhofi.us/x/keybase/types/chat1"
"samhofi.us/x/keybase/types/stellar1"
"samhofi.us/x/keybase/v2"
"samhofi.us/x/keybase/v2/types/chat1"
"samhofi.us/x/keybase/v2/types/stellar1"
)
// RegisterHandlers is called by main to map these handler funcs to events
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"reflect"
"github.com/ugorji/go/codec"
"samhofi.us/x/keybase/types/chat1"
"samhofi.us/x/keybase/v2/types/chat1"
)
// KvStorePutStruct marshals an interface to JSON and sends to kvstore
+3 -3
View File
@@ -6,9 +6,9 @@ import (
"os"
"github.com/teris-io/shortid"
"samhofi.us/x/keybase"
"samhofi.us/x/keybase/types/chat1"
"samhofi.us/x/keybase/types/stellar1"
"samhofi.us/x/keybase/v2"
"samhofi.us/x/keybase/v2/types/chat1"
"samhofi.us/x/keybase/v2/types/stellar1"
)
// Bot holds the necessary information for the bot to work.
+1 -1
View File
@@ -3,7 +3,7 @@ package main
import (
"strings"
"samhofi.us/x/keybase/types/chat1"
"samhofi.us/x/keybase/v2/types/chat1"
)
// checkPermissionAndExecute will check the minimum required role for the permission and execute the handler function if allowed
+1 -1
View File
@@ -1,6 +1,6 @@
package main
import "samhofi.us/x/keybase/types/chat1"
import "samhofi.us/x/keybase/v2/types/chat1"
// hold reply information when needed
type botReply struct {
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"reflect"
"strings"
"samhofi.us/x/keybase/types/chat1"
"samhofi.us/x/keybase/v2/types/chat1"
)
// this JSON pretty prints errors and debug