Documentation ¶
Index ¶
Constants ¶
View Source
const ( DEFAULT_SERVER_PORT = 8080 DEFAULT_SERVER_PORT_SSL = 8443 )
Variables ¶
This section is empty.
Functions ¶
func ReadUserIP ¶
Types ¶
type ErrorIncompleteSSlConfig ¶
type ErrorIncompleteSSlConfig struct{}
func (ErrorIncompleteSSlConfig) Error ¶
func (e ErrorIncompleteSSlConfig) Error() string
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer(cfg *ServerConfig, groups lockmanager.Groups, storageCfg lockmanager.StorageConfig, k8s *k8s.Client) (*Server, error)
Create a new Server
type ServerConfig ¶
func NewDefaultServerConfig ¶
func NewDefaultServerConfig() *ServerConfig
Create a default server config with
func (*ServerConfig) Defaults ¶
func (cfg *ServerConfig) Defaults()
Check if there are empty values that need to be replaced by default values
func (*ServerConfig) Validate ¶
func (cfg *ServerConfig) Validate() error
Validate Server config and set default listen addr if needed
Click to show internal directories.
Click to hide internal directories.