types

package
v0.0.0-...-8e17a21 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2020 License: GPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertMap

func ConvertMap(in interface{}) interface{}

Types

type ClientTxPreprocessor

type ClientTxPreprocessor interface {
	ProcessClientTranstaction([]byte, int64, *log.Entry) (string, error)
}

ClientTxPreprocessor procees tx from client

type DaemonListFactory

type DaemonListFactory interface {
	GetDaemonsList() []string
}

type DaemonLoader

type DaemonLoader interface {
	Load(context.Context) error
}

DaemonLoader allow implement different ways for loading daemons

type EcosystemIDValidator

type EcosystemIDValidator interface {
	Validate(id, clientID int64, le *log.Entry) (int64, error)
}

type EcosystemLookupGetter

type EcosystemLookupGetter interface {
	GetEcosystemLookup() ([]int64, []string, error)
}

type EcosystemNameGetter

type EcosystemNameGetter interface {
	GetEcosystemName(id int64) (string, error)
}
type Link struct {
	// contains filtered or unexported fields
}

Link represents a node of doubly linked list

type Map

type Map struct {
	// contains filtered or unexported fields
}

Map holds the elements in go's native map, also maintains the head and tail link to keep the elements in insertion order

func LoadMap

func LoadMap(init map[string]interface{}) (ret *Map)

LoadMap instantiates a linked hash map and initializing it from map[string]interface{}.

func NewFile

func NewFile() *Map

func NewFileFromMap

func NewFileFromMap(m map[interface{}]interface{}) (f *Map, ok bool)

func NewMap

func NewMap() *Map

NewMap instantiates a linked hash map.

func (*Map) Clear

func (m *Map) Clear()

Clear removes all elements from the map.

func (*Map) Get

func (m *Map) Get(key string) (value interface{}, found bool)

Get searches the element in the map by key and returns its value or nil if key doesn't exists. Second return parameter is true if key was found, otherwise false.

func (*Map) IsEmpty

func (m *Map) IsEmpty() bool

IsEmpty returns true if map does not contain any elements

func (*Map) Keys

func (m *Map) Keys() []string

Keys returns all keys of the map (insertion order).

func (*Map) MarshalJSON

func (m *Map) MarshalJSON() ([]byte, error)

func (*Map) Remove

func (m *Map) Remove(key string)

Remove removes the element from the map by key.

func (*Map) Set

func (m *Map) Set(key string, value interface{})

Put inserts an element into the map.

func (*Map) Size

func (m *Map) Size() int

Size returns number of elements in the map.

func (*Map) String

func (m *Map) String() string

String returns a string representation of container

func (*Map) Values

func (m *Map) Values() []interface{}

Values returns all values of the map (insertion order).

type Notifications

type Notifications interface {
	AddAccounts(ecosystem int64, accounts ...string)
	AddRoles(ecosystem int64, roles ...int64)
	Size() int
	Send()
}

type SmartContractRunner

type SmartContractRunner interface {
	RunContract(data, hash []byte, keyID int64, le *log.Entry) error
}

SmartContractRunner run serialized contract

Jump to

Keyboard shortcuts

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