Documentation ¶
Index ¶
- Variables
- type DecodeOptions
- func (*DecodeOptions) Descriptor() ([]byte, []int)
- func (m *DecodeOptions) GetDecodeType() DecodeType
- func (m *DecodeOptions) GetProtobufSettings() *ProtobufSettings
- func (m *DecodeOptions) GetSchemaId() string
- func (*DecodeOptions) ProtoMessage()
- func (m *DecodeOptions) Reset()
- func (m *DecodeOptions) String() string
- func (m *DecodeOptions) XXX_DiscardUnknown()
- func (m *DecodeOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DecodeOptions) XXX_Merge(src proto.Message)
- func (m *DecodeOptions) XXX_Size() int
- func (m *DecodeOptions) XXX_Unmarshal(b []byte) error
- type DecodeType
- type EncodeOptions
- func (*EncodeOptions) Descriptor() ([]byte, []int)
- func (m *EncodeOptions) GetEncodeType() EncodeType
- func (m *EncodeOptions) GetProtobufSettings() *ProtobufSettings
- func (m *EncodeOptions) GetSchemaId() string
- func (*EncodeOptions) ProtoMessage()
- func (m *EncodeOptions) Reset()
- func (m *EncodeOptions) String() string
- func (m *EncodeOptions) XXX_DiscardUnknown()
- func (m *EncodeOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EncodeOptions) XXX_Merge(src proto.Message)
- func (m *EncodeOptions) XXX_Size() int
- func (m *EncodeOptions) XXX_Unmarshal(b []byte) error
- type EncodeType
- type ProtobufSettings
- func (*ProtobufSettings) Descriptor() ([]byte, []int)
- func (m *ProtobufSettings) GetProtobufDirs() []string
- func (m *ProtobufSettings) GetProtobufRootMessage() string
- func (*ProtobufSettings) ProtoMessage()
- func (m *ProtobufSettings) Reset()
- func (m *ProtobufSettings) String() string
- func (m *ProtobufSettings) XXX_DiscardUnknown()
- func (m *ProtobufSettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ProtobufSettings) XXX_Merge(src proto.Message)
- func (m *ProtobufSettings) XXX_Size() int
- func (m *ProtobufSettings) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var DecodeType_name = map[int32]string{
0: "DECODE_TYPE_UNSET",
1: "DECODE_TYPE_JSONPB",
2: "DECODE_TYPE_PROTOBUF",
3: "DECODE_TYPE_AVRO",
4: "DECODE_TYPE_THRIFT",
5: "DECODE_TYPE_FLATBUFFER",
}
View Source
var DecodeType_value = map[string]int32{
"DECODE_TYPE_UNSET": 0,
"DECODE_TYPE_JSONPB": 1,
"DECODE_TYPE_PROTOBUF": 2,
"DECODE_TYPE_AVRO": 3,
"DECODE_TYPE_THRIFT": 4,
"DECODE_TYPE_FLATBUFFER": 5,
}
View Source
var EncodeType_name = map[int32]string{
0: "ENCODE_TYPE_UNSET",
1: "ENCODE_TYPE_JSONPB",
}
View Source
var EncodeType_value = map[string]int32{
"ENCODE_TYPE_UNSET": 0,
"ENCODE_TYPE_JSONPB": 1,
}
Functions ¶
This section is empty.
Types ¶
type DecodeOptions ¶ added in v0.0.42
type DecodeOptions struct { // Use an existing schema for decoding (and ignore all other decode settings) // @gotags: kong:"-" SchemaId string `protobuf:"bytes,1,opt,name=schema_id,json=schemaId,proto3" json:"schema_id,omitempty" kong:"-"` // @gotags: kong:"help='Input type (0: Unset, 1: JSONPB, 2: Protobuf, 3: Avro, 4: Thrift, 5: Flatbuffer)',default=0" DecodeType DecodeType `` /* 229-byte string literal not displayed */ // @gotags: kong="embed,group=protobuf" ProtobufSettings *ProtobufSettings `protobuf:"bytes,3,opt,name=protobuf_settings,json=protobufSettings,proto3" json:"protobuf_settings,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DecodeOptions) Descriptor ¶ added in v0.0.42
func (*DecodeOptions) Descriptor() ([]byte, []int)
func (*DecodeOptions) GetDecodeType ¶ added in v0.0.49
func (m *DecodeOptions) GetDecodeType() DecodeType
func (*DecodeOptions) GetProtobufSettings ¶ added in v0.0.49
func (m *DecodeOptions) GetProtobufSettings() *ProtobufSettings
func (*DecodeOptions) GetSchemaId ¶ added in v0.0.42
func (m *DecodeOptions) GetSchemaId() string
func (*DecodeOptions) ProtoMessage ¶ added in v0.0.42
func (*DecodeOptions) ProtoMessage()
func (*DecodeOptions) Reset ¶ added in v0.0.42
func (m *DecodeOptions) Reset()
func (*DecodeOptions) String ¶ added in v0.0.42
func (m *DecodeOptions) String() string
func (*DecodeOptions) XXX_DiscardUnknown ¶ added in v0.0.42
func (m *DecodeOptions) XXX_DiscardUnknown()
func (*DecodeOptions) XXX_Marshal ¶ added in v0.0.42
func (m *DecodeOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DecodeOptions) XXX_Merge ¶ added in v0.0.42
func (m *DecodeOptions) XXX_Merge(src proto.Message)
func (*DecodeOptions) XXX_Size ¶ added in v0.0.42
func (m *DecodeOptions) XXX_Size() int
func (*DecodeOptions) XXX_Unmarshal ¶ added in v0.0.42
func (m *DecodeOptions) XXX_Unmarshal(b []byte) error
type DecodeType ¶ added in v0.0.49
type DecodeType int32
const ( DecodeType_DECODE_TYPE_UNSET DecodeType = 0 DecodeType_DECODE_TYPE_JSONPB DecodeType = 1 DecodeType_DECODE_TYPE_PROTOBUF DecodeType = 2 DecodeType_DECODE_TYPE_AVRO DecodeType = 3 DecodeType_DECODE_TYPE_THRIFT DecodeType = 4 DecodeType_DECODE_TYPE_FLATBUFFER DecodeType = 5 )
func (DecodeType) EnumDescriptor ¶ added in v0.0.49
func (DecodeType) EnumDescriptor() ([]byte, []int)
func (DecodeType) String ¶ added in v0.0.49
func (x DecodeType) String() string
type EncodeOptions ¶ added in v0.0.42
type EncodeOptions struct { // Use an existing schema for encoding (and ignore all other encode settings) // @gotags: kong:"-" SchemaId string `protobuf:"bytes,1,opt,name=schema_id,json=schemaId,proto3" json:"schema_id,omitempty" kong:"-"` // TODO: Update kong to be able to use proto/smart enums // @gotags: kong:"help='Input type (0: Unset, 1: JSONPB)',default=0" EncodeType EncodeType `` /* 181-byte string literal not displayed */ // @gotags: kong="embed,group=protobuf" ProtobufSettings *ProtobufSettings `protobuf:"bytes,3,opt,name=protobuf_settings,json=protobufSettings,proto3" json:"protobuf_settings,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*EncodeOptions) Descriptor ¶ added in v0.0.42
func (*EncodeOptions) Descriptor() ([]byte, []int)
func (*EncodeOptions) GetEncodeType ¶ added in v0.0.49
func (m *EncodeOptions) GetEncodeType() EncodeType
func (*EncodeOptions) GetProtobufSettings ¶ added in v0.0.49
func (m *EncodeOptions) GetProtobufSettings() *ProtobufSettings
func (*EncodeOptions) GetSchemaId ¶ added in v0.0.42
func (m *EncodeOptions) GetSchemaId() string
func (*EncodeOptions) ProtoMessage ¶ added in v0.0.42
func (*EncodeOptions) ProtoMessage()
func (*EncodeOptions) Reset ¶ added in v0.0.42
func (m *EncodeOptions) Reset()
func (*EncodeOptions) String ¶ added in v0.0.42
func (m *EncodeOptions) String() string
func (*EncodeOptions) XXX_DiscardUnknown ¶ added in v0.0.42
func (m *EncodeOptions) XXX_DiscardUnknown()
func (*EncodeOptions) XXX_Marshal ¶ added in v0.0.42
func (m *EncodeOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EncodeOptions) XXX_Merge ¶ added in v0.0.42
func (m *EncodeOptions) XXX_Merge(src proto.Message)
func (*EncodeOptions) XXX_Size ¶ added in v0.0.42
func (m *EncodeOptions) XXX_Size() int
func (*EncodeOptions) XXX_Unmarshal ¶ added in v0.0.42
func (m *EncodeOptions) XXX_Unmarshal(b []byte) error
type EncodeType ¶ added in v0.0.49
type EncodeType int32
const ( EncodeType_ENCODE_TYPE_UNSET EncodeType = 0 EncodeType_ENCODE_TYPE_JSONPB EncodeType = 1 )
func (EncodeType) EnumDescriptor ¶ added in v0.0.49
func (EncodeType) EnumDescriptor() ([]byte, []int)
func (EncodeType) String ¶ added in v0.0.49
func (x EncodeType) String() string
type ProtobufSettings ¶ added in v0.0.49
type ProtobufSettings struct { // @gotags: kong:"help='Input message(s) should be encoded with this message envelope'" ProtobufRootMessage string `` /* 196-byte string literal not displayed */ // @gotags: kong:"help='One or more directories which contains protobuf schemas',existingdir" ProtobufDirs []string `` /* 179-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ProtobufSettings) Descriptor ¶ added in v0.0.49
func (*ProtobufSettings) Descriptor() ([]byte, []int)
func (*ProtobufSettings) GetProtobufDirs ¶ added in v0.0.49
func (m *ProtobufSettings) GetProtobufDirs() []string
func (*ProtobufSettings) GetProtobufRootMessage ¶ added in v0.0.49
func (m *ProtobufSettings) GetProtobufRootMessage() string
func (*ProtobufSettings) ProtoMessage ¶ added in v0.0.49
func (*ProtobufSettings) ProtoMessage()
func (*ProtobufSettings) Reset ¶ added in v0.0.49
func (m *ProtobufSettings) Reset()
func (*ProtobufSettings) String ¶ added in v0.0.49
func (m *ProtobufSettings) String() string
func (*ProtobufSettings) XXX_DiscardUnknown ¶ added in v0.0.49
func (m *ProtobufSettings) XXX_DiscardUnknown()
func (*ProtobufSettings) XXX_Marshal ¶ added in v0.0.49
func (m *ProtobufSettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ProtobufSettings) XXX_Merge ¶ added in v0.0.49
func (m *ProtobufSettings) XXX_Merge(src proto.Message)
func (*ProtobufSettings) XXX_Size ¶ added in v0.0.49
func (m *ProtobufSettings) XXX_Size() int
func (*ProtobufSettings) XXX_Unmarshal ¶ added in v0.0.49
func (m *ProtobufSettings) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.