server

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2021 License: MIT Imports: 17 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(serverName string) *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 {
	GOMAXPROCS *int
	HTTP       *KenobiServerHttpConfiguration
}

type KenobiServerDefaultHttpMiddlewares added in v0.1.2

type KenobiServerDefaultHttpMiddlewares struct {
	LoggingEnabled   bool
	GzipEnabled      bool
	RequestIDEnabled 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
	}
}

type KenobiServerHttpConfiguration added in v0.1.2

type KenobiServerHttpConfiguration struct {
	Port               int
	DefaultMiddlewares *KenobiServerDefaultHttpMiddlewares
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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