Versions in this module Expand all Collapse all v0 v0.1.3 Jun 25, 2022 v0.1.0 Jun 25, 2022 Changes in this version + type BlockchainKeystore interface + GetDatabase func(username, password string) (*encdb.Database, error) + GetRawDatabase func(username, password string) (database.Database, error) + type Client struct + func NewClient(uri string, requestTimeout time.Duration) *Client + func (c *Client) CreateUser(user api.UserPass) (bool, error) + func (c *Client) DeleteUser(user api.UserPass) (bool, error) + func (c *Client) ExportUser(user api.UserPass) ([]byte, error) + func (c *Client) ImportUser(user api.UserPass, account []byte) (bool, error) + func (c *Client) ListUsers() ([]string, error) + type ExportUserArgs struct + Encoding formatting.Encoding + type ExportUserReply struct + Encoding formatting.Encoding + User string + type ImportUserArgs struct + Encoding formatting.Encoding + User string + type Keystore interface + CreateHandler func() (http.Handler, error) + CreateUser func(username, pw string) error + DeleteUser func(username, pw string) error + ExportUser func(username, pw string) ([]byte, error) + GetDatabase func(bID ids.ID, username, password string) (*encdb.Database, error) + GetRawDatabase func(bID ids.ID, username, password string) (database.Database, error) + ImportUser func(username, pw string, user []byte) error + ListUsers func() ([]string, error) + NewBlockchainKeyStore func(blockchainID ids.ID) BlockchainKeystore + func CreateTestKeystore() (Keystore, error) + func New(log logging.Logger, dbManager manager.Manager) (Keystore, error) + type ListUsersReply struct + Users []string