Documentation ¶
Index ¶
- func NewHttpLoggingMiddleware(config *LoggingConfig) fiber.Handler
- type Disposable
- type FiberAppFunc
- type LoggingConfig
- type Server
- func (server *Server) GetConfiguration() *configuration.ConfigurationRoot
- func (server *Server) GetHealthCheckRunner() *healthchecks.HealthCheckRunner
- func (server *Server) GetService(name string) (*interface{}, error)
- func (server *Server) RegisterService(name string, service interface{})
- func (server *Server) Run()
- func (server *Server) RunDevelopment()
- type ServerBuilder
- func (builder *ServerBuilder) Build() *Server
- func (builder *ServerBuilder) BuildForDevelopment(isDevelopment bool) *Server
- func (builder *ServerBuilder) ConfigureHandlers(handlerConfig FiberAppFunc) *ServerBuilder
- func (builder *ServerBuilder) WithConfigMap(name string) *ServerBuilder
- func (builder *ServerBuilder) WithConfigurationProvider(provider configuration.ConfigurationProvider) *ServerBuilder
- func (builder *ServerBuilder) WithEnvironmentVariableConfiguration(prefix string) *ServerBuilder
- func (builder *ServerBuilder) WithInMemoryConfiguration(name string, data map[string]string) *ServerBuilder
- func (builder *ServerBuilder) WithLivenessHealthCheck(healthCheck healthchecks.HealthCheck) *ServerBuilder
- func (builder *ServerBuilder) WithReadinessHealthCheck(healthCheck healthchecks.HealthCheck) *ServerBuilder
- func (builder *ServerBuilder) WithRequiredConfigMap(name string) *ServerBuilder
- func (builder *ServerBuilder) WithRequiredSecret(name string) *ServerBuilder
- func (builder *ServerBuilder) WithSecret(name string) *ServerBuilder
- func (builder *ServerBuilder) WithService(name string, service interface{}) *ServerBuilder
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 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) RegisterService ¶
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
Click to show internal directories.
Click to hide internal directories.