Documentation
¶
Index ¶
Constants ¶
View Source
const (
MIMEREGEX = ".*/json.*"
)
Variables ¶
This section is empty.
Functions ¶
func SetupHeader ¶
func SetupHeader(w http.ResponseWriter)
func StartControllServer ¶
func StartControllServer(cfg *ControllServerConfiguration) chan bool
Types ¶
type AppHandle ¶
func (*AppHandle) HandleHttpState ¶
func (h *AppHandle) HandleHttpState(r *Request, w http.ResponseWriter)
func (*AppHandle) HandlePortalState ¶
func (h *AppHandle) HandlePortalState(r *Request, w http.ResponseWriter)
func (*AppHandle) LogCommand ¶
func (*AppHandle) StartPortalParts ¶
func (h *AppHandle) StartPortalParts()
type ControllServer ¶
type ControllServer struct { Mux *http.ServeMux Srv *graceful.Server Cfg *ControllServerConfiguration Portal *server_old.Portal Key *rsa.PrivateKey CtrlLn net.Listener Logger *log.Logger }
func GetControlServer ¶
func GetControlServer(cfg *ControllServerConfiguration) *ControllServer
func (*ControllServer) SetupHandlers ¶
func (c *ControllServer) SetupHandlers() *http.ServeMux
type ControllServerConfiguration ¶
type ControllServerConfiguration struct { ListenPort uint ServerKeyPath string StorageConfiguration *data.InitialConfiguration CtrlServerLogFile string CtrlServerConfig string StaticHttpConfig *serverold.HttpFrontendConfiguration HttpsConfig *config.PortalHttpsConfiguration PkiConfig *pki.PKIConfiguration }
func GetControllServerDefaultConfig ¶
func GetControllServerDefaultConfig() (*ControllServerConfiguration, error)
func (*ControllServerConfiguration) SetBasePath ¶
func (cfg *ControllServerConfiguration) SetBasePath(path string) error
type CtrlHandle ¶
type CtrlHandle struct { }
func (CtrlHandle) Default ¶
func (h CtrlHandle) Default(r *Request, w http.ResponseWriter)
type HandlerFunc ¶
type HandlerFunc func(*Request, http.ResponseWriter)
type StatusResponse ¶
type StorageHandle ¶
type StorageHandle struct {
StorageOnline bool
}
func NewStorageHandle ¶
func NewStorageHandle() *StorageHandle
func (*StorageHandle) CheckStorage ¶
func (s *StorageHandle) CheckStorage()
func (*StorageHandle) ControllStorage ¶
func (h *StorageHandle) ControllStorage(r *Request, w http.ResponseWriter)
func (StorageHandle) ServeHTTP ¶
func (h StorageHandle) ServeHTTP(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.