serveropts

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package serveropts contains an echo server options wrapper

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServerOption

type ServerOption interface {
	// contains filtered or unexported methods
}

ServerOption holds the configuration and provider for the server

func WithConfigProvider

func WithConfigProvider(cfgProvider config.Provider) ServerOption

WithConfigProvider supplies the config for the server

type ServerOptions

type ServerOptions struct {
	// ConfigProvider is the provider for the server configuration
	ConfigProvider serverconfig.Provider
	// Config holds the server configuration settings
	Config serverconfig.Config
}

ServerOptions holds the configuration and provider for the server

func NewServerOptions

func NewServerOptions(opts []ServerOption, cfgLoc string) *ServerOptions

NewServerOptions creates a new ServerOptions instance with the provided options and configuration location

func (*ServerOptions) AddServerOptions

func (so *ServerOptions) AddServerOptions(opt ServerOption)

AddServerOptions applies a server option after the initial setup this should be used when information is not available on NewServerOptions

Jump to

Keyboard shortcuts

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