Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrServiceAlreadyRegistered = errors.New("gateway: service already registered") ErrServiceNotFound = errors.New("gateway: service not found") ErrExtraDataNotAllowed = errors.New("gateway: extra data not allowed") ErrUnknownChannelType = errors.New("gateway: unknown channel type") ErrPermissionDenied = errors.New("gateway: permission denied") )
View Source
var ( ErrInvalidCommand = errors.New("gateway: invalid command") ErrNotFound = errors.New("gateway: not found") )
View Source
var ( ErrInvalidForwardRequest = errors.New("gateway: invalid forward request") ErrInvalidTunnelData = errors.New("gateway: invalid tunnel data") )
Functions ¶
This section is empty.
Types ¶
type Gateway ¶
type Gateway interface {
Close()
HandleConnection(net.Conn)
ScavengeConnections(time.Duration)
ListUsers(context.Context) (interface{}, error)
GetUser(context.Context, string) (interface{}, error)
GetUserScreenshot(context.Context, string) ([]byte, error)
}
an instance of gateway, contains runtime states
Click to show internal directories.
Click to hide internal directories.