Documentation ¶
Overview ¶
Package nilstore implements a walletstore without any abilities.
Index ¶
- type NilStore
- func (ns *NilStore) DelToken(tokenHash []byte)
- func (ns *NilStore) ExpireUnusable() bool
- func (ns *NilStore) FindToken(usage string) (*client.TokenEntry, error)
- func (ns *NilStore) GetAndLockToken(usage string, owner *[ed25519.PublicKeySize]byte) (*client.TokenEntry, error)
- func (ns *NilStore) GetAuthToken() (authToken []byte, tries int)
- func (ns *NilStore) GetBalance(usage string, owner *[ed25519.PublicKeySize]byte) int64
- func (ns *NilStore) GetBalanceOwn(usage string) int64
- func (ns *NilStore) GetExpire() []byte
- func (ns *NilStore) GetInReissue() []byte
- func (ns *NilStore) GetToken(tokenHash []byte, lockID int64) (tokenEntry *client.TokenEntry, err error)
- func (ns *NilStore) GetVerifyKeys() [][ed25519.PublicKeySize]byte
- func (ns *NilStore) LockToken(tokenHash []byte) int64
- func (ns *NilStore) SetAuthToken(authToken []byte, tries int) error
- func (ns *NilStore) SetToken(tokenEntry client.TokenEntry) error
- func (ns *NilStore) SetVerifyKeys(keys [][ed25519.PublicKeySize]byte)
- func (ns *NilStore) UnlockToken(tokenHash []byte)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NilStore ¶
type NilStore struct { AuthToken []byte AuthTokenTries int LastToken *client.TokenEntry VerifyKeys [][ed25519.PublicKeySize]byte }
NilStore is a walletstore without abilities.
func (*NilStore) ExpireUnusable ¶
ExpireUnusable without function.
func (*NilStore) FindToken ¶
func (ns *NilStore) FindToken(usage string) (*client.TokenEntry, error)
FindToken without persistence.
func (*NilStore) GetAndLockToken ¶
func (ns *NilStore) GetAndLockToken(usage string, owner *[ed25519.PublicKeySize]byte) (*client.TokenEntry, error)
GetAndLockToken without persistence.
func (*NilStore) GetAuthToken ¶
GetAuthToken without persistence.
func (*NilStore) GetBalance ¶
GetBalance without function.
func (*NilStore) GetBalanceOwn ¶
GetBalanceOwn without function.
func (*NilStore) GetInReissue ¶
GetInReissue without function.
func (*NilStore) GetToken ¶
func (ns *NilStore) GetToken(tokenHash []byte, lockID int64) (tokenEntry *client.TokenEntry, err error)
GetToken without persistence.
func (*NilStore) GetVerifyKeys ¶
func (ns *NilStore) GetVerifyKeys() [][ed25519.PublicKeySize]byte
GetVerifyKeys without persistence.
func (*NilStore) SetAuthToken ¶
SetAuthToken without persistence.
func (*NilStore) SetToken ¶
func (ns *NilStore) SetToken(tokenEntry client.TokenEntry) error
SetToken without persistence.
func (*NilStore) SetVerifyKeys ¶
func (ns *NilStore) SetVerifyKeys(keys [][ed25519.PublicKeySize]byte)
SetVerifyKeys without persistence.
func (*NilStore) UnlockToken ¶
UnlockToken without function.
Click to show internal directories.
Click to hide internal directories.