app_endpoint

package
v1.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 28, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAppEndpoint

func NewAppEndpoint(logger lager.Logger, param Parameters, auth Auth, broker Broker) *appEndpoint

Types

type Auth

type Auth interface {
	LookupUser(req *http.Request) (model.User, error)
}

type Broker

type Broker interface {
	Find(user model.User) (model.Tunnel, bool)
}

type Parameters

type Parameters struct {
	Timeout time.Duration `yaml:"timeout"`
}

func (*Parameters) Validate

func (p *Parameters) Validate() error

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL