model

package
v0.4.0-rc11 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const ZrokProxyConfig = "zrok.proxy.v1"

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthScheme

type AuthScheme string
const (
	None  AuthScheme = "none"
	Basic AuthScheme = "basic"
)

func ParseAuthScheme

func ParseAuthScheme(authScheme string) (AuthScheme, error)

type AuthUser

type AuthUser struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

type BasicAuth

type BasicAuth struct {
	Users []*AuthUser `json:"users"`
}

type Metrics

type Metrics struct {
	Namespace string
	Sessions  map[string]SessionMetrics
}

type ProxyConfig

type ProxyConfig struct {
	AuthScheme AuthScheme `json:"auth_scheme"`
	BasicAuth  *BasicAuth `json:"basic_auth"`
}

type SessionMetrics

type SessionMetrics struct {
	BytesRead    int64
	BytesWritten int64
	LastUpdate   int64
}

Jump to

Keyboard shortcuts

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