Documentation
¶
Index ¶
- type KenobiServer
- func (k *KenobiServer) Build(service interfaces.Service) *KenobiServer
- func (k *KenobiServer) Start()
- func (k *KenobiServer) UseDefaultJsonSerializer()
- func (k *KenobiServer) UseDistributedConfigurationSource(settings *distributedConfiguration.DistributedConfigurationSourceSettings)
- func (k *KenobiServer) UseLocalConfigurationSource(settings *local.LocalConfigurationSourceSettings)
- func (k *KenobiServer) WithConfiguration(configurationKey string) *KenobiServer
- type KenobiServerConfiguration
- type KenobiServerHttpMiddlewareConfiguration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KenobiServer ¶
type KenobiServer struct {
// contains filtered or unexported fields
}
func NewKenobiServer ¶
func NewKenobiServer() *KenobiServer
func (*KenobiServer) Build ¶
func (k *KenobiServer) Build(service interfaces.Service) *KenobiServer
func (*KenobiServer) Start ¶
func (k *KenobiServer) Start()
func (*KenobiServer) UseDefaultJsonSerializer ¶
func (k *KenobiServer) UseDefaultJsonSerializer()
func (*KenobiServer) UseDistributedConfigurationSource ¶
func (k *KenobiServer) UseDistributedConfigurationSource(settings *distributedConfiguration.DistributedConfigurationSourceSettings)
func (*KenobiServer) UseLocalConfigurationSource ¶
func (k *KenobiServer) UseLocalConfigurationSource(settings *local.LocalConfigurationSourceSettings)
func (*KenobiServer) WithConfiguration ¶
func (k *KenobiServer) WithConfiguration(configurationKey string) *KenobiServer
type KenobiServerConfiguration ¶
type KenobiServerConfiguration struct {
ContentType string
MaxHeaderBytes int
GOMAXPROCS *int
HTTPPort int
RPCPort int
LogLevel string
HTTPMiddlewares *KenobiServerHttpMiddlewareConfiguration
Service struct {
Name string
}
Providers *struct {
Redis *struct {
UseClustered bool
Clustered *clustered.ClusteredRedisProviderSettings
UseFailover bool
Failover *failover.FailoverRedisProviderSettings
}
Memcache *struct {
Servers []string
}
Cache *struct {
UseRedis bool
UseMemcache bool
UseInmemoryCache bool
}
}
}
type KenobiServerHttpMiddlewareConfiguration ¶
type KenobiServerHttpMiddlewareConfiguration struct {
Logging struct {
Enabled bool
}
Gzip struct {
Enabled bool
CompressionLevel int
}
RequestID struct {
Enabled bool
}
Timeout struct {
Enabled bool
Duration time.Duration
}
CORS struct {
Enabled bool
AllowOrigins []string
AllowHeaders []string
AllowMethods []string
}
HealthCheck struct {
Enabled bool
Path string
Response string
}
}
Click to show internal directories.
Click to hide internal directories.