Documentation ¶ Index ¶ func ConfigTLS(caCrt, srvCrt, srvKey string) (*tls.Config, error) type Server func New(handler message.HandlerFunc) (*Server, error) func NewTLS(handler message.HandlerFunc, cfg *tls.Config) (*Server, error) func (s *Server) ListenAndServe(address string) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func ConfigTLS ¶ func ConfigTLS(caCrt, srvCrt, srvKey string) (*tls.Config, error) Types ¶ type Server ¶ type Server struct { SharedKey string Hostname string Logger *log.Logger Users func(string) []byte Debug bool // contains filtered or unexported fields } func New ¶ func New(handler message.HandlerFunc) (*Server, error) func NewTLS ¶ func NewTLS(handler message.HandlerFunc, cfg *tls.Config) (*Server, error) func (*Server) ListenAndServe ¶ func (s *Server) ListenAndServe(address string) error Source Files ¶ View all Source files server.go tls.go Click to show internal directories. Click to hide internal directories.