Documentation ¶
Index ¶
- type HTTPHandler
- func (h *HTTPHandler) GetConfigHandlerFunc(w http.ResponseWriter, r *http.Request)
- func (h *HTTPHandler) ReplicaHandler(w http.ResponseWriter, r *http.Request)
- func (h *HTTPHandler) ResetHandlerFunc(w http.ResponseWriter, r *http.Request)
- func (h *HTTPHandler) WsHandler(w http.ResponseWriter, r *http.Request)
- type KubernetesAPI
- type Settings
- type VPNConfig
- type VPNSettings
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPHandler ¶
type HTTPHandler struct {
// contains filtered or unexported fields
}
HTTPHandler to handle all http requests
func NewHTTPHandler ¶
func NewHTTPHandler() HTTPHandler
NewHTTPHandler creates new instance of HTTPHandler
func (*HTTPHandler) GetConfigHandlerFunc ¶
func (h *HTTPHandler) GetConfigHandlerFunc(w http.ResponseWriter, r *http.Request)
GetConfigHandlerFunc gives random config file name
func (*HTTPHandler) ReplicaHandler ¶
func (h *HTTPHandler) ReplicaHandler(w http.ResponseWriter, r *http.Request)
func (*HTTPHandler) ResetHandlerFunc ¶
func (h *HTTPHandler) ResetHandlerFunc(w http.ResponseWriter, r *http.Request)
ResetHandlerFunc handles request for resetting ip
func (*HTTPHandler) WsHandler ¶
func (h *HTTPHandler) WsHandler(w http.ResponseWriter, r *http.Request)
WsHandler allows websocket to connect to controller to listen to update
type KubernetesAPI ¶
type KubernetesAPI struct {
// contains filtered or unexported fields
}
KubernetesAPI communicates to kubernetes api
func NewKubernetesAPI ¶
func NewKubernetesAPI() KubernetesAPI
NewKubernetesAPI creates new instance that communicate to kubernetesAPI
func (*KubernetesAPI) UpdateReplicaAmount ¶
func (k *KubernetesAPI) UpdateReplicaAmount(amount int)
UpdateReplicaAmount updates amount of replicas of executor
type Settings ¶
type Settings struct { VpnPriorities []string `json:"vpnPriorities"` TimeBetweenContainers int64 `json:"timeBetweenContainers"` MaxPingTime int `json:"maxPingTime"` PageReloadTime int `json:"pageReloadTime"` LinkToGo string `json:"linkToGo"` MaxDownloadSpeed int `json:"maxDownloadSpeed"` MaxUploadSpeed int `json:"maxUploadSpeed"` IpLookupLink string `json:"ipLookupLink"` }
Settings store all settings from settings.json
func NewSettings ¶
func NewSettings() Settings
type VPNSettings ¶
type VPNSettings struct {
VpnConfigs []VPNConfig `json:"settings"`
}
Settings store all settings from vpn-settings.json
func NewVPNSettings ¶
func NewVPNSettings() VPNSettings
Click to show internal directories.
Click to hide internal directories.