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"`
}
Click to show internal directories.
Click to hide internal directories.