Documentation ¶
Index ¶
- Variables
- func BaseTestAccessController(t *testing.T, hGen pv.HostGenerator)
- func BaseTestHashStore(t *testing.T, hGen pv.HostGenerator)
- func BaseTestLogStore(t *testing.T, hGen pv.HostGenerator)
- func BaseTestSignatureStore(t *testing.T, hGen pv.HostGenerator)
- func BaseTestTimeLimit(t *testing.T, hGen pv.HostGenerator)
- func BaseTestUpdatableSignatureStore(t *testing.T, hGen pv.HostGenerator)
- func InitCryptoFuncs(gkp GenerateKeyPair, mpu MarshalPubKey, upu UnmarshalPubKey)
- func MakeAddress(name, pid string, salt []byte, timeLimits ...time.Time) string
- func MakeHashKey(bHashStr string, salt []byte) string
- func NewVerse(hGen pv.HostGenerator, dir string, save bool, bootstraps ...peer.AddrInfo) *crdtVerse
- func PubKeyToStr(vk IPubKey) string
- type GenerateKeyPair
- type IAccessBaseStore
- type IAccessStore
- type IHashStore
- type IKey
- type IPrivKey
- type IPubKey
- type ISignatureStore
- type IStore
- type IUpdatableSignatureStore
- type IUpdatableStore
- type KeyExistFilter
- type KeyMatchFilter
- type MarshalPubKey
- type RandomOrder
- type StoreOpts
- type UnmarshalPubKey
- type ValueMatchFilter
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrAlreadyExist = errors.New("the key already exists")
Functions ¶
func BaseTestAccessController ¶
func BaseTestAccessController(t *testing.T, hGen pv.HostGenerator)
func BaseTestHashStore ¶
func BaseTestHashStore(t *testing.T, hGen pv.HostGenerator)
func BaseTestLogStore ¶
func BaseTestLogStore(t *testing.T, hGen pv.HostGenerator)
func BaseTestSignatureStore ¶
func BaseTestSignatureStore(t *testing.T, hGen pv.HostGenerator)
func BaseTestTimeLimit ¶
func BaseTestTimeLimit(t *testing.T, hGen pv.HostGenerator)
func BaseTestUpdatableSignatureStore ¶
func BaseTestUpdatableSignatureStore(t *testing.T, hGen pv.HostGenerator)
func InitCryptoFuncs ¶
func InitCryptoFuncs(gkp GenerateKeyPair, mpu MarshalPubKey, upu UnmarshalPubKey)
func MakeHashKey ¶
func PubKeyToStr ¶
Types ¶
type GenerateKeyPair ¶
type IAccessBaseStore ¶
type IAccessBaseStore interface { IStore // contains filtered or unexported methods }
type IAccessStore ¶
type IAccessStore interface { IAccessBaseStore IHashStore IUpdatableStore ISignatureStore Grant(string) error Verify(string) error }
type IHashStore ¶
type IPubKey ¶
func StrToPubKey ¶
type ISignatureStore ¶
type IStore ¶
type IStore interface { Cancel() Close() Address() string // contains filtered or unexported methods }
type IUpdatableSignatureStore ¶
type IUpdatableSignatureStore interface { IUpdatableStore ISignatureStore }
type IUpdatableStore ¶
type KeyExistFilter ¶
type KeyExistFilter struct {
Key string
}
type KeyMatchFilter ¶
type KeyMatchFilter struct {
Key string
}
data key: (<pid>)/<category>/(<tKey>)
type MarshalPubKey ¶
type RandomOrder ¶
type RandomOrder struct{}
type UnmarshalPubKey ¶
type ValueMatchFilter ¶
type ValueMatchFilter struct {
Val []byte
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.