Documentation ¶
Index ¶
- type Connector
- func (c Connector) Create(ctx context.Context, id string, attr *entities.Attributes) (*entities.Wallet, error)
- func (c Connector) Delete(ctx context.Context, pubkey string) error
- func (c Connector) Destroy(ctx context.Context, pubkey string) error
- func (c Connector) Get(ctx context.Context, pubkey string) (*entities.Wallet, error)
- func (c Connector) GetDeleted(ctx context.Context, pubkey string) (*entities.Wallet, error)
- func (c Connector) Import(ctx context.Context, id string, privKey []byte, attr *entities.Attributes) (*entities.Wallet, error)
- func (c Connector) List(ctx context.Context, limit, offset uint64) ([]string, error)
- func (c Connector) ListDeleted(ctx context.Context, limit, offset uint64) ([]string, error)
- func (c Connector) Restore(ctx context.Context, pubkey string) error
- func (c Connector) Sign(ctx context.Context, pubkey, typeSign string, data []byte) ([]byte, error)
- func (c Connector) Update(ctx context.Context, pubkey string, attr *entities.Attributes) (*entities.Wallet, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connector ¶
type Connector struct {
// contains filtered or unexported fields
}
func NewConnector ¶
func NewConnector(store stores.WalletStore, db database.Wallets, authorizator auth.Authorizator, logger log.Logger) *Connector
func (Connector) GetDeleted ¶
func (Connector) ListDeleted ¶
Click to show internal directories.
Click to hide internal directories.