Documentation
¶
Overview ¶
Package client is a a simple muxrpc interface to common ssb methods, similar to npm:ssb-client
Index ¶
- type Client
- func (c Client) BlobsGet(ref refs.BlobRef) (io.Reader, error)
- func (c Client) BlobsHas(ref refs.BlobRef) (bool, error)
- func (c Client) BlobsWant(ref refs.BlobRef) error
- func (c Client) Close() error
- func (c Client) CreateHistoryStream(o message.CreateHistArgs) (*muxrpc.ByteSource, error)
- func (c Client) CreateLogStream(o message.CreateLogArgs) (*muxrpc.ByteSource, error)
- func (c Client) MessagesByType(o message.MessagesByTypeArgs) (*muxrpc.ByteSource, error)
- func (c Client) NamesGet() (NamesGetResult, error)
- func (c Client) NamesImageFor(ref refs.FeedRef) (refs.BlobRef, error)
- func (c Client) NamesSignifier(ref refs.FeedRef) (string, error)
- func (c Client) PrivatePublish(v interface{}, recps ...refs.FeedRef) (refs.MessageRef, error)
- func (c Client) PrivateRead() (*muxrpc.ByteSource, error)
- func (c Client) Publish(v interface{}) (refs.MessageRef, error)
- func (c Client) ReplicateUpTo() (*muxrpc.ByteSource, error)
- func (c Client) TanglesThread(o message.TanglesArgs) (*muxrpc.ByteSource, error)
- func (c Client) Whoami() (refs.FeedRef, error)
- type NamesGetResult
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { muxrpc.Endpoint // contains filtered or unexported fields }
func FromEndpoint ¶
func (Client) CreateHistoryStream ¶
func (c Client) CreateHistoryStream(o message.CreateHistArgs) (*muxrpc.ByteSource, error)
func (Client) CreateLogStream ¶
func (c Client) CreateLogStream(o message.CreateLogArgs) (*muxrpc.ByteSource, error)
func (Client) MessagesByType ¶
func (c Client) MessagesByType(o message.MessagesByTypeArgs) (*muxrpc.ByteSource, error)
func (Client) NamesGet ¶
func (c Client) NamesGet() (NamesGetResult, error)
func (Client) PrivatePublish ¶
func (Client) PrivateRead ¶
func (Client) ReplicateUpTo ¶
func (Client) TanglesThread ¶ added in v0.2.1
func (c Client) TanglesThread(o message.TanglesArgs) (*muxrpc.ByteSource, error)
type NamesGetResult ¶
func (NamesGetResult) GetCommonName ¶
func (ngr NamesGetResult) GetCommonName(feed refs.FeedRef) (string, bool)
Click to show internal directories.
Click to hide internal directories.