Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Separator = ":"
Separator defines FOXDEN query separator
var Verbose int
Verbose defines verbosity level for this module
Functions ¶
Types ¶
type QLManager ¶ added in v0.2.2
type QLManager struct { Map ServiceMap Records []QLRecord }
QLManager represents QL manager
func (*QLManager) Keys ¶ added in v0.2.2
Keys provides list of keys associated with FOXDEN service name
func (*QLManager) QueryKeyAllowed ¶ added in v0.3.4
Determines if a key from a user query is allowed for querying the given service. A user query key is considered "allowed" if it is an exact match for one of the service's allowed query keys OR if the user query key has a prefix equal to one of the allowed service query keys followed by a ".". The latter matching condition allows for queries on nested fields with dot notation.
func (*QLManager) ServiceQueries ¶ added in v0.2.2
ServiceQueries parses given query string into list of service queries
type QLRecord ¶ added in v0.2.9
type QLRecord struct { Key string `json:"key"` Description string `json:"description,omitempty"` Service string `json:"service"` Units string `json:"units,omitempty"` Schema string `json:"schema,omitempty"` DataType string `json:"type"` DBType string `json:"db,omitempty"` }
QLRecord defines structure of QL key
type SchemaKeys ¶
SchemaKeys represents full collection of schema keys across all schemas