Versions in this module Expand all Collapse all v0 v0.26.0 Feb 18, 2026 Changes in this version + const ASCIICasemap + const ASCIINumeric + const UnicodeCasemap + func RegisterCapability(c Capability) + func RegisterMethod(name string, factory MethodResponseFactory) + type Account struct + Capabilities map[URI]Capability + ID string + IsPersonal bool + IsReadOnly bool + Name string + RawCapabilities map[URI]json.RawMessage + func (a *Account) UnmarshalJSON(data []byte) error + type AddedItem struct + ID ID + Index uint64 + type Capability interface + New func() Capability + URI func() URI + type Client struct + HttpClient *http.Client + Session *Session + SessionEndpoint string + func (c *Client) Authenticate() error + func (c *Client) Do(req *Request) (*Response, error) + func (c *Client) Download(accountID ID, blobID ID) (io.ReadCloser, error) + func (c *Client) DownloadWithContext(ctx context.Context, accountID ID, blobID ID) (io.ReadCloser, error) + func (c *Client) Upload(accountID ID, blob io.Reader) (*UploadResponse, error) + func (c *Client) UploadWithContext(ctx context.Context, accountID ID, blob io.Reader) (*UploadResponse, error) + func (c *Client) WithAccessToken(token string) *Client + func (c *Client) WithBasicAuth(username string, password string) *Client + type CollationAlgo string + type EventType string + const AllEvents + type ID string + func (id ID) MarshalJSON() ([]byte, error) + func (id ID) Valid() (bool, error) + type Invocation struct + Args interface{} + CallID string + Name string + func (i *Invocation) MarshalJSON() ([]byte, error) + func (i *Invocation) UnmarshalJSON(data []byte) error + type Method interface + Name func() string + Requires func() []URI + type MethodError struct + Description *string + Type string + func (m *MethodError) Error() string + type MethodResponse interface + type MethodResponseFactory func() MethodResponse + type Operator string + const OperatorAND + const OperatorNOT + const OperatorOR + type Patch map[string]interface + type Request struct + Calls []*Invocation + Context context.Context + CreatedIDs map[ID]ID + Using []URI + func (r *Request) Invoke(m Method) string + type RequestError struct + Detail string + Limit *string + Status int + Type string + func (e *RequestError) Error() string + type Response struct + CreatedIDs map[ID]ID + Responses []*Invocation + SessionState string + type ResultReference struct + Name string + Path string + ResultOf string + type Session struct + APIURL string + Accounts map[ID]Account + Capabilities map[URI]Capability + DownloadURL string + EventSourceURL string + PrimaryAccounts map[URI]ID + RawCapabilities map[URI]json.RawMessage + State string + UploadURL string + Username string + func (s *Session) UnmarshalJSON(data []byte) error + type SetError struct + Description *string + ExistingID *ID + Properties *[]string + Type string + type StateChange struct + Changed map[ID]TypeState + Type string + type TypeState map[string]string + type URI string + const CoreURI + type UploadResponse struct + Account ID + ID ID + Size uint64 + Type string