Documentation ¶
Index ¶
- Variables
- func EncodeConfig(c Config) []byte
- func Env(name string) string
- func EnvBool(name string) bool
- func EnvDuration(name string, def time.Duration) time.Duration
- func EnvInt(name string, def int) int
- func InitEnv() bool
- func L4Proto(s string) (head, proto string)
- func ParseAuth(auth string) (string, string)
- func RandString(n int) string
- type Config
- type Edge
- type Remote
- type Remotes
- type User
- type UserIndex
- type Users
Constants ¶
This section is empty.
Variables ¶
View Source
var UserAllowAll = regexp.MustCompile("")
Functions ¶
func EnvBool ¶
EnvBool returns a boolean using an environment variable
func EnvDuration ¶
EnvDuration returns a duration using an environment variable, with a default fallback
func EnvInt ¶
EnvInt returns an integer using an environment variable, with a default fallback
func L4Proto ¶
L4Proto extacts the layer-4 protocol from the given string
Types ¶
type Config ¶
type Remote ¶
type Remote struct {
LocalHost, LocalPort, LocalProto string
RemoteHost, RemotePort, RemoteProto string
Socks, Reverse, Stdio bool
EdgeId, EdgeSecret string
}
func (Remote) CanListen ¶
CanListen checks if the port can be listened on
type User ¶
type UserIndex ¶
UserIndex is a reloadable user source
func NewUserIndex ¶
NewUserIndex creates a source for users
Click to show internal directories.
Click to hide internal directories.