Documentation ¶
Overview ¶
Package facets is a generated protocol buffer package.
It is generated from these files:
types/facets/facets.proto
It has these top-level messages:
Facet Param Facets List
Index ¶
- Constants
- Variables
- func SameFacets(a []*Facet, b []*Facet) bool
- func SortFacets(fs []*Facet)
- type Facet
- func (*Facet) Descriptor() ([]byte, []int)
- func (m *Facet) GetKey() string
- func (m *Facet) GetValType() Facet_ValType
- func (m *Facet) GetValue() []byte
- func (m *Facet) Marshal() (dAtA []byte, err error)
- func (m *Facet) MarshalTo(dAtA []byte) (int, error)
- func (*Facet) ProtoMessage()
- func (m *Facet) Reset()
- func (m *Facet) Size() (n int)
- func (m *Facet) String() string
- func (m *Facet) Unmarshal(dAtA []byte) error
- type Facet_ValType
- type Facets
- func (*Facets) Descriptor() ([]byte, []int)
- func (m *Facets) GetFacets() []*Facet
- func (a Facets) Len() int
- func (a Facets) Less(i, j int) bool
- func (m *Facets) Marshal() (dAtA []byte, err error)
- func (m *Facets) MarshalTo(dAtA []byte) (int, error)
- func (*Facets) ProtoMessage()
- func (m *Facets) Reset()
- func (m *Facets) Size() (n int)
- func (m *Facets) String() string
- func (a Facets) Swap(i, j int)
- func (m *Facets) Unmarshal(dAtA []byte) error
- type List
- func (*List) Descriptor() ([]byte, []int)
- func (m *List) GetFacetsList() []*Facets
- func (m *List) Marshal() (dAtA []byte, err error)
- func (m *List) MarshalTo(dAtA []byte) (int, error)
- func (*List) ProtoMessage()
- func (m *List) Reset()
- func (m *List) Size() (n int)
- func (m *List) String() string
- func (m *List) Unmarshal(dAtA []byte) error
- type Param
- func (*Param) Descriptor() ([]byte, []int)
- func (m *Param) GetAllKeys() bool
- func (m *Param) GetKeys() []string
- func (m *Param) Marshal() (dAtA []byte, err error)
- func (m *Param) MarshalTo(dAtA []byte) (int, error)
- func (*Param) ProtoMessage()
- func (m *Param) Reset()
- func (m *Param) Size() (n int)
- func (m *Param) String() string
- func (m *Param) Unmarshal(dAtA []byte) error
- type TypeID
Constants ¶
View Source
const ( Int32ID = TypeID(Facet_INT32) FloatID = TypeID(Facet_FLOAT) BoolID = TypeID(Facet_BOOL) DateTimeID = TypeID(Facet_DATETIME) StringID = TypeID(Facet_STRING) )
Variables ¶
View Source
var ( ErrInvalidLengthFacets = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowFacets = fmt.Errorf("proto: integer overflow") )
View Source
var Facet_ValType_name = map[int32]string{
0: "STRING",
1: "INT32",
2: "FLOAT",
3: "BOOL",
4: "DATETIME",
}
View Source
var Facet_ValType_value = map[string]int32{
"STRING": 0,
"INT32": 1,
"FLOAT": 2,
"BOOL": 3,
"DATETIME": 4,
}
Functions ¶
func SameFacets ¶
func SortFacets ¶
func SortFacets(fs []*Facet)
Types ¶
type Facet ¶
type Facet struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` ValType Facet_ValType `protobuf:"varint,3,opt,name=val_type,json=valType,proto3,enum=facets.Facet_ValType" json:"val_type,omitempty"` }
func (*Facet) Descriptor ¶
func (*Facet) GetValType ¶
func (m *Facet) GetValType() Facet_ValType
func (*Facet) ProtoMessage ¶
func (*Facet) ProtoMessage()
type Facet_ValType ¶
type Facet_ValType int32
const ( Facet_STRING Facet_ValType = 0 Facet_INT32 Facet_ValType = 1 Facet_FLOAT Facet_ValType = 2 Facet_BOOL Facet_ValType = 3 Facet_DATETIME Facet_ValType = 4 )
func ValType ¶
func ValType(val string) (Facet_ValType, error)
ValType gives Facet's TypeID for given facet value str.
func ValTypeForTypeID ¶
func ValTypeForTypeID(typId TypeID) Facet_ValType
ValTypeForTypeID gives Facet_ValType for given TypeID
func (Facet_ValType) EnumDescriptor ¶
func (Facet_ValType) EnumDescriptor() ([]byte, []int)
func (Facet_ValType) String ¶
func (x Facet_ValType) String() string
type Facets ¶
type Facets struct {
Facets []*Facet `protobuf:"bytes,1,rep,name=facets" json:"facets,omitempty"`
}
func (*Facets) Descriptor ¶
func (*Facets) ProtoMessage ¶
func (*Facets) ProtoMessage()
type List ¶
type List struct {
FacetsList []*Facets `protobuf:"bytes,1,rep,name=facets_list,json=facetsList" json:"facets_list,omitempty"`
}
func (*List) Descriptor ¶
func (*List) GetFacetsList ¶
func (*List) ProtoMessage ¶
func (*List) ProtoMessage()
type Param ¶
type Param struct { AllKeys bool `protobuf:"varint,1,opt,name=all_keys,json=allKeys,proto3" json:"all_keys,omitempty"` Keys []string `protobuf:"bytes,2,rep,name=keys" json:"keys,omitempty"` }
func (*Param) Descriptor ¶
func (*Param) GetAllKeys ¶
func (*Param) ProtoMessage ¶
func (*Param) ProtoMessage()
type TypeID ¶
type TypeID Facet_ValType
func TypeIDForValType ¶
func TypeIDForValType(valType Facet_ValType) TypeID
TypeIDForValType gives TypeID for Facet_ValType
Click to show internal directories.
Click to hide internal directories.