server

package
v1.89.2 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddMiddlewareHandlers

func AddMiddlewareHandlers(handlers ...gobis.MiddlewareHandler)

func ClearMiddlewareHandlers

func ClearMiddlewareHandlers()

func MiddlewareHandlers

func MiddlewareHandlers() []gobis.MiddlewareHandler

Types

type GobisServer

type GobisServer struct {
	// contains filtered or unexported fields
}

func NewGobisServer

func NewGobisServer(config *GobisServerConfig) (*GobisServer, error)

func (*GobisServer) Load

func (s *GobisServer) Load() error

func (GobisServer) Run

func (s GobisServer) Run() error

type GobisServerConfig

type GobisServerConfig struct {
	Host               string             `json:"host" yaml:"host"`
	Port               int                `json:"port" yaml:"port"`
	Routes             []gobis.ProxyRoute `json:"routes" yaml:"routes"`
	StartPath          string             `json:"start_path" yaml:"start_path"`
	ProtectedHeaders   []string           `json:"protected_headers" yaml:"protected_headers"`
	Cert               string             `json:"cert" yaml:"cert" cloud-default:"server.crt"`
	Key                string             `json:"key" yaml:"key" cloud-default:"server.key"`
	LogLevel           string             `json:"log_level" yaml:"log_level"`
	LogJson            bool               `json:"log_json" yaml:"log_json"`
	NoColor            bool               `json:"no_color" yaml:"no_color"`
	ConfigPath         string             `json:"config_path" yaml:"config_path" cloud-default:"config.yml"`
	LetsEncryptDomains []string           `json:"lets_encrypt_domains" yaml:"lets_encrypt_domains"`
}

Jump to

Keyboard shortcuts

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