contracts

package
v0.0.0-...-61e76d4 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2020 License: MIT Imports: 0 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Card

type Card interface {
	Populate() error
	GetRecords() map[string][]Record
	GetRecord(name string) []Record
	GetMeta() map[string]Record
	Normalize() error
	Output() CardOutput
}

type CardOutput

type CardOutput interface {
	JSON() (string, error)
	GetMeta() map[string]map[string]interface{}
	GetRecords() map[string][]map[string]interface{}
}

type Command

type Command interface {
	Name() string
	Kind() string
	Command() []byte
}

type Normalizer

type Normalizer interface {
	Normalize(record Record, recordIndex int) (map[string]interface{}, error)
}

type Reader

type Reader interface {
	ListReaders() ([]string, error)
	Connect(reader string) error
	Disconnect() error
	Transmit([]byte) ([]byte, error)
}

type Record

type Record interface {
	Normalized() map[string]interface{}
	NormalizedVal(key string) interface{}
	SetNormalized(values map[string]interface{})
	SetNormalizedValue(key string, value string)
	Bytes() []byte
	Binary() string
	Hex() string
}

Jump to

Keyboard shortcuts

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