コード例 #1
0
ファイル: pt1_recorder.go プロジェクト: speedland/agent
func init() {
	wcg.RegisterProcessConfig(Pt1Config, "speedland.jobs.recorder.pt1", func(c interface{}) {
		cfg := c.(*pt1Config)
		cfg.Recpt1Path = util.AbsPath(cfg.Recpt1Path)
		cfg.StoragePath = util.AbsPath(cfg.StoragePath)
	})
}
コード例 #2
0
ファイル: io.go プロジェクト: speedland/wcg
func UseFileConfig() {
	wcg.RegisterProcessConfig(LogSinkFileConfig, "wcg.logging.file", func(c interface{}) {
		sink := NewIOLogSinkFromConfig(LogSinkFileConfig)
		if sink != nil {
			wcg.LogConfig.AddSink(sink, LogSinkFileConfig.Level)
		}
	})
}
コード例 #3
0
ファイル: datastore.go プロジェクト: speedland/wcg
func init() {
	wcg.RegisterProcessConfig(DataStoreConfig, "gae.datastore", nil)
	gae.RegisterLogDataSchema(&DatastoreOperation{})
}
コード例 #4
0
ファイル: config.go プロジェクト: speedland/rakugaki
func init() {
	wcg.RegisterProcessConfig(AppConfig, "rakugaki", nil)
	wcg.ConfigureProcess("wcg.ini")
	startServer()
}
コード例 #5
0
ファイル: tweetstream.go プロジェクト: speedland/apps
func init() {
	wcg.RegisterProcessConfig(tweetStreamConfig, "speedland.jobs.tweetstream", nil)
}
コード例 #6
0
ファイル: ping.go プロジェクト: speedland/agent
func init() {
	wcg.RegisterProcessConfig(PingConfig, "speedland.jobs.ping", nil)
}
コード例 #7
0
ファイル: statsd.go プロジェクト: speedland/agent
func init() {
	wcg.RegisterProcessConfig(StatsdConfig, "speedland.jobs.statsd", nil)
}
コード例 #8
0
ファイル: package.go プロジェクト: speedland/apps
func init() {
	wcg.RegisterProcessConfig(Config, "speedland", nil)
}
コード例 #9
0
ファイル: email.go プロジェクト: speedland/apps
func init() {
	wcg.RegisterProcessConfig(AlertConfig, "speedland.alert", nil)
}
コード例 #10
0
ファイル: counter.go プロジェクト: speedland/lib
func init() {
	wcg.RegisterProcessConfig(InfluxConfig, "speedland.models.influxconfig", nil)
	influxSource, _ = os.Hostname()
}
コード例 #11
0
ファイル: page.go プロジェクト: speedland/apps
func init() {
	wcg.RegisterProcessConfig(TrackingCode, "speedland.tracking", nil)
}
コード例 #12
0
ファイル: memcache.go プロジェクト: speedland/wcg
func init() {
	wcg.RegisterProcessConfig(MemcacheConfig, "gae.memcache", nil)
	gae.RegisterLogDataSchema(&MemcacheOperation{})
}