at

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 19, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(service string) *Client

func (*Client) GetIdentity

func (c *Client) GetIdentity(ctx context.Context, raw string) (*identity.Identity, error)

func (*Client) GetRecord

func (c *Client) GetRecord(ctx context.Context, collection, repo, rkey string) (*RecordWithIdentity, error)

func (*Client) GetRepo

func (c *Client) GetRepo(ctx context.Context, repo string) (*RepoWithIdentity, error)

func (*Client) ListRecords

func (c *Client) ListRecords(ctx context.Context, collection, repo string) (*RecordsWithIdentity, error)

type JetStreamClient

type JetStreamClient struct {
	// contains filtered or unexported fields
}

func NewJetstreamClient

func NewJetstreamClient() *JetStreamClient

func (*JetStreamClient) Err

func (c *JetStreamClient) Err() <-chan error

func (*JetStreamClient) Out

func (c *JetStreamClient) Out() <-chan *models.Event

func (*JetStreamClient) Start

func (c *JetStreamClient) Start(ctx context.Context, cxs, dids []string, cursor *int64)

type Record

type Record struct {
	Uri   string
	Cid   string
	Value *json.RawMessage
}

func NewRecordFromGet

func NewRecordFromGet(r *agnostic.RepoGetRecord_Output) *Record

func NewRecordFromList

func NewRecordFromList(r *agnostic.RepoListRecords_Record) *Record

func (*Record) Collection

func (r *Record) Collection() string

type RecordWithIdentity

type RecordWithIdentity struct {
	Identity *identity.Identity
	Record   *Record
}

type RecordsWithIdentity

type RecordsWithIdentity struct {
	Identity *identity.Identity
	Records  []*Record
}

func (*RecordsWithIdentity) Collection

func (r *RecordsWithIdentity) Collection() string

type RepoWithIdentity

type RepoWithIdentity struct {
	Identity *identity.Identity
	Repo     *comatproto.RepoDescribeRepo_Output
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL