ssb

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2022 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

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) InviteAccept added in v0.5.0

func (c *Client) InviteAccept(invite string) ([]byte, error)

func (*Client) InviteCreate added in v0.5.0

func (c *Client) InviteCreate(n uint) ([]byte, error)

func (*Client) LogStream

func (c *Client) LogStream() (chan []byte, error)

func (*Client) ReceiveLast

func (c *Client) ReceiveLast(id, contentType string, limit int64) ([]byte, error)

func (*Client) Transmit

func (c *Client) Transmit(v interface{}) ([]byte, error)

func (*Client) WhoAmI

func (c *Client) WhoAmI() ([]byte, error)

type Config

type Config struct {
	Keys ssb.KeyPair
	Shs  string
	Addr net.Addr
}

func (*Config) Client

func (cfg *Config) Client(ctx context.Context) (*Client, error)

type Endpoint

type Endpoint interface {
	Async(context.Context, interface{}, muxrpc.RequestEncoding, muxrpc.Method, ...interface{}) error
	Source(context.Context, muxrpc.RequestEncoding, muxrpc.Method, ...interface{}) (*muxrpc.ByteSource, error)
}

type FeedAssetPrice

type FeedAssetPrice struct {
	Type           string          `json:"type"`
	Version        string          `json:"version"`
	Price          float64         `json:"price"`
	PriceHex       string          `json:"priceHex"`
	Time           int             `json:"time"`
	TimeHex        string          `json:"timeHex"`
	Hash           string          `json:"hash"`
	Signature      string          `json:"signature"`
	Sources        json.RawMessage `json:"sources"`
	StarkSignature json.RawMessage `json:"starkSignature"`
}

Jump to

Keyboard shortcuts

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