zrok/model/config.go
2022-08-16 11:27:31 -04:00

24 lines
324 B
Go

package model
const ZrokProxyConfig = "zrok.proxy.v1"
type AuthScheme string
const (
None AuthScheme = "none"
Basic = "basic"
)
type ProxyConfig struct {
AuthScheme AuthScheme `json:"auth_scheme"`
}
type BasicAuth struct {
Users []*AuthUser
}
type AuthUser struct {
Username string
Password string
}