Documentation
¶
Index ¶
- Constants
- func CopyFacets(fcs []*api.Facet, param *pb.FacetParams) (fs []*api.Facet)
- func FacetFor(key, val string) (*api.Facet, error)
- func SortAndValidate(fs []*api.Facet) error
- func ToBinary(key string, value interface{}, sourceType api.Facet_ValType) (*api.Facet, error)
- func TypeIDFor(f *api.Facet) (types.TypeID, error)
- func ValFor(f *api.Facet) (types.Val, error)
- func ValTypeForTypeID(typId TypeID) api.Facet_ValType
- type TypeID
Constants ¶
View Source
const ( // IntID represents the integer type. IntID = TypeID(api.Facet_INT) // FloatID represents the floating-point number type. FloatID = TypeID(api.Facet_FLOAT) // BoolID represents the boolean type. BoolID = TypeID(api.Facet_BOOL) // DateTimeID represents the datetime type. DateTimeID = TypeID(api.Facet_DATETIME) // StringID represents the string type. StringID = TypeID(api.Facet_STRING) )
Variables ¶
This section is empty.
Functions ¶
func CopyFacets ¶
CopyFacets makes a copy of facets of the posting which are requested in param.Keys.
func SortAndValidate ¶
SortAndValidate sorts And validates the facets.
func ValTypeForTypeID ¶
func ValTypeForTypeID(typId TypeID) api.Facet_ValType
ValTypeForTypeID gives api.Facet_ValType for given TypeID
Types ¶
Click to show internal directories.
Click to hide internal directories.