cbtransaction

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2020 License: MIT Imports: 1 Imported by: 0

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 Encoding added in v0.1.0

type Encoding interface {
	GetKey() [8]byte
	Encode(data interface{}) ([]byte, error)
	EncodeWriter(data interface{}, writer io.Writer) error
	Decode(encoded []byte) (interface{}, error)
	DecodeReader(reader io.Reader, out interface{}) error
}

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

Directories

Path Synopsis
encoding
transaction

Jump to

Keyboard shortcuts

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