Documentation ¶
Index ¶
- func NewCustomMetricsSpec(config *Config) models.CustomMetricsSpec
- func NewDefaultCustomMetricsSpec() models.CustomMetricsSpec
- type BuilderConfig
- type Config
- func (c *Config) Get(s string) interface{}
- func (c *Config) GetBool(s string) bool
- func (c *Config) GetDuration(s string) time.Duration
- func (c *Config) GetInt(s string) int
- func (c *Config) GetString(s string) string
- func (c *Config) GetStringMapString(s string) map[string]string
- func (c *Config) GetStringSlice(s string) []string
- func (c *Config) UnmarshalKey(s string, v interface{}) error
- type ETCDBindingConfig
- type EnqueueOpts
- type EtcdGroupServiceConfig
- type EtcdServiceDiscoveryConfig
- type GRPCClientConfig
- type GRPCServerConfig
- type InfoRetrieverConfig
- type MemoryGroupConfig
- type NatsRPCClientConfig
- type NatsRPCServerConfig
- type PitayaConfig
- type PrometheusConfig
- type RateLimitingConfig
- type StatsdConfig
- type WorkerConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCustomMetricsSpec ¶ added in v2.0.8
func NewCustomMetricsSpec(config *Config) models.CustomMetricsSpec
NewCustomMetricsSpec returns a *CustomMetricsSpec by reading config key (DEPRECATED)
func NewDefaultCustomMetricsSpec ¶ added in v2.0.8
func NewDefaultCustomMetricsSpec() models.CustomMetricsSpec
NewDefaultCustomMetricsSpec returns an empty *CustomMetricsSpec
Types ¶
type BuilderConfig ¶ added in v2.0.8
type BuilderConfig struct { PitayaConfig PitayaConfig IsPrometheusEnabled bool IsStatsdEnabled bool IsDefaultPipelineEnabled bool }
BuilderConfig provides configuration for Builder
func NewBuilderConfig ¶ added in v2.0.8
func NewBuilderConfig(config *Config) BuilderConfig
NewBuilderConfig reads from config to build builder configuration
func NewDefaultBuilderConfig ¶ added in v2.0.8
func NewDefaultBuilderConfig() BuilderConfig
NewDefaultBuilderConfig provides default builder configuration
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
Config is a wrapper around a viper config
func (*Config) GetDuration ¶
GetDuration returns a duration from the inner config
func (*Config) GetStringMapString ¶
GetStringMapString returns a string map string from the inner config
func (*Config) GetStringSlice ¶
GetStringSlice returns a string slice from the inner config
func (*Config) UnmarshalKey ¶
UnmarshalKey unmarshals key into v
type ETCDBindingConfig ¶ added in v2.0.8
type ETCDBindingConfig struct { DialTimeout time.Duration Endpoints []string Prefix string LeaseTTL time.Duration }
ETCDBindingConfig provides configuration for ETCDBindingStorage
func NewDefaultETCDBindingConfig ¶ added in v2.0.8
func NewDefaultETCDBindingConfig() ETCDBindingConfig
NewDefaultETCDBindingConfig provides default configuration for ETCDBindingStorage
func NewETCDBindingConfig ¶ added in v2.0.8
func NewETCDBindingConfig(config *Config) ETCDBindingConfig
NewETCDBindingConfig reads from config to build ETCDBindingStorage configuration
type EnqueueOpts ¶ added in v2.0.8
type EnqueueOpts struct { RetryEnabled bool MaxRetries int ExponentialFactor int MinDelayToRetry int MaxDelayToRetry int MaxRandom int }
EnqueueOpts has retry options for worker
func NewDefaultEnqueueOpts ¶ added in v2.0.8
func NewDefaultEnqueueOpts() EnqueueOpts
NewDefaultEnqueueOpts provides default EnqueueOpts
func NewEnqueueOpts ¶ added in v2.0.8
func NewEnqueueOpts(config *Config) EnqueueOpts
NewEnqueueOpts reads from config to build *EnqueueOpts
type EtcdGroupServiceConfig ¶ added in v2.0.8
type EtcdGroupServiceConfig struct { DialTimeout time.Duration Endpoints []string Prefix string TransactionTimeout time.Duration }
EtcdGroupServiceConfig provides ETCD configuration
func NewDefaultEtcdGroupServiceConfig ¶ added in v2.0.8
func NewDefaultEtcdGroupServiceConfig() EtcdGroupServiceConfig
NewDefaultEtcdGroupServiceConfig provides default ETCD configuration
func NewEtcdGroupServiceConfig ¶ added in v2.0.8
func NewEtcdGroupServiceConfig(config *Config) EtcdGroupServiceConfig
NewEtcdGroupServiceConfig reads from config to build ETCD configuration
type EtcdServiceDiscoveryConfig ¶ added in v2.0.8
type EtcdServiceDiscoveryConfig struct { EtcdEndpoints []string EtcdUser string EtcdPass string EtcdDialTimeout time.Duration EtcdPrefix string HeartbeatTTL time.Duration LogHeartbeat bool SyncServersInterval time.Duration RevokeTimeout time.Duration GrantLeaseTimeout time.Duration GrantLeaseMaxRetries int GrantLeaseInterval time.Duration ShutdownDelay time.Duration ServerTypesBlacklist []string SyncServersParallelism int }
EtcdServiceDiscoveryConfig Etcd service discovery config
func NewDefaultEtcdServiceDiscoveryConfig ¶ added in v2.0.8
func NewDefaultEtcdServiceDiscoveryConfig() EtcdServiceDiscoveryConfig
NewDefaultEtcdServiceDiscoveryConfig Etcd service discovery default config
func NewEtcdServiceDiscoveryConfig ¶ added in v2.0.8
func NewEtcdServiceDiscoveryConfig(config *Config) EtcdServiceDiscoveryConfig
NewEtcdServiceDiscoveryConfig Etcd service discovery config with default config paths
type GRPCClientConfig ¶ added in v2.0.8
type GRPCClientConfig struct { DialTimeout time.Duration LazyConnection bool RequestTimeout time.Duration }
GRPCClientConfig rpc client config struct
func NewDefaultGRPCClientConfig ¶ added in v2.0.8
func NewDefaultGRPCClientConfig() GRPCClientConfig
NewDefaultGRPCClientConfig rpc client default config struct
func NewGRPCClientConfig ¶ added in v2.0.8
func NewGRPCClientConfig(config *Config) GRPCClientConfig
NewGRPCClientConfig reads from config to build GRPCCLientConfig
type GRPCServerConfig ¶ added in v2.0.8
type GRPCServerConfig struct {
Port int
}
GRPCServerConfig provides configuration for GRPCServer
func NewDefaultGRPCServerConfig ¶ added in v2.0.8
func NewDefaultGRPCServerConfig() GRPCServerConfig
NewDefaultGRPCServerConfig returns a default GRPCServerConfig
func NewGRPCServerConfig ¶ added in v2.0.8
func NewGRPCServerConfig(config *Config) GRPCServerConfig
NewGRPCServerConfig reads from config to build GRPCServerConfig
type InfoRetrieverConfig ¶ added in v2.0.9
type InfoRetrieverConfig struct {
Region string
}
InfoRetrieverConfig provides InfoRetriever configuration
func NewDefaultInfoRetrieverConfig ¶ added in v2.0.9
func NewDefaultInfoRetrieverConfig() InfoRetrieverConfig
NewDefaultInfoRetrieverConfig provides default configuration for InfoRetriever
func NewInfoRetrieverConfig ¶ added in v2.0.9
func NewInfoRetrieverConfig(c *Config) InfoRetrieverConfig
NewInfoRetrieverConfig reads from config to build configuration for InfoRetriever
type MemoryGroupConfig ¶ added in v2.0.8
MemoryGroupConfig provides configuration for MemoryGroup
func NewDefaultMemoryGroupConfig ¶ added in v2.0.8
func NewDefaultMemoryGroupConfig() MemoryGroupConfig
NewDefaultMemoryGroupConfig returns a new, default group instance
func NewMemoryGroupConfig ¶ added in v2.0.8
func NewMemoryGroupConfig(conf *Config) MemoryGroupConfig
NewMemoryGroupConfig returns a new, default group instance
type NatsRPCClientConfig ¶ added in v2.0.8
type NatsRPCClientConfig struct { Connect string MaxReconnectionRetries int RequestTimeout time.Duration ConnectionTimeout time.Duration }
NatsRPCClientConfig provides nats client configuration
func NewDefaultNatsRPCClientConfig ¶ added in v2.0.8
func NewDefaultNatsRPCClientConfig() NatsRPCClientConfig
NewDefaultNatsRPCClientConfig provides default nats client configuration
func NewNatsRPCClientConfig ¶ added in v2.0.8
func NewNatsRPCClientConfig(config *Config) NatsRPCClientConfig
NewNatsRPCClientConfig reads from config to build nats client configuration
type NatsRPCServerConfig ¶ added in v2.0.8
type NatsRPCServerConfig struct { Connect string MaxReconnectionRetries int Messages int Push int Service int ConnectionTimeout time.Duration }
NatsRPCServerConfig provides nats server configuration
func NewDefaultNatsRPCServerConfig ¶ added in v2.0.8
func NewDefaultNatsRPCServerConfig() NatsRPCServerConfig
NewDefaultNatsRPCServerConfig provides default nats server configuration
func NewNatsRPCServerConfig ¶ added in v2.0.8
func NewNatsRPCServerConfig(config *Config) NatsRPCServerConfig
NewNatsRPCServerConfig reads from config to build nats server configuration
type PitayaConfig ¶ added in v2.0.8
type PitayaConfig struct { HearbeatInterval time.Duration MessageCompression bool BufferAgentMessages int BufferHandlerLocalProcess int BufferHandlerRemoteProcess int ConcurrencyHandlerDispatch int SessionUnique bool MetricsPeriod time.Duration }
PitayaConfig provides configuration for a pitaya app
func NewDefaultPitayaConfig ¶ added in v2.0.8
func NewDefaultPitayaConfig() PitayaConfig
NewDefaultPitayaConfig provides default configuration for Pitaya App
func NewPitayaConfig ¶ added in v2.0.8
func NewPitayaConfig(config *Config) PitayaConfig
NewPitayaConfig returns a config instance with values extracted from default config paths
type PrometheusConfig ¶ added in v2.0.8
type PrometheusConfig struct { Port int Game string AdditionalLabels map[string]string ConstLabels map[string]string }
PrometheusConfig provides configuration for PrometheusReporter
func NewDefaultPrometheusConfig ¶ added in v2.0.8
func NewDefaultPrometheusConfig() PrometheusConfig
NewDefaultPrometheusConfig provides default configuration for PrometheusReporter
func NewPrometheusConfig ¶ added in v2.0.8
func NewPrometheusConfig(config *Config) PrometheusConfig
NewPrometheusConfig reads from config to build configuration for PrometheusReporter
type RateLimitingConfig ¶ added in v2.0.8
RateLimitingConfig rate limits config
func NewDefaultRateLimitingConfig ¶ added in v2.0.8
func NewDefaultRateLimitingConfig() RateLimitingConfig
NewDefaultRateLimitingConfig rate limits default config
func NewRateLimitingConfig ¶ added in v2.0.8
func NewRateLimitingConfig(config *Config) RateLimitingConfig
NewRateLimitingConfig reads from config to build rate limiting configuration
type StatsdConfig ¶ added in v2.0.8
StatsdConfig provides configuration for statsd
func NewDefaultStatsdConfig ¶ added in v2.0.8
func NewDefaultStatsdConfig() StatsdConfig
NewDefaultStatsdConfig provides default configuration for statsd
func NewStatsdConfig ¶ added in v2.0.8
func NewStatsdConfig(config *Config) StatsdConfig
NewStatsdConfig reads from config to build configuration for statsd
type WorkerConfig ¶ added in v2.0.8
type WorkerConfig struct { ServerURL string Pool string Password string Namespace string Concurrency int }
WorkerConfig provides worker configuration
func NewDefaultWorkerConfig ¶ added in v2.0.8
func NewDefaultWorkerConfig() WorkerConfig
NewDefaultWorkerConfig provides worker default configuration
func NewWorkerConfig ¶ added in v2.0.8
func NewWorkerConfig(config *Config) WorkerConfig
NewWorkerConfig provides worker configuration based on default string paths