Documentation ¶
Index ¶
Constants ¶
View Source
const (
// ESBPrefix is prefix of configs variable for ESB.
ESBPrefix = "esb"
)
Variables ¶
This section is empty.
Functions ¶
func Run ¶
func Run(ctx context.Context, cancel context.CancelFunc, op *options.ServerOption) error
Run setups a new datacollection app with a context and options and runs it as server instance.
Types ¶
type DataCollection ¶
type DataCollection struct {
// contains filtered or unexported fields
}
DataCollection is data collection server.
func NewDataCollection ¶
func NewDataCollection(ctx context.Context, op *options.ServerOption) (*DataCollection, error)
NewDataCollection creates a new DataCollection object.
func (*DataCollection) Engine ¶
func (c *DataCollection) Engine() *backbone.Engine
Engine returns engine of the DataCollection instance.
func (*DataCollection) OnHostConfigUpdate ¶
func (c *DataCollection) OnHostConfigUpdate(prev, curr cc.ProcessConfig)
OnHostConfigUpdate is callback for updating configs.
func (*DataCollection) Run ¶
func (c *DataCollection) Run() error
Run runs a new datacollection server.
func (*DataCollection) Service ¶
func (c *DataCollection) Service() *svc.Service
Service returns main service of the DataCollection instance.
type DataCollectionConfig ¶
type DataCollectionConfig struct { // MongoDB mongodb configs. MongoDB mongo.Config // CCRedis CC main redis configs. CCRedis dalredis.Config // SnapRedis snap redis configs. SnapRedis dalredis.Config // DiscoverRedis discover redis configs. DiscoverRedis dalredis.Config // NetCollectRedis net collection redis configs. NetCollectRedis dalredis.Config // ESB blueking ESB configs. Esb esbutil.EsbConfig // DefaultAppName default name of this app. DefaultAppName string }
DataCollectionConfig is configs for DataCollection app.
Click to show internal directories.
Click to hide internal directories.