Documentation
¶
Index ¶
- Variables
- type Manager
- func (m *Manager) Acquire(subdomain string) (transport.Stream, error)
- func (m *Manager) ForEachClient(fn func(subdomain string, info *connection.Connection))
- func (m *Manager) HandleConnection(transp transport.Transport)
- func (m *Manager) HandleStream(client *connection.Connection, msg *protocol.Message) error
- func (m *Manager) Honeypot() *honeypot.Honeypot
- func (m *Manager) IsAuthorized(token string) bool
- func (m *Manager) Release(subdomain string, stream transport.Stream)
- func (m *Manager) ServeHTTP(w http.ResponseWriter, req *http.Request)
- func (m *Manager) SetGunnelSubdomainHandler(handler http.HandlerFunc)
- func (m *Manager) SetHoneypot(h *honeypot.Honeypot)
- func (m *Manager) SetTokenValidator(validator func(string) bool)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoConnection = errors.New("no connection available") ErrSubdomainNotFound = errors.New("subdomain not found") )
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func (*Manager) ForEachClient ¶
func (m *Manager) ForEachClient(fn func(subdomain string, info *connection.Connection))
func (*Manager) HandleConnection ¶
HandleConnection handles a new connection.
func (*Manager) HandleStream ¶
func (m *Manager) HandleStream(client *connection.Connection, msg *protocol.Message) error
func (*Manager) IsAuthorized ¶
func (*Manager) ServeHTTP ¶ added in v0.0.2
func (m *Manager) ServeHTTP(w http.ResponseWriter, req *http.Request)
func (*Manager) SetGunnelSubdomainHandler ¶
func (m *Manager) SetGunnelSubdomainHandler(handler http.HandlerFunc)
func (*Manager) SetHoneypot ¶ added in v0.0.2
func (*Manager) SetTokenValidator ¶
Click to show internal directories.
Click to hide internal directories.