server

package
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 15, 2021 License: MIT Imports: 19 Imported by: 0

Documentation

Index

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
	}
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL