Documentation ¶
Index ¶
- func SetLogger(l Logger)
- type Client
- func (c *Client) Deliver(id keyup.ID, msg []byte, recipients []keyup.ID) error
- func (c *Client) Messages(userKey *keyup.UserKey, version string) (*api.MessagesResponse, error)
- func (c *Client) PutSigchainStatement(st *keyup.Statement) error
- func (c *Client) PutUserPublicKey(upk *keyup.UserPublicKey) error
- func (c *Client) SetHTTPClient(httpClient *http.Client)
- func (c *Client) SetTimeNow(nowFn func() time.Time)
- func (c *Client) Sigchain(upk *keyup.UserPublicKey) (*api.SigchainResponse, error)
- func (c *Client) Sigchains(version string) (*api.SigchainsResponse, error)
- func (c *Client) URI() string
- func (c *Client) UserPublicKey(pkid keyup.ID) (*api.UserPublicKeyResponse, error)
- func (c *Client) UserPublicKeys(version string) (*api.UserPublicKeysResponse, error)
- func (c *Client) Users(query string, index int, limit int) (*api.UsersResponse, error)
- type LogLevel
- type Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client ...
func (*Client) PutSigchainStatement ¶
PutSigchainStatement ...
func (*Client) PutUserPublicKey ¶
func (c *Client) PutUserPublicKey(upk *keyup.UserPublicKey) error
PutUserPublicKey ...
func (*Client) SetHTTPClient ¶
SetHTTPClient sets the http.Client to use.
func (*Client) SetTimeNow ¶
SetTimeNow sets the clock Now fn.
func (*Client) Sigchain ¶
func (c *Client) Sigchain(upk *keyup.UserPublicKey) (*api.SigchainResponse, error)
Sigchain ...
func (*Client) Sigchains ¶
func (c *Client) Sigchains(version string) (*api.SigchainsResponse, error)
Sigchains ...
func (*Client) UserPublicKey ¶
UserPublicKey ...
func (*Client) UserPublicKeys ¶
func (c *Client) UserPublicKeys(version string) (*api.UserPublicKeysResponse, error)
UserPublicKeys ...
Click to show internal directories.
Click to hide internal directories.