Documentation ¶
Index ¶
Constants ¶
View Source
const DEFAULT_ENV = "local"
Variables ¶
Functions ¶
Types ¶
type BaseContext ¶
type BaseContext struct { Context context.Context Cancel context.CancelFunc }
func NewContext ¶
func NewContext() *BaseContext
type Config ¶
type Config struct { Kafka KafkaConfig Server ServerConfig Shutdown bool }
Config for API
type KafkaConfig ¶
type KafkaConfig struct {
Endpoint string
}
KafkaConfig is a set of configuration params for kafka
type ServerConfig ¶
type ServerConfig struct {
Port string
}
ServerConfig is a set of configuration params for API
Click to show internal directories.
Click to hide internal directories.