skywell

package module
v0.1.19 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2025 License: MIT Imports: 9 Imported by: 0

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

func (*File) MarshalCBOR

func (t *File) MarshalCBOR(w io.Writer) error

func (*File) UnmarshalCBOR

func (t *File) UnmarshalCBOR(r io.Reader) (err error)

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.

func GetActorFiles added in v0.1.4

func GetActorFiles(ctx context.Context, c util.LexClient, actor string, cursor string, limit int64) (*GetActorFiles_Output, error)

GetActorFiles calls the XRPC method "dev.skywell.getActorFiles".

actor: Handle or DID of account to get files from.

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.

Jump to

Keyboard shortcuts

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