nilstore

package
v0.0.0-...-30b4a77 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 28, 2016 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package nilstore implements a walletstore without any abilities.

Index

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) DelToken

func (ns *NilStore) DelToken(tokenHash []byte)

DelToken without function.

func (*NilStore) ExpireUnusable

func (ns *NilStore) ExpireUnusable() bool

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

func (ns *NilStore) GetAuthToken() (authToken []byte, tries int)

GetAuthToken without persistence.

func (*NilStore) GetBalance

func (ns *NilStore) GetBalance(usage string, owner *[ed25519.PublicKeySize]byte) int64

GetBalance without function.

func (*NilStore) GetBalanceOwn

func (ns *NilStore) GetBalanceOwn(usage string) int64

GetBalanceOwn without function.

func (*NilStore) GetExpire

func (ns *NilStore) GetExpire() []byte

GetExpire without function.

func (*NilStore) GetInReissue

func (ns *NilStore) GetInReissue() []byte

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) LockToken

func (ns *NilStore) LockToken(tokenHash []byte) int64

LockToken without function.

func (*NilStore) SetAuthToken

func (ns *NilStore) SetAuthToken(authToken []byte, tries int) error

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

func (ns *NilStore) UnlockToken(tokenHash []byte)

UnlockToken without function.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL