this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

update users of PLCServer

+8 -8
+1 -1
cmd/bigsky/main.go
··· 399 399 { 400 400 mr := did.NewMultiResolver() 401 401 402 - didr := &api.PLCServer{Host: cctx.String("plc-host")} 402 + didr := &plc.PLCServer{Host: cctx.String("plc-host")} 403 403 mr.AddHandler("plc", didr) 404 404 405 405 webr := did.WebResolver{}
+2 -2
gen/main.go
··· 3 3 import ( 4 4 "reflect" 5 5 6 - "github.com/bluesky-social/indigo/api" 7 6 atproto "github.com/bluesky-social/indigo/api/atproto" 8 7 bsky "github.com/bluesky-social/indigo/api/bsky" 9 8 chat "github.com/bluesky-social/indigo/api/chat" ··· 14 13 "github.com/bluesky-social/indigo/events" 15 14 lexutil "github.com/bluesky-social/indigo/lex/util" 16 15 "github.com/bluesky-social/indigo/mst" 16 + "github.com/bluesky-social/indigo/plc" 17 17 "github.com/bluesky-social/indigo/repo" 18 18 "github.com/bluesky-social/indigo/util/labels" 19 19 ··· 38 38 panic(err) 39 39 } 40 40 41 - if err := genCfg.WriteMapEncodersToFile("api/cbor_gen.go", "api", api.CreateOp{}); err != nil { 41 + if err := genCfg.WriteMapEncodersToFile("plc/cbor_gen.go", "plc", plc.CreateOp{}); err != nil { 42 42 panic(err) 43 43 } 44 44
+1 -1
testing/utils.go
··· 50 50 type TestPDS struct { 51 51 dir string 52 52 server *pds.Server 53 - plc *api.PLCServer 53 + plc *plc.PLCServer 54 54 55 55 listener net.Listener 56 56
+4 -4
util/cliutil/util.go
··· 16 16 "strings" 17 17 "time" 18 18 19 - "github.com/bluesky-social/indigo/api" 20 19 "github.com/bluesky-social/indigo/did" 20 + "github.com/bluesky-social/indigo/plc" 21 21 "github.com/bluesky-social/indigo/xrpc" 22 22 slogGorm "github.com/orandin/slog-gorm" 23 23 "github.com/urfave/cli/v2" ··· 28 28 29 29 func GetDidResolver(cctx *cli.Context) did.Resolver { 30 30 mr := did.NewMultiResolver() 31 - mr.AddHandler("plc", &api.PLCServer{ 31 + mr.AddHandler("plc", &plc.PLCServer{ 32 32 Host: cctx.String("plc"), 33 33 }) 34 34 mr.AddHandler("web", &did.WebResolver{}) ··· 36 36 return mr 37 37 } 38 38 39 - func GetPLCClient(cctx *cli.Context) *api.PLCServer { 40 - return &api.PLCServer{ 39 + func GetPLCClient(cctx *cli.Context) *plc.PLCServer { 40 + return &plc.PLCServer{ 41 41 Host: cctx.String("plc"), 42 42 } 43 43 }