scenarios

package
v0.0.0-...-d71de7e Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplyServerFunc

type ApplyServerFunc func(*http.Server) (*http.Server, error)

ApplyServerFunc applies configurations to a http.Server instance.

func ApplyServerWith

func ApplyServerWith(
	configures ...ServerConfig,
) ApplyServerFunc

ApplyServerWith creates an ApplyServerFunc with the given ServerConfig.

type ConfigureServer

type ConfigureServer func(s *http.Server) (*http.Server, error)

ConfigureServer configures a http.Server instance.

type CreateServerFunc

type CreateServerFunc func(addr string, handler http.Handler) (*http.Server, error)

CreateServerFunc creates a http.Server instance.

func CreateServerWith

func CreateServerWith(
	configures ...ServerConfig,
) CreateServerFunc

CreateServerWith creates a CreateServerFunc with the given ServerConfig.

type ListenAndServeFunc

type ListenAndServeFunc func(addr string, handler http.Handler) error

ListenAndServeFunc listens on the TCP network address addr and then calls Serve to handle requests on incoming connections.

func ListenAndServeFuncWith

func ListenAndServeFuncWith(
	configures ...ServerConfig,
) ListenAndServeFunc

ListenAndServeFunc creates a ListenAndServeFunc with the given ServerConfig.

type ServerConfig

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

ServerConfig configures a http.Server instance.

Jump to

Keyboard shortcuts

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