Documentation ¶
Index ¶
- Constants
- Variables
- func InitConfManagers()
- func Read() (osrelease map[string]string, err error)
- func ReadFile(filename string) (osrelease map[string]string, err error)
- func ReadString(content string) (osrelease map[string]string, err error)
- func StartUp(Version string)
- type ConfManager
- type Configuration
- type ConnectionBody
- type ImportConfigurationStatus
- type InstallScriptGetter
- type Metrics
- type RuleMigrationProcessor
- type RuleRegistry
- type RuleStatusMetricsValue
- type Server
- func (t *Server) CreatePlugin(arg *model.PluginDesc, reply *string) error
- func (t *Server) CreateQuery(sql string, reply *string) error
- func (t *Server) CreateRule(rule *model.RPCArgDesc, reply *string) error
- func (t *Server) CreateSchema(arg *model.RPCTypedArgDesc, reply *string) error
- func (t *Server) CreateService(arg *model.RPCArgDesc, reply *string) error
- func (t *Server) DescPlugin(arg *model.PluginDesc, reply *string) error
- func (t *Server) DescRule(name string, reply *string) error
- func (t *Server) DescSchema(arg *model.RPCTypedArgDesc, reply *string) error
- func (t *Server) DescService(name string, reply *string) error
- func (t *Server) DescServiceFunc(name string, reply *string) error
- func (t *Server) DescUdf(arg string, reply *string) error
- func (t *Server) DropPlugin(arg *model.PluginDesc, reply *string) error
- func (t *Server) DropRule(name string, reply *string) error
- func (t *Server) DropSchema(arg *model.RPCTypedArgDesc, reply *string) error
- func (t *Server) DropService(name string, reply *string) error
- func (t *Server) Export(file string, reply *string) error
- func (t *Server) ExportConfiguration(arg *model.ExportDataDesc, reply *string) error
- func (t *Server) GetQueryResult(_ string, reply *string) error
- func (t *Server) GetStatusImport(_ int, reply *string) error
- func (t *Server) GetStatusRule(name string, reply *string) error
- func (t *Server) GetTopoRule(name string, reply *string) error
- func (t *Server) Import(file string, reply *string) error
- func (t *Server) ImportConfiguration(arg *model.ImportDataDesc, reply *string) error
- func (t *Server) RegisterPlugin(arg *model.PluginDesc, reply *string) error
- func (t *Server) RestartRule(name string, reply *string) error
- func (t *Server) ShowPlugins(arg int, reply *string) error
- func (t *Server) ShowRules(_ int, reply *string) error
- func (t *Server) ShowSchemas(schemaType string, reply *string) error
- func (t *Server) ShowServiceFuncs(_ int, reply *string) error
- func (t *Server) ShowServices(_ int, reply *string) error
- func (t *Server) ShowUdfs(_ int, reply *string) error
- func (t *Server) StartRule(name string, reply *string) error
- func (t *Server) StopRule(name string, reply *string) error
- func (t *Server) Stream(stream string, reply *string) error
- func (t *Server) ValidateRule(rule *model.RPCArgDesc, reply *string) error
- type UpdateRuleStateType
Constants ¶
View Source
const ( EtcOsRelease string = "/etc/os-release" UsrLibOsRelease string = "/usr/lib/os-release" )
View Source
const ( ContentType = "Content-Type" ContentTypeJSON = "application/json" )
View Source
const QueryRuleId = "internal-ekuiper_query_rule"
Variables ¶
View Source
var ( NativeSourcePlugin = []string{"random", "zmq", "sql", "video", "kafka"} NativeSinkPlugin = []string{"image", "influx", "influx2", "tdengine", "zmq", "kafka", "sql"} NativeFunctionPlugin = []string{"accumulateWordCount", "countPlusOne", "echo", "geohash", "image", "labelImage", "tfLite"} )
Functions ¶
func InitConfManagers ¶
func InitConfManagers()
func Read ¶
Read and return os-release, trying EtcOsRelease, followed by UsrLibOsRelease. err will contain an error message if neither file exists or failed to parse
func ReadString ¶
ReadString is similar to Read(), but takes a string to load instead
Types ¶
type ConfManager ¶
type Configuration ¶
type Configuration struct { Streams map[string]string `json:"streams"` Tables map[string]string `json:"tables"` Rules map[string]string `json:"rules"` NativePlugins map[string]string `json:"nativePlugins"` PortablePlugins map[string]string `json:"portablePlugins"` SourceConfig map[string]string `json:"sourceConfig"` SinkConfig map[string]string `json:"sinkConfig"` ConnectionConfig map[string]string `json:"connectionConfig"` Service map[string]string `json:"Service"` Schema map[string]string `json:"Schema"` Uploads map[string]string `json:"uploads"` Scripts map[string]string `json:"scripts"` }
type ConnectionBody ¶
type ConnectionBody struct {
Endpoint string `json:"endpoint"`
}
type ImportConfigurationStatus ¶
type ImportConfigurationStatus struct { ErrorMsg string ConfigResponse Configuration }
type InstallScriptGetter ¶
type Metrics ¶
type Metrics struct {
// contains filtered or unexported fields
}
func NewMetrics ¶
func NewMetrics() *Metrics
func (*Metrics) GetCpuUsage ¶
func (*Metrics) GetMemoryUsage ¶
type RuleMigrationProcessor ¶
type RuleMigrationProcessor struct {
// contains filtered or unexported fields
}
func NewRuleMigrationProcessor ¶
func NewRuleMigrationProcessor(r *processor.RuleProcessor, s *processor.StreamProcessor) *RuleMigrationProcessor
func (*RuleMigrationProcessor) ConfigurationPartialExport ¶
func (p *RuleMigrationProcessor) ConfigurationPartialExport(rules []string) ([]byte, error)
type RuleRegistry ¶
func (*RuleRegistry) Delete ¶
func (rr *RuleRegistry) Delete(key string) (*rule.RuleState, bool)
Delete Atomic get and delete. Only run when deleting a rule in runtime.
type RuleStatusMetricsValue ¶
type RuleStatusMetricsValue int
const ( RuleStoppedByError RuleStatusMetricsValue = -1 RuleStopped RuleStatusMetricsValue = 0 RuleRunning RuleStatusMetricsValue = 1 )
type Server ¶
type Server int
func (*Server) CreatePlugin ¶
func (t *Server) CreatePlugin(arg *model.PluginDesc, reply *string) error
func (*Server) CreateRule ¶
func (t *Server) CreateRule(rule *model.RPCArgDesc, reply *string) error
func (*Server) CreateSchema ¶
func (t *Server) CreateSchema(arg *model.RPCTypedArgDesc, reply *string) error
func (*Server) CreateService ¶
func (t *Server) CreateService(arg *model.RPCArgDesc, reply *string) error
func (*Server) DescPlugin ¶
func (t *Server) DescPlugin(arg *model.PluginDesc, reply *string) error
func (*Server) DescSchema ¶
func (t *Server) DescSchema(arg *model.RPCTypedArgDesc, reply *string) error
func (*Server) DropPlugin ¶
func (t *Server) DropPlugin(arg *model.PluginDesc, reply *string) error
func (*Server) DropSchema ¶
func (t *Server) DropSchema(arg *model.RPCTypedArgDesc, reply *string) error
func (*Server) ExportConfiguration ¶
func (t *Server) ExportConfiguration(arg *model.ExportDataDesc, reply *string) error
func (*Server) ImportConfiguration ¶
func (t *Server) ImportConfiguration(arg *model.ImportDataDesc, reply *string) error
func (*Server) RegisterPlugin ¶
func (t *Server) RegisterPlugin(arg *model.PluginDesc, reply *string) error
func (*Server) ValidateRule ¶
func (t *Server) ValidateRule(rule *model.RPCArgDesc, reply *string) error
type UpdateRuleStateType ¶
type UpdateRuleStateType int
const ( UpdateRuleState UpdateRuleStateType = iota UpdateRuleOffset )
Source Files ¶
- async_rest.go
- component.go
- connection.go
- import_export.go
- meta_init.go
- metrics.go
- os.go
- plugin_init.go
- portable_init.go
- pprof_init.go
- prebuild_plugins.go
- prome_init.go
- rest.go
- rpc.go
- rpc_plugin.go
- rpc_plugin_both.go
- rpc_plugin_hasnative.go
- rpc_schema.go
- rpc_service.go
- rule_manager.go
- rule_migration.go
- rule_state.go
- schema_init.go
- server.go
- service_init.go
- tpl_init.go
Click to show internal directories.
Click to hide internal directories.