Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Version = "dev" BuildCommit = "" BuildDate = "" )
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Port string `default:"8080"` // Timeout represents graceful shutdown period. Defaults to 60 seconds. Timeout time.Duration `default:"60s"` CacheSizeInMB int64 `default:"100"` GRPC GRPCConfig NewRelic NewRelicConfig DB DBConfig KafkaProducer KafkaProducerConfig StatsD StatsDConfig SchemaChange SchemaChangeConfig }
Config Server config
type DBConfig ¶
type DBConfig struct {
ConnectionString string
}
DBConfig contains DB connection details
type GRPCConfig ¶
type GRPCConfig struct { MaxRecvMsgSizeInMB int `default:"10"` MaxSendMsgSizeInMB int `default:"10"` }
GRPCConfig grpc options
type KafkaProducerConfig ¶ added in v0.8.0
type KafkaProducerConfig struct { BootstrapServer string Retries int `default:"5"` Timeout int `default:"5000"` }
Kafka Producer Config
type NewRelicConfig ¶
type NewRelicConfig struct { Enabled bool `default:"false"` AppName string `default:"stencil"` License string }
NewRelicConfig contains the New Relic go-agent configuration
type SchemaChangeConfig ¶ added in v0.8.0
SchameChangeConfig
type StatsDConfig ¶ added in v0.8.0
StatsDConfig
Click to show internal directories.
Click to hide internal directories.