redirect_config

package
v0.0.0-...-35a4376 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RedirectConfig

type RedirectConfig struct {
	Enabled bool

	Port int    `json:"port" yaml:"port"`
	Host string `json:"host" yaml:"host"`
}

func NewDefaultRedirectConfig

func NewDefaultRedirectConfig() *RedirectConfig

func (RedirectConfig) APIAddress

func (c RedirectConfig) APIAddress() string

func (RedirectConfig) StartAsyncRedirectServer

func (c RedirectConfig) StartAsyncRedirectServer(tlsConfig *tls_config.TLSConfig, logger log.Logger)

func (RedirectConfig) ValidateConfigFields

func (c RedirectConfig) ValidateConfigFields() error

Jump to

Keyboard shortcuts

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