Documentation ¶
Overview ¶
Package tuplepb is a generated protocol buffer package.
It is generated from these files:
tuple.proto
It has these top-level messages:
Table KeyField Field
Index ¶
- Variables
- func MarshalTable(t *tuple.Header) ([]byte, error)
- func UnmarshalTable(p []byte) (*tuple.Header, error)
- type Field
- func (*Field) Descriptor() ([]byte, []int)
- func (m *Field) GetName() string
- func (m *Field) GetType() ValueType
- func (m *Field) Marshal() (dAtA []byte, err error)
- func (m *Field) MarshalTo(dAtA []byte) (int, error)
- func (*Field) ProtoMessage()
- func (m *Field) ProtoSize() (n int)
- func (m *Field) Reset()
- func (m *Field) String() string
- func (m *Field) Unmarshal(dAtA []byte) error
- type KeyField
- func (*KeyField) Descriptor() ([]byte, []int)
- func (m *KeyField) GetAuto() bool
- func (m *KeyField) GetName() string
- func (m *KeyField) GetType() ValueType
- func (m *KeyField) Marshal() (dAtA []byte, err error)
- func (m *KeyField) MarshalTo(dAtA []byte) (int, error)
- func (*KeyField) ProtoMessage()
- func (m *KeyField) ProtoSize() (n int)
- func (m *KeyField) Reset()
- func (m *KeyField) String() string
- func (m *KeyField) Unmarshal(dAtA []byte) error
- type Table
- func (*Table) Descriptor() ([]byte, []int)
- func (m *Table) GetData() []Field
- func (m *Table) GetKey() []KeyField
- func (m *Table) GetName() string
- func (m *Table) Marshal() (dAtA []byte, err error)
- func (m *Table) MarshalTo(dAtA []byte) (int, error)
- func (*Table) ProtoMessage()
- func (m *Table) ProtoSize() (n int)
- func (m *Table) Reset()
- func (m *Table) String() string
- func (m *Table) Unmarshal(dAtA []byte) error
- type ValueType
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthTuple = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTuple = fmt.Errorf("proto: integer overflow") )
View Source
var ValueType_name = map[int32]string{
0: "TYPE_ANY",
1: "TYPE_BYTES",
2: "TYPE_STRING",
3: "TYPE_UINT",
4: "TYPE_INT",
5: "TYPE_BOOL",
6: "TYPE_TIME",
7: "TYPE_FLOAT",
}
View Source
var ValueType_value = map[string]int32{
"TYPE_ANY": 0,
"TYPE_BYTES": 1,
"TYPE_STRING": 2,
"TYPE_UINT": 3,
"TYPE_INT": 4,
"TYPE_BOOL": 5,
"TYPE_TIME": 6,
"TYPE_FLOAT": 7,
}
Functions ¶
Types ¶
type Field ¶
type Field struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Type ValueType `protobuf:"varint,2,opt,name=type,proto3,enum=nwca.hidalgo.tuple.ValueType" json:"type,omitempty"` }
func (*Field) Descriptor ¶
func (*Field) ProtoMessage ¶
func (*Field) ProtoMessage()
type KeyField ¶
type KeyField struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Type ValueType `protobuf:"varint,2,opt,name=type,proto3,enum=nwca.hidalgo.tuple.ValueType" json:"type,omitempty"` Auto bool `protobuf:"varint,3,opt,name=auto,proto3" json:"auto,omitempty"` }
func (*KeyField) Descriptor ¶
func (*KeyField) ProtoMessage ¶
func (*KeyField) ProtoMessage()
type Table ¶
type Table struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Key []KeyField `protobuf:"bytes,2,rep,name=key" json:"key"` Data []Field `protobuf:"bytes,3,rep,name=data" json:"data"` }
func (*Table) Descriptor ¶
func (*Table) ProtoMessage ¶
func (*Table) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.