Documentation ¶
Index ¶
- Constants
- func CopyFacets(fcs []*api.Facet, param *intern.FacetParams) (fs []*api.Facet)
- func FacetFor(key, val string) (*api.Facet, error)
- func SameFacets(a []*api.Facet, b []*api.Facet) bool
- func SortAndValidate(fs []*api.Facet) error
- func TypeIDFor(f *api.Facet) types.TypeID
- func ValFor(f *api.Facet) types.Val
- func ValTypeForTypeID(typId TypeID) api.Facet_ValType
- type TypeID
Constants ¶
View Source
const ( IntID = TypeID(api.Facet_INT) FloatID = TypeID(api.Facet_FLOAT) BoolID = TypeID(api.Facet_BOOL) DateTimeID = TypeID(api.Facet_DATETIME) StringID = TypeID(api.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) api.Facet_ValType
ValTypeForTypeID gives api.Facet_ValType for given TypeID
Types ¶
type TypeID ¶
type TypeID api.Facet_ValType
func TypeIDForValType ¶
func TypeIDForValType(valType api.Facet_ValType) TypeID
TypeIDForValType gives TypeID for api.Facet_ValType
Click to show internal directories.
Click to hide internal directories.