stock

package
v0.0.0-...-2f55915 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CertificateAuthorityNode

func CertificateAuthorityNode(config *Tls) node.Node

func CertificateNode

func CertificateNode(config *Tls) node.Node

func TlsNode

func TlsNode(config *Tls) node.Node

func WebServerNode

func WebServerNode(service *HttpServer) node.Node

Types

type HttpServer

type HttpServer struct {
	Server *http.Server
	// contains filtered or unexported fields
}

func NewHttpServer

func NewHttpServer(handler http.Handler) *HttpServer

func (*HttpServer) ApplyOptions

func (service *HttpServer) ApplyOptions(options HttpServerOptions)

func (*HttpServer) GetHttpClient

func (service *HttpServer) GetHttpClient() *http.Client

func (*HttpServer) Options

func (service *HttpServer) Options() HttpServerOptions

func (*HttpServer) Stop

func (service *HttpServer) Stop()

type HttpServerOptions

type HttpServerOptions struct {
	Addr                     string
	Port                     string
	ReadTimeout              int
	WriteTimeout             int
	Tls                      *Tls
	Iface                    string
	CallbackAddress          string
	NotifyKeepaliveTimeoutMs int
}

type StreamSourceWebHandler

type StreamSourceWebHandler struct {
	Source meta.StreamSource
}

func (StreamSourceWebHandler) ServeHTTP

func (service StreamSourceWebHandler) ServeHTTP(wtr http.ResponseWriter, req *http.Request)

type Tls

type Tls struct {
	Config     tls.Config
	CertFile   string
	KeyFile    string
	CaCertFile string
}

Jump to

Keyboard shortcuts

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