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) 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
- func (encoder *Encoder) WriteBytes(bs []byte) error
- func (encoder *Encoder) WriteString(s string) error
- type RollingEncoder
- func (encoder *RollingEncoder) Encode(v interface{})
- func (encoder *RollingEncoder) EncodeArrString(v []string)
- func (encoder *RollingEncoder) EncodeBool(v bool)
- 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
- func (encoder *RollingEncoder) WriteBytes(v []byte)
- func (encoder *RollingEncoder) WriteString(v string)
- 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) 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
func (*Encoder) WriteBytes ¶
func (*Encoder) WriteString ¶
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) 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) 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
func (*RollingEncoder) WriteBytes ¶
func (encoder *RollingEncoder) WriteBytes(v []byte)
WriteBytes adding []byte to the converted value
func (*RollingEncoder) WriteString ¶
func (encoder *RollingEncoder) WriteString(v string)
WriteString adding string to the converted value
type TransactionMarshaller ¶
TransactionMarshaller interface for converting data into byte