this repo has no description
0
fork

Configure Feed

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

rename atproto/client to atproto/atclient

+21 -21
+1 -1
atproto/client/admin_auth.go atproto/atclient/admin_auth.go
··· 1 - package client 1 + package atclient 2 2 3 3 import ( 4 4 "net/http"
+1 -1
atproto/client/admin_auth_test.go atproto/atclient/admin_auth_test.go
··· 1 - package client 1 + package atclient 2 2 3 3 import ( 4 4 "context"
+1 -1
atproto/client/apiclient.go atproto/atclient/apiclient.go
··· 1 - package client 1 + package atclient 2 2 3 3 import ( 4 4 "bytes"
+1 -1
atproto/client/apiclient_test.go atproto/atclient/apiclient_test.go
··· 1 - package client 1 + package atclient 2 2 3 3 import ( 4 4 "testing"
+1 -1
atproto/client/apierror.go atproto/atclient/apierror.go
··· 1 - package client 1 + package atclient 2 2 3 3 import ( 4 4 "fmt"
+1 -1
atproto/client/apirequest.go atproto/atclient/apirequest.go
··· 1 - package client 1 + package atclient 2 2 3 3 import ( 4 4 "context"
+8 -8
atproto/client/cmd/atp-client-demo/main.go atproto/atclient/cmd/atp-client-demo/main.go
··· 8 8 "os" 9 9 10 10 comatproto "github.com/bluesky-social/indigo/api/agnostic" 11 - "github.com/bluesky-social/indigo/atproto/client" 11 + "github.com/bluesky-social/indigo/atproto/atclient" 12 12 "github.com/bluesky-social/indigo/atproto/identity" 13 13 "github.com/bluesky-social/indigo/atproto/syntax" 14 14 ··· 120 120 app.RunAndExitOnError() 121 121 } 122 122 123 - func getFeed(ctx context.Context, c *client.APIClient) error { 123 + func getFeed(ctx context.Context, c *atclient.APIClient) error { 124 124 params := map[string]any{ 125 125 "actor": "atproto.com", 126 126 "limit": 2, ··· 141 141 return nil 142 142 } 143 143 144 - func listRecords(ctx context.Context, c *client.APIClient) error { 144 + func listRecords(ctx context.Context, c *atclient.APIClient) error { 145 145 146 146 list, err := comatproto.RepoListRecords(ctx, c, "app.bsky.actor.profile", "", 10, "did:plc:ewvi7nxzyoun6zhxrhs64oiz", false) 147 147 if err != nil { ··· 159 159 func runGetFeedPublic(cctx *cli.Context) error { 160 160 ctx := cctx.Context 161 161 162 - c := client.APIClient{ 162 + c := atclient.APIClient{ 163 163 Host: cctx.String("host"), 164 164 } 165 165 ··· 169 169 func runListRecordsPublic(cctx *cli.Context) error { 170 170 ctx := cctx.Context 171 171 172 - c := client.APIClient{ 172 + c := atclient.APIClient{ 173 173 Host: cctx.String("host"), 174 174 } 175 175 ··· 186 186 187 187 dir := identity.DefaultDirectory() 188 188 189 - c, err := client.LoginWithPassword(ctx, dir, *atid, cctx.String("password"), "", nil) 189 + c, err := atclient.LoginWithPassword(ctx, dir, *atid, cctx.String("password"), "", nil) 190 190 if err != nil { 191 191 return err 192 192 } ··· 215 215 216 216 dir := identity.DefaultDirectory() 217 217 218 - c, err := client.LoginWithPassword(ctx, dir, *atid, cctx.String("password"), "", nil) 218 + c, err := atclient.LoginWithPassword(ctx, dir, *atid, cctx.String("password"), "", nil) 219 219 if err != nil { 220 220 return err 221 221 } ··· 227 227 func runLookupAdmin(cctx *cli.Context) error { 228 228 ctx := cctx.Context 229 229 230 - c := client.NewAdminClient(cctx.String("host"), cctx.String("admin-password")) 230 + c := atclient.NewAdminClient(cctx.String("host"), cctx.String("admin-password")) 231 231 232 232 var d json.RawMessage 233 233 params := map[string]any{
+1 -1
atproto/client/doc.go atproto/atclient/doc.go
··· 18 18 19 19 This package tries to use minimal dependencies beyond the Go standard library, to make it easy to reference as a dependency. It does require the [github.com/bluesky-social/indigo/atproto/syntax] and [github.com/bluesky-social/indigo/atproto/identity] sibling packages. In particular, this package does not include any auth methods requiring JWTs, to avoid adding any specific JWT implementation as a dependency. 20 20 */ 21 - package client 21 + package atclient
+1 -1
atproto/client/examples_test.go atproto/atclient/examples_test.go
··· 1 - package client 1 + package atclient 2 2 3 3 import ( 4 4 "context"
+1 -1
atproto/client/lexclient.go atproto/atclient/lexclient.go
··· 1 - package client 1 + package atclient 2 2 3 3 import ( 4 4 "bytes"
+1 -1
atproto/client/params.go atproto/atclient/params.go
··· 1 - package client 1 + package atclient 2 2 3 3 import ( 4 4 "encoding"
+1 -1
atproto/client/params_test.go atproto/atclient/params_test.go
··· 1 - package client 1 + package atclient 2 2 3 3 import ( 4 4 "net/url"
+1 -1
atproto/client/password_auth.go atproto/atclient/password_auth.go
··· 1 - package client 1 + package atclient 2 2 3 3 import ( 4 4 "context"
+1 -1
atproto/client/password_auth_test.go atproto/atclient/password_auth_test.go
··· 1 - package client 1 + package atclient 2 2 3 3 import ( 4 4 "bytes"
atproto/client/testdata/body.json atproto/atclient/testdata/body.json