Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IKeyValueDB ¶
type IKeyValueDB interface { types.ICloser Size(IRelation) uint64 Push(IRelation, IMessage) error Load(IRelation, uint64, uint64) ([]IMessage, error) }
func NewKeyValueDB ¶
func NewKeyValueDB(pPath string, pKey []byte) IKeyValueDB
type IMessage ¶
type IMessage interface { IsIncoming() bool GetSHA256UID() string GetMessage() string GetTimestamp() string ToBytes() []byte }
func LoadMessage ¶
type IRelation ¶
type IRelation interface { IAm() asymmetric.IPubKey Friend() asymmetric.IPubKey }
func NewRelation ¶
func NewRelation(pIAm, pFriend asymmetric.IPubKey) IRelation
type IWrapperDB ¶
type IWrapperDB interface { types.ICloser Get() IKeyValueDB Set(IKeyValueDB) IWrapperDB }
func NewWrapperDB ¶
func NewWrapperDB() IWrapperDB
Click to show internal directories.
Click to hide internal directories.