Versions in this module Expand all Collapse all v6 v6.2.5 Nov 13, 2019 Changes in this version + const ID_FORM + const ID_JSON + const ID_PLAIN + const ID_PROTOBUF + const ID_THRIFT + const ID_XML + const NAME_FORM + const NAME_JSON + const NAME_PLAIN + const NAME_PROTOBUF + const NAME_THRIFT + const NAME_XML + const NilCodecID + const NilCodecName + var ErrIntOverflowEmpty = fmt.Errorf("proto: integer overflow") + var ErrInvalidLengthEmpty = fmt.Errorf("proto: negative length found during unmarshaling") + var GoUnusedProtection__ int + var PbEmptyStruct = new(PbEmpty) + var ThriftEmptyStruct = new(ThriftEmpty) + func Marshal(codecID byte, v interface{}) ([]byte, error) + func MarshalByName(codecName string, v interface{}) ([]byte, error) + func ProtoMarshal(v interface{}) ([]byte, error) + func ProtoUnmarshal(data []byte, v interface{}) error + func Reg(codec Codec) + func ThriftMarshal(v interface{}) ([]byte, error) + func ThriftUnmarshal(data []byte, v interface{}) error + func Unmarshal(codecID byte, data []byte, v interface{}) error + func UnmarshalByName(codecName string, data []byte, v interface{}) error + type Codec interface + ID func() byte + Marshal func(v interface{}) ([]byte, error) + Name func() string + Unmarshal func(data []byte, v interface{}) error + func Get(codecID byte) (Codec, error) + func GetByName(codecName string) (Codec, error) + type FormCodec struct + func (FormCodec) ID() byte + func (FormCodec) Marshal(v interface{}) ([]byte, error) + func (FormCodec) Name() string + func (FormCodec) Unmarshal(data []byte, v interface{}) error + type JSONCodec struct + func (JSONCodec) ID() byte + func (JSONCodec) Marshal(v interface{}) ([]byte, error) + func (JSONCodec) Name() string + func (JSONCodec) Unmarshal(data []byte, v interface{}) error + type PbEmpty struct + func (*PbEmpty) Descriptor() ([]byte, []int) + func (*PbEmpty) ProtoMessage() + func (m *PbEmpty) Marshal() (dAtA []byte, err error) + func (m *PbEmpty) MarshalTo(dAtA []byte) (int, error) + func (m *PbEmpty) Reset() + func (m *PbEmpty) Size() (n int) + func (m *PbEmpty) String() string + func (m *PbEmpty) Unmarshal(dAtA []byte) error + type PlainCodec struct + func (PlainCodec) ID() byte + func (PlainCodec) Marshal(v interface{}) ([]byte, error) + func (PlainCodec) Name() string + func (PlainCodec) Unmarshal(data []byte, v interface{}) error + type ProtoCodec struct + func (ProtoCodec) ID() byte + func (ProtoCodec) Marshal(v interface{}) ([]byte, error) + func (ProtoCodec) Name() string + func (ProtoCodec) Unmarshal(data []byte, v interface{}) error + type ThriftCodec struct + func (ThriftCodec) ID() byte + func (ThriftCodec) Marshal(v interface{}) ([]byte, error) + func (ThriftCodec) Name() string + func (ThriftCodec) Unmarshal(data []byte, v interface{}) error + type ThriftEmpty struct + func NewThriftEmpty() *ThriftEmpty + func (p *ThriftEmpty) Read(iprot thrift.TProtocol) error + func (p *ThriftEmpty) String() string + func (p *ThriftEmpty) Write(oprot thrift.TProtocol) error + type XMLCodec struct + func (XMLCodec) ID() byte + func (XMLCodec) Marshal(v interface{}) ([]byte, error) + func (XMLCodec) Name() string + func (XMLCodec) Unmarshal(data []byte, v interface{}) error Other modules containing this package github.com/henrylee2cn/teleport