Documentation ¶
Index ¶
- Constants
- func CopyFacets(fcs []*protos.Facet, param *protos.Param) (fs []*protos.Facet)
- func FacetFor(key, val string) (*protos.Facet, error)
- func SameFacets(a []*protos.Facet, b []*protos.Facet) bool
- func SortAndValidate(fs []*protos.Facet) error
- func TypeIDFor(f *protos.Facet) types.TypeID
- func ValFor(f *protos.Facet) types.Val
- func ValTypeForTypeID(typId TypeID) protos.Facet_ValType
- type TypeID
Constants ¶
View Source
const ( IntID = TypeID(protos.Facet_INT) FloatID = TypeID(protos.Facet_FLOAT) BoolID = TypeID(protos.Facet_BOOL) DateTimeID = TypeID(protos.Facet_DATETIME) StringID = TypeID(protos.Facet_STRING) )
Variables ¶
This section is empty.
Functions ¶
func CopyFacets ¶ added in v0.8.2
CopyFacets makes a copy of facets of the posting which are requested in param.Keys.
func SameFacets ¶
SameFacets returns whether two facets are same or not. both should be sorted by key.
func SortAndValidate ¶ added in v0.8.2
Sorts And validates the facets.
func ValTypeForTypeID ¶
func ValTypeForTypeID(typId TypeID) protos.Facet_ValType
ValTypeForTypeID gives protos.Facet_ValType for given TypeID
Types ¶
type TypeID ¶
type TypeID protos.Facet_ValType
func TypeIDForValType ¶
func TypeIDForValType(valType protos.Facet_ValType) TypeID
TypeIDForValType gives TypeID for protos.Facet_ValType
Click to show internal directories.
Click to hide internal directories.