Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionEnum ¶
type ActionEnum byte
var ( ActionAdd ActionEnum = '+' ActionRemove ActionEnum = '-' ActionClear ActionEnum = '*' )
func (*ActionEnum) IsAdd ¶
func (e *ActionEnum) IsAdd() bool
func (*ActionEnum) IsClear ¶
func (e *ActionEnum) IsClear() bool
func (*ActionEnum) IsRemove ¶
func (e *ActionEnum) IsRemove() bool
type Encryption ¶ added in v0.3.0
type Transaction ¶
type Transaction interface { SetTransactionId(transactionId uint64) GetTransactionId() uint64 SetActionEnum(action ActionEnum) GetActionEnum() ActionEnum SetEncodingProviderKey(key [8]byte) GetEncodingProviderKey() [8]byte SetEncryptionProviderKey(key [8]byte) GetEncryptionProviderKey() [8]byte SetData(data []byte) GetData() []byte GetLength() uint64 Unserialise(transaction []byte) UnserialiseReader(reader io.Reader) error Serialise() []byte SerialiseWriter(writer io.Writer) (n int, err error) }
Click to show internal directories.
Click to hide internal directories.