Help us shape the future of Go! Take the 2026 Go Developer Survey

facets

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2017 License: Apache-2.0 Imports: 9 Imported by: 0

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

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 SameFacets(a []*Facet, b []*Facet) bool

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) Descriptor() ([]byte, []int)

func (*Facet) GetKey

func (m *Facet) GetKey() string

func (*Facet) GetValType

func (m *Facet) GetValType() Facet_ValType

func (*Facet) GetValue

func (m *Facet) GetValue() []byte

func (*Facet) Marshal

func (m *Facet) Marshal() (dAtA []byte, err error)

func (*Facet) MarshalTo

func (m *Facet) MarshalTo(dAtA []byte) (int, error)

func (*Facet) ProtoMessage

func (*Facet) ProtoMessage()

func (*Facet) Reset

func (m *Facet) Reset()

func (*Facet) Size

func (m *Facet) Size() (n int)

func (*Facet) String

func (m *Facet) String() string

func (*Facet) Unmarshal

func (m *Facet) Unmarshal(dAtA []byte) error

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) Descriptor() ([]byte, []int)

func (*Facets) GetFacets

func (m *Facets) GetFacets() []*Facet

func (Facets) Len

func (a Facets) Len() int

func (Facets) Less

func (a Facets) Less(i, j int) bool

func (*Facets) Marshal

func (m *Facets) Marshal() (dAtA []byte, err error)

func (*Facets) MarshalTo

func (m *Facets) MarshalTo(dAtA []byte) (int, error)

func (*Facets) ProtoMessage

func (*Facets) ProtoMessage()

func (*Facets) Reset

func (m *Facets) Reset()

func (*Facets) Size

func (m *Facets) Size() (n int)

func (*Facets) String

func (m *Facets) String() string

func (Facets) Swap

func (a Facets) Swap(i, j int)

func (*Facets) Unmarshal

func (m *Facets) Unmarshal(dAtA []byte) error

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) Descriptor() ([]byte, []int)

func (*List) GetFacetsList

func (m *List) GetFacetsList() []*Facets

func (*List) Marshal

func (m *List) Marshal() (dAtA []byte, err error)

func (*List) MarshalTo

func (m *List) MarshalTo(dAtA []byte) (int, error)

func (*List) ProtoMessage

func (*List) ProtoMessage()

func (*List) Reset

func (m *List) Reset()

func (*List) Size

func (m *List) Size() (n int)

func (*List) String

func (m *List) String() string

func (*List) Unmarshal

func (m *List) Unmarshal(dAtA []byte) error

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) Descriptor() ([]byte, []int)

func (*Param) GetAllKeys

func (m *Param) GetAllKeys() bool

func (*Param) GetKeys

func (m *Param) GetKeys() []string

func (*Param) Marshal

func (m *Param) Marshal() (dAtA []byte, err error)

func (*Param) MarshalTo

func (m *Param) MarshalTo(dAtA []byte) (int, error)

func (*Param) ProtoMessage

func (*Param) ProtoMessage()

func (*Param) Reset

func (m *Param) Reset()

func (*Param) Size

func (m *Param) Size() (n int)

func (*Param) String

func (m *Param) String() string

func (*Param) Unmarshal

func (m *Param) Unmarshal(dAtA []byte) error

type TypeID

type TypeID Facet_ValType

func TypeIDForValType

func TypeIDForValType(valType Facet_ValType) TypeID

TypeIDForValType gives TypeID for Facet_ValType

Jump to

Keyboard shortcuts

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