msgp

package
v0.0.0-...-fe13e1c Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Marshal

func Marshal(v interface{}) ([]byte, error)

func MarshalMulti

func MarshalMulti(v ...interface{}) ([]byte, error)

func Unmarshal

func Unmarshal(data []byte, v interface{}) error

func UnmarshalMulti

func UnmarshalMulti(data []byte, v ...interface{}) error

Types

type Entity

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

func (*Entity) DecodeMsgpack

func (e *Entity) DecodeMsgpack(dec *msgpack.Decoder) error

Implement msgpack.CustomDecoder

func (*Entity) EncodeMsgpack

func (e *Entity) EncodeMsgpack(enc *msgpack.Encoder) error

Implement msgpack.CustomEncoder

func (*Entity) GetRow

func (e *Entity) GetRow(sch sql.Schema) (row sql.Row, err error)

func (*Entity) GetValue

func (e *Entity) GetValue(name string) (v interface{}, ok bool)

func (*Entity) Init

func (e *Entity) Init()

func (*Entity) Marshal

func (e *Entity) Marshal() ([]byte, error)

func (*Entity) SetRow

func (e *Entity) SetRow(sch sql.Schema, row sql.Row)

func (*Entity) Unmarshal

func (e *Entity) Unmarshal(data []byte) error

func (*Entity) UnmarshalOrInit

func (e *Entity) UnmarshalOrInit(data []byte) error

Jump to

Keyboard shortcuts

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