shared

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MapKeys

func MapKeys[K string, V interface{}](obj map[K]V) []K

func RegisterUniqueRoutesValidator

func RegisterUniqueRoutesValidator(validate *validator.Validate)

func ToKebabCase

func ToKebabCase(input string) string

Types

type Certificate

type Certificate struct {
	CertFilePath string    `json:"certFilePath" validate:"required,filepath"`
	KeyFilePath  string    `json:"keyFilePath" validate:"required,filepath"`
	ExpiresAt    time.Time `json:"expiresAt" validate:"required"`
}

type DomainCertificates

type DomainCertificates map[string]Certificate

type Route

type Route struct {
	Domain   string `yaml:"domain" json:"domain" validate:"required,fqdn"`
	Upstream string `yaml:"upstream" json:"upstream" validate:"required,url,startswith=http://"`
}

Jump to

Keyboard shortcuts

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