Documentation ¶
Index ¶
- type Listener
- type ListenerWrapper
- func (ListenerWrapper) CaddyModule() caddy.ModuleInfo
- func (m *ListenerWrapper) Provision(ctx caddy.Context) error
- func (m *ListenerWrapper) UnmarshalCaddyfile(d *caddyfile.Dispenser) error
- func (m *ListenerWrapper) ValidateUser(user string) bool
- func (m *ListenerWrapper) WrapListener(l net.Listener) net.Listener
- type UserValidateFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Listener ¶
type Listener struct { Verbose bool `json:"verbose,omitempty"` // Listener is ... net.Listener // Logger is ... Logger *zap.Logger // contains filtered or unexported fields }
Listener is ...
func NewListener ¶
NewListener is ...
type ListenerWrapper ¶
type ListenerWrapper struct { // Logger is ... Logger *zap.Logger `json:"-,omitempty"` UserLists []string `json:"users"` }
ListenerWrapper implements an TLS wrapper that it accept connections from clients and check the connection with pre-defined password and return a normal page if failed.
func (ListenerWrapper) CaddyModule ¶
func (ListenerWrapper) CaddyModule() caddy.ModuleInfo
CaddyModule returns the Caddy module information.
func (*ListenerWrapper) Provision ¶
func (m *ListenerWrapper) Provision(ctx caddy.Context) error
Provision implements caddy.Provisioner.
func (*ListenerWrapper) UnmarshalCaddyfile ¶
func (m *ListenerWrapper) UnmarshalCaddyfile(d *caddyfile.Dispenser) error
UnmarshalCaddyfile unmarshals Caddyfile tokens into h.
func (*ListenerWrapper) ValidateUser ¶
func (m *ListenerWrapper) ValidateUser(user string) bool
func (*ListenerWrapper) WrapListener ¶
func (m *ListenerWrapper) WrapListener(l net.Listener) net.Listener
WrapListener implements caddy.ListenWrapper
type UserValidateFunc ¶
Click to show internal directories.
Click to hide internal directories.