Documentation ¶
Index ¶
- func NewRetryListener(ln net.Listener) net.Listener
- type Config
- type Logger
- type Server
- func (s *Server) Config() *Config
- func (s *Server) Handle(ic ircConn)
- func (s *Server) HandleAdmin(ic ircConn)
- func (s *Server) Serve(ln net.Listener, handler func(ircConn)) error
- func (s *Server) ServeHTTP(w http.ResponseWriter, req *http.Request)
- func (s *Server) SetConfig(cfg *Config)
- func (s *Server) Shutdown()
- func (s *Server) Start() error
- func (s *Server) Stats() *ServerStats
- type ServerStats
- type UserUpdateFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶ added in v0.3.0
type Config struct { Hostname string Title string MsgStoreDriver string MsgStorePath string HTTPOrigins []string HTTPIngress string AcceptProxyIPs config.IPSet MaxUserNetworks int MOTD string UpstreamUserIPs []*net.IPNet DisableInactiveUsersDelay time.Duration EnableUsersOnAuth bool Auth auth.Authenticator FileUploader fileupload.Uploader }
type Logger ¶
type Server ¶
type Server struct { Logger Logger Identd *identd.Identd // can be nil MetricsRegistry prometheus.Registerer // can be nil // contains filtered or unexported fields }
func (*Server) HandleAdmin ¶ added in v0.6.0
func (s *Server) HandleAdmin(ic ircConn)
func (*Server) Stats ¶ added in v0.3.0
func (s *Server) Stats() *ServerStats
type ServerStats ¶ added in v0.3.0
type UserUpdateFunc ¶ added in v0.6.0
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
cmd
|
|
contrib
|
|
Package identd implements an Identification Protocol server.
|
Package identd implements an Identification Protocol server. |
Package xirc contains an extended IRC library.
|
Package xirc contains an extended IRC library. |
Click to show internal directories.
Click to hide internal directories.