Documentation
¶
Index ¶
- func SetLogger(l Logger)
- type AccountCreateRequest
- type AccountVerifyEmailRequest
- type Client
- func (c *Client) AccountCreate(ctx context.Context, account *keys.EdX25519Key, email string) error
- func (c *Client) AccountVerify(ctx context.Context, account *keys.EdX25519Key, code string) error
- func (c *Client) Delete(ctx context.Context, key *keys.EdX25519Key) error
- func (c *Client) Events(ctx context.Context, key *keys.EdX25519Key, index int64) (*Events, error)
- func (c *Client) Get(ctx context.Context, vault *keys.EdX25519Key) (*Vault, error)
- func (c *Client) Post(ctx context.Context, key *keys.EdX25519Key, data [][]byte) error
- func (c *Client) Register(ctx context.Context, key *keys.EdX25519Key, account *keys.EdX25519Key) (*api.Key, error)
- func (c *Client) Status(ctx context.Context, vlts []*Vault) ([]*RemoteStatus, error)
- type Event
- type Events
- type LogLevel
- type Logger
- type RemoteStatus
- type Vault
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AccountCreateRequest ¶
type AccountCreateRequest struct {
Email string `json:"email"`
}
AccountCreateRequest ...
type AccountVerifyEmailRequest ¶
type AccountVerifyEmailRequest struct {
Code string `json:"code"`
}
AccountCreateRequest ...
type Client ¶
Client ...
func (*Client) AccountCreate ¶
func (*Client) AccountVerify ¶
func (*Client) Events ¶
Events from vault API. If truncated, there are more results if you call again with the new index.
type Event ¶
type Event struct { VID keys.ID `db:"vid"` Data []byte `db:"data"` RemoteIndex int64 `db:"ridx"` RemoteTimestamp time.Time `db:"rts"` }
Event pulled from remote.
type Logger ¶
type Logger interface { Debugf(format string, args ...interface{}) Infof(format string, args ...interface{}) Warningf(format string, args ...interface{}) Errorf(format string, args ...interface{}) Fatalf(format string, args ...interface{}) }
Logger interface used in this package.
Click to show internal directories.
Click to hide internal directories.