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) 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) 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) EncodeMoney(v string)
- func (encoder *RollingEncoder) EncodeNumber(v interface{})
- func (encoder *RollingEncoder) EncodePubKey(v string)
- func (encoder *RollingEncoder) EncodeString(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) EncodeUVarint ¶
EncodeUVarint converting uint64 to byte
func (*Encoder) EncodeVarint ¶
EncodeVarint converting int64 to byte
type RollingEncoder ¶
type RollingEncoder struct {
// contains filtered or unexported fields
}
func NewRollingEncoder ¶
func NewRollingEncoder(next *Encoder) *RollingEncoder
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) EncodeMoney ¶
func (encoder *RollingEncoder) EncodeMoney(v string)
EncodeMoney adding Asset to the converted value
func (*RollingEncoder) EncodeNumber ¶
func (encoder *RollingEncoder) EncodeNumber(v interface{})
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) EncodeUVarint ¶
func (encoder *RollingEncoder) EncodeUVarint(i uint64)
func (*RollingEncoder) EncodeVarint ¶
func (encoder *RollingEncoder) EncodeVarint(i int64)
func (*RollingEncoder) Err ¶
func (encoder *RollingEncoder) Err() error
Err function that returns an error (if any) from the cup of converters