Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var GlobalSchemaStore = &SchemaStore{}
Functions ¶
func AddRuleSchema ¶
func AddRuleSchema(ruleID, dataSource string, schema map[string]*ast.JsonStreamField, isWildcard bool)
func MergeSchema ¶
func MergeSchema(originSchema, newSchema map[string]*ast.JsonStreamField) (map[string]*ast.JsonStreamField, error)
func RemoveRuleSchema ¶
func RemoveRuleSchema(ruleID string)
Types ¶
type RuleSchemaResponse ¶
type RuleSchemaResponse struct { // streamName -> schema Schema map[string]map[string]*ast.JsonStreamField `json:"schema"` // streamName -> wildcard Wildcard map[string]bool `json:"wildcard"` }
func GetRuleSchema ¶
func GetRuleSchema(ruleID string) RuleSchemaResponse
Click to show internal directories.
Click to hide internal directories.