Documentation ¶
Index ¶
- type Builder
- func (b *Builder) Build() *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 ¶
type Builder struct {
// contains filtered or unexported fields
}
Builder is a new builder for Servers.
func (*Builder) WithBindAddress ¶
WithBindAddress sets the bind address.
func (*Builder) WithHandler ¶
WithHandler adds a specific handler.
func (*Builder) WithHandlerFunc ¶
func (b *Builder) WithHandlerFunc(pattern string, handlerFunc http.HandlerFunc) *Builder
WithHandlerFunc adds a specific handlerFunc.
func (*Builder) WithHandlerFuncs ¶
func (b *Builder) WithHandlerFuncs(handlerFuncs map[string]http.HandlerFunc) *Builder
WithHandlerFuncs sets the handlerFuncs list.
func (*Builder) WithHandlers ¶
WithHandlers sets the handlers list.
Click to show internal directories.
Click to hide internal directories.