Documentation ¶
Index ¶
- type Builder
- func (b *Builder) Build(log logr.Logger) *Server
- func (b *Builder) WithBindAddress(bindAddress string) *Builder
- func (b *Builder) WithHandler(pattern string, handler http.Handler) *Builder
- func (b *Builder) WithHandlerFunc(pattern string, handlerFunc http.HandlerFunc) *Builder
- func (b *Builder) WithHandlerFuncs(handlerFuncs map[string]http.HandlerFunc) *Builder
- func (b *Builder) WithHandlers(handlers map[string]http.Handler) *Builder
- func (b *Builder) WithPort(port int) *Builder
- func (b *Builder) WithTLS(certPath, keyPath string) *Builder
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶ added in v1.5.0
type Builder struct {
// contains filtered or unexported fields
}
Builder is a new builder for Servers.
func NewBuilder ¶ added in v1.5.0
func NewBuilder() *Builder
NewBuilder creates a new builder object for servers.
func (*Builder) WithBindAddress ¶ added in v1.5.0
WithBindAddress sets the bind address.
func (*Builder) WithHandler ¶ added in v1.5.0
WithHandler adds a specific handler.
func (*Builder) WithHandlerFunc ¶ added in v1.5.0
func (b *Builder) WithHandlerFunc(pattern string, handlerFunc http.HandlerFunc) *Builder
WithHandlerFunc adds a specific handlerFunc.
func (*Builder) WithHandlerFuncs ¶ added in v1.5.0
func (b *Builder) WithHandlerFuncs(handlerFuncs map[string]http.HandlerFunc) *Builder
WithHandlerFuncs sets the handlerFuncs list.
func (*Builder) WithHandlers ¶ added in v1.5.0
WithHandlers sets the handlers list.
Click to show internal directories.
Click to hide internal directories.