Documentation
¶
Index ¶
- type Client
- func (c *Client) GetIdentity(ctx context.Context, raw string) (*identity.Identity, error)
- func (c *Client) GetRecord(ctx context.Context, collection, repo, rkey string) (*RecordWithIdentity, error)
- func (c *Client) GetRepo(ctx context.Context, repo string) (*RepoWithIdentity, error)
- func (c *Client) ListRecords(ctx context.Context, collection, repo string) (*RecordsWithIdentity, error)
- type JetStreamClient
- type Record
- type RecordWithIdentity
- type RecordsWithIdentity
- type RepoWithIdentity
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 (*Client) GetIdentity ¶
func (*Client) ListRecords ¶
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
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 ¶
type RecordWithIdentity ¶
type RecordsWithIdentity ¶
func (*RecordsWithIdentity) Collection ¶
func (r *RecordsWithIdentity) Collection() string
type RepoWithIdentity ¶
type RepoWithIdentity struct {
Identity *identity.Identity
Repo *comatproto.RepoDescribeRepo_Output
}
Click to show internal directories.
Click to hide internal directories.