Documentation ¶
Index ¶
- func ResolveDidToHandle(ctx context.Context, atp *ATProto, pls *PLCServer, udid string) (string, string, error)
- type ATProto
- func (atp *ATProto) CreateAccount(ctx context.Context, email, handle, password string, invite *string) (*CreateAccountResp, error)
- func (atp *ATProto) CreateSession(ctx context.Context, handle, password string) (*CreateSessionResp, error)
- func (atp *ATProto) HandleResolve(ctx context.Context, handle string) (string, error)
- func (atp *ATProto) RepoCreateRecord(ctx context.Context, did, collection string, validate bool, rec interface{}) (*CreateRecordResponse, error)
- func (atp *ATProto) RepoDeleteRecord(ctx context.Context, did, collection, rkey string) error
- func (atp *ATProto) SessionRefresh(ctx context.Context) (*xrpc.AuthInfo, error)
- func (atp *ATProto) SyncGetRepo(ctx context.Context, did string, from *string) ([]byte, error)
- func (atp *ATProto) SyncGetRoot(ctx context.Context, did string) (string, error)
- type BskyApp
- func (b *BskyApp) ActorGetSuggestions(ctx context.Context, limit int, cursor *string) (*GetSuggestionsResp, error)
- func (b *BskyApp) FeedGetAuthorFeed(ctx context.Context, author string, limit int, before *string) (*bsky.FeedGetAuthorFeed_Output, error)
- func (b *BskyApp) FeedGetTimeline(ctx context.Context, algo string, limit int, before *string) (*bsky.FeedGetTimeline_Output, error)
- func (b *BskyApp) FeedSetVote(ctx context.Context, subject *PostRef, direction string) error
- func (b *BskyApp) GraphGetFollows(ctx context.Context, user string, limit int, before *string) (*GetFollowsResp, error)
- type CreateAccountResp
- type CreateOp
- type CreateRecordResponse
- type CreateSessionResp
- type Declaration
- type FeedItem
- type GSADeclaration
- type GetFollowsResp
- type GetSuggestionsActor
- type GetSuggestionsResp
- type GetTimelineResp
- type MyState
- type PLCServer
- type PostEntity
- type PostRecord
- type PostRef
- type RecordResponse
- type ReplyRef
- type TID
- type TextSlice
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ATProto ¶
func (*ATProto) CreateAccount ¶
func (*ATProto) CreateSession ¶
func (*ATProto) HandleResolve ¶
func (*ATProto) RepoCreateRecord ¶
func (*ATProto) RepoDeleteRecord ¶
func (*ATProto) SessionRefresh ¶
func (*ATProto) SyncGetRepo ¶
type BskyApp ¶
func (*BskyApp) ActorGetSuggestions ¶
func (*BskyApp) FeedGetAuthorFeed ¶
func (*BskyApp) FeedGetTimeline ¶
func (*BskyApp) FeedSetVote ¶
func (*BskyApp) GraphGetFollows ¶
type CreateAccountResp ¶
type CreateOp ¶
type CreateOp struct { Type string `json:"type" cborgen:"type"` SigningKey string `json:"signingKey" cborgen:"signingKey"` RecoveryKey string `json:"recoveryKey" cborgen:"recoveryKey"` Handle string `json:"handle" cborgen:"handle"` Service string `json:"service" cborgen:"service"` Prev *string `json:"prev" cborgen:"prev"` Sig string `json:"sig" cborgen:"sig,omitempty"` }
type CreateRecordResponse ¶
type CreateSessionResp ¶
type Declaration ¶
type GSADeclaration ¶
type GetFollowsResp ¶
type GetSuggestionsActor ¶
type GetSuggestionsResp ¶
type GetSuggestionsResp struct { Cursor string `json:"cursor"` Actors []GetSuggestionsActor `json:"actors"` }
type GetTimelineResp ¶
type PostEntity ¶
type PostEntity struct { Index *TextSlice `json:"index" cborgen:"index"` Type string `json:"type" cborgen:"type"` Value string `json:"value" cborgen:"value"` }
func (*PostEntity) MarshalCBOR ¶
func (t *PostEntity) MarshalCBOR(w io.Writer) error
func (*PostEntity) UnmarshalCBOR ¶
func (t *PostEntity) UnmarshalCBOR(r io.Reader) (err error)
type PostRecord ¶
type PostRecord struct { Type string `json:"$type,omitempty" cborgen:"$type"` Text string `json:"text" cborgen:"text"` Entities []*PostEntity `json:"entities,omitempty" cborgen:"entities"` Reply *ReplyRef `json:"reply,omitempty" cborgen:"reply"` CreatedAt string `json:"createdAt" cborgen:"createdAt"` }
func (*PostRecord) MarshalCBOR ¶
func (t *PostRecord) MarshalCBOR(w io.Writer) error
func (*PostRecord) UnmarshalCBOR ¶
func (t *PostRecord) UnmarshalCBOR(r io.Reader) (err error)
type RecordResponse ¶
type ReplyRef ¶
Click to show internal directories.
Click to hide internal directories.