server

package
v0.0.0-...-937c6ff Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2022 License: MIT Imports: 13 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHttpLoggingMiddleware

func NewHttpLoggingMiddleware(config *LoggingConfig) fiber.Handler

Types

type Disposable

type Disposable interface {
	Dispose()
}

type FiberAppFunc

type FiberAppFunc func(app *fiber.App, server *Server)

type LoggingConfig

type LoggingConfig struct {
	Fields             []string
	ServerErrorMessage string
	ClientErrorMessage string
	SuccessMessage     string
}

type Server

type Server struct {
	AppName string
	// contains filtered or unexported fields
}

func (*Server) GetConfiguration

func (server *Server) GetConfiguration() *configuration.ConfigurationRoot

func (*Server) GetHealthCheckRunner

func (server *Server) GetHealthCheckRunner() *healthchecks.HealthCheckRunner

func (*Server) GetService

func (server *Server) GetService(name string) (*interface{}, error)

func (*Server) RegisterService

func (server *Server) RegisterService(name string, service interface{})

func (*Server) Run

func (server *Server) Run()

func (*Server) RunDevelopment

func (server *Server) RunDevelopment()

type ServerBuilder

type ServerBuilder struct {
	AppName string
	// contains filtered or unexported fields
}

func New

func New(appName string) *ServerBuilder

func (*ServerBuilder) Build

func (builder *ServerBuilder) Build() *Server

func (*ServerBuilder) BuildForDevelopment

func (builder *ServerBuilder) BuildForDevelopment(isDevelopment bool) *Server

func (*ServerBuilder) ConfigureHandlers

func (builder *ServerBuilder) ConfigureHandlers(handlerConfig FiberAppFunc) *ServerBuilder

func (*ServerBuilder) WithConfigMap

func (builder *ServerBuilder) WithConfigMap(name string) *ServerBuilder

func (*ServerBuilder) WithConfigurationProvider

func (builder *ServerBuilder) WithConfigurationProvider(provider configuration.ConfigurationProvider) *ServerBuilder

func (*ServerBuilder) WithEnvironmentVariableConfiguration

func (builder *ServerBuilder) WithEnvironmentVariableConfiguration(prefix string) *ServerBuilder

func (*ServerBuilder) WithInMemoryConfiguration

func (builder *ServerBuilder) WithInMemoryConfiguration(name string, data map[string]string) *ServerBuilder

func (*ServerBuilder) WithLivenessHealthCheck

func (builder *ServerBuilder) WithLivenessHealthCheck(healthCheck healthchecks.HealthCheck) *ServerBuilder

func (*ServerBuilder) WithReadinessHealthCheck

func (builder *ServerBuilder) WithReadinessHealthCheck(healthCheck healthchecks.HealthCheck) *ServerBuilder

func (*ServerBuilder) WithRequiredConfigMap

func (builder *ServerBuilder) WithRequiredConfigMap(name string) *ServerBuilder

func (*ServerBuilder) WithRequiredSecret

func (builder *ServerBuilder) WithRequiredSecret(name string) *ServerBuilder

func (*ServerBuilder) WithSecret

func (builder *ServerBuilder) WithSecret(name string) *ServerBuilder

func (*ServerBuilder) WithService

func (builder *ServerBuilder) WithService(name string, service interface{}) *ServerBuilder

Jump to

Keyboard shortcuts

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