tests

package
v1.9.9 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Tmap = map[tx.TxID]tx.Transactable{
	tx.TxID(1): &Stringy{},
	tx.TxID(2): &Inty{},
}

Functions

This section is empty.

Types

type Inty

type Inty struct {
	I int
}

func (Inty) Apply

func (Inty) Apply(interface{}) error

func (*Inty) DecodeMsg

func (z *Inty) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (Inty) EncodeMsg

func (z Inty) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (Inty) MarshalMsg

func (z Inty) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (Inty) Msgsize

func (z Inty) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (Inty) SignableBytes

func (i Inty) SignableBytes() []byte

func (*Inty) UnmarshalMsg

func (z *Inty) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

func (Inty) Validate

func (Inty) Validate(interface{}) error

type Stringy

type Stringy struct {
	S string
}

func (Stringy) Apply

func (Stringy) Apply(interface{}) error

func (*Stringy) DecodeMsg

func (z *Stringy) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (Stringy) EncodeMsg

func (z Stringy) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (Stringy) MarshalMsg

func (z Stringy) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (Stringy) Msgsize

func (z Stringy) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (Stringy) SignableBytes

func (s Stringy) SignableBytes() []byte

func (*Stringy) UnmarshalMsg

func (z *Stringy) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

func (Stringy) Validate

func (Stringy) Validate(interface{}) error

Jump to

Keyboard shortcuts

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