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 ¶
GetOptions returns a map of configurable server options typically used when creating a listener
Types ¶
type Server ¶
Server is a structure for the HTTP3 server
func New ¶
New creates a new HTTP3 server object and returns a pointer All arguments are taken in as strings and are converted/validate
func (*Server) GetConfiguredOptions ¶
GetConfiguredOptions returns the server's current configuration for options that can be set by the user
func (*Server) GetContext ¶
func (s *Server) GetContext() handlers.ContextInterface
GetContext returns the Server's current context information such as encryption keys
func (*Server) GetInterface ¶
GetInterface function returns the interface that the server is bound to
func (*Server) GetProtocol ¶
GetProtocol returns the server's protocol as an integer for a constant in the servers package
func (*Server) GetProtocolString ¶
GetProtocolString function returns the server's protocol
type Template ¶
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