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 ¶ added in v0.2.0 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 // contains filtered or unexported fields } func New ¶ func New(handler message.HandlerFunc) (*Server, error) func NewTLS ¶ added in v0.2.0 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.gotls.go Click to show internal directories. Click to hide internal directories.