kvdecoder

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2021 License: Apache-2.0, BSD-2-Clause Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Decoder added in v0.2.0

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

func New

func New(kvReader kv.KVStoreReader, log ...iscp.LogInterface) Decoder

func (*Decoder) GetAddress added in v0.2.0

func (p *Decoder) GetAddress(key kv.Key, def ...ledgerstate.Address) (ledgerstate.Address, error)

func (*Decoder) GetAgentID added in v0.2.0

func (p *Decoder) GetAgentID(key kv.Key, def ...*iscp.AgentID) (*iscp.AgentID, error)

func (*Decoder) GetBytes added in v0.2.0

func (p *Decoder) GetBytes(key kv.Key, def ...[]byte) ([]byte, error)

nil means does not exist

func (*Decoder) GetChainID added in v0.2.0

func (p *Decoder) GetChainID(key kv.Key, def ...*iscp.ChainID) (*iscp.ChainID, error)

func (*Decoder) GetColor added in v0.2.0

func (p *Decoder) GetColor(key kv.Key, def ...colored.Color) (colored.Color, error)

func (*Decoder) GetHashValue added in v0.2.0

func (p *Decoder) GetHashValue(key kv.Key, def ...hashing.HashValue) (hashing.HashValue, error)

func (*Decoder) GetHname added in v0.2.0

func (p *Decoder) GetHname(key kv.Key, def ...iscp.Hname) (iscp.Hname, error)

func (*Decoder) GetInt16 added in v0.2.0

func (p *Decoder) GetInt16(key kv.Key, def ...int16) (int16, error)

func (*Decoder) GetInt32 added in v0.2.0

func (p *Decoder) GetInt32(key kv.Key, def ...int32) (int32, error)

func (*Decoder) GetInt64 added in v0.2.0

func (p *Decoder) GetInt64(key kv.Key, def ...int64) (int64, error)

func (*Decoder) GetRequestID added in v0.2.0

func (p *Decoder) GetRequestID(key kv.Key, def ...iscp.RequestID) (iscp.RequestID, error)

func (*Decoder) GetString added in v0.2.0

func (p *Decoder) GetString(key kv.Key, def ...string) (string, error)

func (*Decoder) GetTime added in v0.2.0

func (p *Decoder) GetTime(key kv.Key, def ...time.Time) (time.Time, error)

func (*Decoder) GetUint16 added in v0.2.0

func (p *Decoder) GetUint16(key kv.Key, def ...uint16) (uint16, error)

func (*Decoder) GetUint32 added in v0.2.0

func (p *Decoder) GetUint32(key kv.Key, def ...uint32) (uint32, error)

func (*Decoder) GetUint64 added in v0.2.0

func (p *Decoder) GetUint64(key kv.Key, def ...uint64) (uint64, error)

func (*Decoder) MustGetAddress added in v0.2.0

func (p *Decoder) MustGetAddress(key kv.Key, def ...ledgerstate.Address) ledgerstate.Address

func (*Decoder) MustGetAgentID added in v0.2.0

func (p *Decoder) MustGetAgentID(key kv.Key, def ...*iscp.AgentID) *iscp.AgentID

func (*Decoder) MustGetBytes added in v0.2.0

func (p *Decoder) MustGetBytes(key kv.Key, def ...[]byte) []byte

func (*Decoder) MustGetChainID added in v0.2.0

func (p *Decoder) MustGetChainID(key kv.Key, def ...*iscp.ChainID) *iscp.ChainID

func (*Decoder) MustGetColor added in v0.2.0

func (p *Decoder) MustGetColor(key kv.Key, def ...colored.Color) colored.Color

func (*Decoder) MustGetHashValue added in v0.2.0

func (p *Decoder) MustGetHashValue(key kv.Key, def ...hashing.HashValue) hashing.HashValue

func (*Decoder) MustGetHname added in v0.2.0

func (p *Decoder) MustGetHname(key kv.Key, def ...iscp.Hname) iscp.Hname

func (*Decoder) MustGetInt16 added in v0.2.0

func (p *Decoder) MustGetInt16(key kv.Key, def ...int16) int16

func (*Decoder) MustGetInt32 added in v0.2.0

func (p *Decoder) MustGetInt32(key kv.Key, def ...int32) int32

func (*Decoder) MustGetInt64 added in v0.2.0

func (p *Decoder) MustGetInt64(key kv.Key, def ...int64) int64

func (*Decoder) MustGetRequestID added in v0.2.0

func (p *Decoder) MustGetRequestID(key kv.Key, def ...iscp.RequestID) iscp.RequestID

func (*Decoder) MustGetString added in v0.2.0

func (p *Decoder) MustGetString(key kv.Key, def ...string) string

func (*Decoder) MustGetTime added in v0.2.0

func (p *Decoder) MustGetTime(key kv.Key, def ...time.Time) time.Time

func (*Decoder) MustGetUint16 added in v0.2.0

func (p *Decoder) MustGetUint16(key kv.Key, def ...uint16) uint16

func (*Decoder) MustGetUint32 added in v0.2.0

func (p *Decoder) MustGetUint32(key kv.Key, def ...uint32) uint32

func (*Decoder) MustGetUint64 added in v0.2.0

func (p *Decoder) MustGetUint64(key kv.Key, def ...uint64) uint64

Jump to

Keyboard shortcuts

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