Documentation ¶
Index ¶
- func GetOptions() map[string]string
- type Server
- func (s *Server) GetConfiguredOptions() map[string]string
- func (s *Server) GetContext() handlers.ContextInterface
- func (s *Server) GetInterface() string
- func (s *Server) GetPort() int
- func (s *Server) GetProtocol() int
- func (s *Server) GetProtocolString() string
- func (s *Server) SetOption(option string, value string) error
- func (s *Server) Start() error
- func (s *Server) Status() int
- func (s *Server) Stop() error
- type Template
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetOptions ¶ added in v1.0.0
GetOptions returns a map of configurable server options typically used when creating a listener
Types ¶
type Server ¶ added in v0.6.0
Server is a structure for the HTTP/2 clear-text (h2c) server
func New ¶ added in v0.6.0
New creates a new HTTP2 server object and returns a pointer All arguments are taken in as strings and are converted/validate
func Renew ¶ added in v1.0.0
Renew generates a new Server object and retains original encryption keys
func (*Server) GetConfiguredOptions ¶ added in v1.0.0
GetConfiguredOptions returns the server's current configuration for options that can be set by the user
func (*Server) GetContext ¶ added in v1.0.0
func (s *Server) GetContext() handlers.ContextInterface
GetContext returns the Server's current context information such as encryption keys
func (*Server) GetInterface ¶ added in v1.0.0
GetInterface function returns the interface that the server is bound to
func (*Server) GetPort ¶ added in v1.0.0
GetPort function returns the port that the server is bound to
func (*Server) GetProtocol ¶ added in v1.0.0
GetProtocol returns the server's protocol as an integer for a constant in the servers package
func (*Server) GetProtocolString ¶ added in v1.0.0
GetProtocolString function returns the server's protocol
func (*Server) SetOption ¶ added in v1.0.0
SetOption sets an option for an instantiated server object
type Template ¶ added in v1.0.0
type Template struct { servers.Template X509Key string // The x.509 private key used for TLS encryption X509Cert string // The x.509 public key used for TLS encryption PSK string // The pre-shared key password used prior to Password Authenticated Key Exchange (PAKE) }
Template is a structure used to collect the information needed to create an instance with the New() function