Documentation ¶
Index ¶
- type Encoder
- func (encoder *Encoder) Encode(v interface{}) error
- func (encoder *Encoder) EncodeArrString(v []string) error
- func (encoder *Encoder) EncodeBool(b bool) error
- func (encoder *Encoder) EncodeExt(s string) error
- func (encoder *Encoder) EncodeMoney(s string) error
- func (encoder *Encoder) EncodeNumber(v interface{}) error
- func (encoder *Encoder) EncodePubKey(s string) error
- func (encoder *Encoder) EncodeString(v string) error
- func (encoder *Encoder) EncodeSymbol(s string) error
- func (encoder *Encoder) EncodeTExt(s string) error
- func (encoder *Encoder) EncodeUVarint(i uint64) error
- func (encoder *Encoder) EncodeVarint(i int64) error
- type RollingEncoder
- func (encoder *RollingEncoder) Encode(v interface{})
- func (encoder *RollingEncoder) EncodeArrString(v []string)
- func (encoder *RollingEncoder) EncodeBool(v bool)
- func (encoder *RollingEncoder) EncodeExt(v string)
- func (encoder *RollingEncoder) EncodeMoney(v string)
- func (encoder *RollingEncoder) EncodeNumber(v interface{})
- func (encoder *RollingEncoder) EncodePubKey(v string)
- func (encoder *RollingEncoder) EncodeString(v string)
- func (encoder *RollingEncoder) EncodeSymbol(v string)
- func (encoder *RollingEncoder) EncodeTExt(v string)
- func (encoder *RollingEncoder) EncodeUVarint(i uint64)
- func (encoder *RollingEncoder) EncodeVarint(i int64)
- func (encoder *RollingEncoder) Err() error
- type TransactionMarshaller
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Encoder ¶
type Encoder struct {
// contains filtered or unexported fields
}
Encoder structure for the converter
func (*Encoder) EncodeArrString ¶
EncodeArrString converting []string to byte
func (*Encoder) EncodeBool ¶
EncodeBool converting bool to byte
func (*Encoder) EncodeMoney ¶
EncodeMoney converting Asset to byte
func (*Encoder) EncodeNumber ¶
EncodeNumber converting number to byte
func (*Encoder) EncodePubKey ¶
EncodePubKey converting PubKey to byte
func (*Encoder) EncodeString ¶
EncodeString converting string to byte
func (*Encoder) EncodeSymbol ¶
EncodeSymbol converting Symbol to byte
func (*Encoder) EncodeTExt ¶
func (*Encoder) EncodeUVarint ¶
EncodeUVarint converting uint64 to byte
func (*Encoder) EncodeVarint ¶
EncodeVarint converting int64 to byte
type RollingEncoder ¶
type RollingEncoder struct {
// contains filtered or unexported fields
}
RollingEncoder structure for the chain of converters
func NewRollingEncoder ¶
func NewRollingEncoder(next *Encoder) *RollingEncoder
NewRollingEncoder initializing the chain of converters
func (*RollingEncoder) Encode ¶
func (encoder *RollingEncoder) Encode(v interface{})
Encode adding to a chain of other values
func (*RollingEncoder) EncodeArrString ¶
func (encoder *RollingEncoder) EncodeArrString(v []string)
EncodeArrString adding []string to the converted value
func (*RollingEncoder) EncodeBool ¶
func (encoder *RollingEncoder) EncodeBool(v bool)
EncodeBool adding bool to the converted value
func (*RollingEncoder) EncodeExt ¶
func (encoder *RollingEncoder) EncodeExt(v string)
func (*RollingEncoder) EncodeMoney ¶
func (encoder *RollingEncoder) EncodeMoney(v string)
EncodeMoney adding Asset to the converted value
func (*RollingEncoder) EncodeNumber ¶
func (encoder *RollingEncoder) EncodeNumber(v interface{})
EncodeNumber adding number to the converted value
func (*RollingEncoder) EncodePubKey ¶
func (encoder *RollingEncoder) EncodePubKey(v string)
EncodePubKey adding PubKey to the converted value
func (*RollingEncoder) EncodeString ¶
func (encoder *RollingEncoder) EncodeString(v string)
EncodeString adding string to the converted value
func (*RollingEncoder) EncodeSymbol ¶
func (encoder *RollingEncoder) EncodeSymbol(v string)
EncodeSymbol adding Symbol to the converted value
func (*RollingEncoder) EncodeTExt ¶
func (encoder *RollingEncoder) EncodeTExt(v string)
func (*RollingEncoder) EncodeUVarint ¶
func (encoder *RollingEncoder) EncodeUVarint(i uint64)
EncodeUVarint adding uint64 to the converted value
func (*RollingEncoder) EncodeVarint ¶
func (encoder *RollingEncoder) EncodeVarint(i int64)
EncodeVarint adding int64 to the converted value
func (*RollingEncoder) Err ¶
func (encoder *RollingEncoder) Err() error
Err function that returns an error (if any) from the cup of converters
type TransactionMarshaller ¶
TransactionMarshaller interface for converting data into byte