Documentation ¶
Index ¶
Constants ¶
View Source
const OPTION_SOURCE = "http-server"
Variables ¶
This section is empty.
Functions ¶
func RegisterHandler ¶
func ServeFromMainConfig ¶ added in v0.2.0
Types ¶
type Config ¶ added in v0.2.0
func Get ¶ added in v0.2.0
func Get(cfg *configmain.Config) *Config
func (*Config) AddOptionsToSet ¶ added in v0.2.0
type HTTPServer ¶ added in v0.2.0
type HTTPServer struct { logger.LogContext // contains filtered or unexported fields }
func NewDefaultHTTPServer ¶ added in v0.2.0
func NewDefaultHTTPServer(ctx context.Context, logger logger.LogContext, name string) *HTTPServer
func NewHTTPServer ¶ added in v0.2.0
func NewHTTPServer(ctx context.Context, logger logger.LogContext, name string) *HTTPServer
func (*HTTPServer) Register ¶ added in v0.2.0
func (this *HTTPServer) Register(pattern string, handler func(http.ResponseWriter, *http.Request))
func (*HTTPServer) RegisterHandler ¶ added in v0.2.0
func (this *HTTPServer) RegisterHandler(pattern string, handler http.Handler)
func (*HTTPServer) Start ¶ added in v0.2.0
func (this *HTTPServer) Start(source certs.CertificateSource, bindAddress string, port int)
Start starts an HTTP/S server.
Click to show internal directories.
Click to hide internal directories.