Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Defs_FileView ¶
type Defs_FileView struct {
Blob *util.LexBlob `json:"blob" cborgen:"blob"`
Cid string `json:"cid" cborgen:"cid"`
CreatedAt string `json:"createdAt" cborgen:"createdAt"`
Description *string `json:"description,omitempty" cborgen:"description,omitempty"`
Name string `json:"name" cborgen:"name"`
Slug string `json:"slug" cborgen:"slug"`
Uri string `json:"uri" cborgen:"uri"`
}
Defs_FileView is a "fileView" in the dev.skywell.defs schema.
type Defs_ProfileView ¶
type Defs_ProfileView struct {
Avatar *string `json:"avatar,omitempty" cborgen:"avatar,omitempty"`
Did string `json:"did" cborgen:"did"`
DisplayName *string `json:"displayName,omitempty" cborgen:"displayName,omitempty"`
FileCount *int64 `json:"fileCount,omitempty" cborgen:"fileCount,omitempty"`
Handle string `json:"handle" cborgen:"handle"`
}
Defs_ProfileView is a "profileView" in the dev.skywell.defs schema.
func GetActorProfile ¶
func GetActorProfile(ctx context.Context, c util.LexClient, actor string) (*Defs_ProfileView, error)
GetActorProfile calls the XRPC method "dev.skywell.getActorProfile".
actor: Handle or DID of account to fetch profile of.
type File ¶
type File struct {
LexiconTypeID string `json:"$type,const=dev.skywell.file" cborgen:"$type,const=dev.skywell.file"`
BlobRef *util.LexBlob `json:"blobRef" cborgen:"blobRef"`
CreatedAt string `json:"createdAt" cborgen:"createdAt"`
Description *string `json:"description,omitempty" cborgen:"description,omitempty"`
Name string `json:"name" cborgen:"name"`
Slug *string `json:"slug,omitempty" cborgen:"slug,omitempty"`
}
RECORDTYPE: File
type GetActorFiles_Output ¶ added in v0.1.4
type GetActorFiles_Output struct {
Actor *Defs_ProfileView `json:"actor" cborgen:"actor"`
Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
Files []*Defs_FileView `json:"files" cborgen:"files"`
}
GetActorFiles_Output is the output of a dev.skywell.getActorFiles call.
type GetFileFromSlug_Output ¶ added in v0.1.12
type GetFileFromSlug_Output struct {
Actor *Defs_ProfileView `json:"actor" cborgen:"actor"`
// cid: CID of the file record.
Cid string `json:"cid" cborgen:"cid"`
File *Defs_FileView `json:"file" cborgen:"file"`
// uri: Link to the file record.
Uri string `json:"uri" cborgen:"uri"`
}
GetFileFromSlug_Output is the output of a dev.skywell.getFileFromSlug call.
func GetFileFromSlug ¶ added in v0.1.12
func GetFileFromSlug(ctx context.Context, c util.LexClient, slug string) (*GetFileFromSlug_Output, error)
GetFileFromSlug calls the XRPC method "dev.skywell.getFileFromSlug".
slug: Slug to convert to ATProto info.
Click to show internal directories.
Click to hide internal directories.