Documentation ¶
Index ¶
Constants ¶
View Source
const ( OverMaxRetryBehaviorAlive = "alive" OverMaxRetryBehaviorDie = "die" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Channels ¶
type Channels []string
func (Channels) MarshalLogArray ¶
func (cs Channels) MarshalLogArray(enc zapcore.ArrayEncoder) error
type Config ¶
type Config struct { AccessLog Log `envconfig:"ACCESS_LOG"` ErrorLog Log `envconfig:"ERROR_LOG"` Debug bool Origin string Port string `default:"8080"` GrpcPort string `default:"50051"` MerticsPort string `default:"9999"` SSE ServerSentEvent Subscriber Subscriber TLS Cert `envconfig:"TLS"` Metrics Metrics Pprof Pprof }
type LogMetrics ¶
type Metrics ¶
type Metrics struct { Type string Log LogMetrics Syslog SyslogMetrics Interval time.Duration `default:"10s"` }
type OverMaxRetryBehavior ¶
type OverMaxRetryBehavior struct {
Type string
}
func (*OverMaxRetryBehavior) UnmarshalText ¶
func (b *OverMaxRetryBehavior) UnmarshalText(text []byte) error
type Redis ¶
type Redis struct { Addr string `default:"localhost:6379"` Password string DB int Channels Channels OverMaxRetryBehavior OverMaxRetryBehavior `envconfig:"OVER_MAX_RETRY_BEHAVIOR"` MaxRetry int `default:"5"` Timeout time.Duration `default:"1s"` RetryInterval time.Duration `default:"5s" envconfig:"RETRY_INTERVAL"` }
func (Redis) MarshalLogObject ¶
func (r Redis) MarshalLogObject(enc zapcore.ObjectEncoder) error
type ServerSentEvent ¶
type Subscriber ¶
Click to show internal directories.
Click to hide internal directories.