Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IndexHandler ¶
func SetupRoutes ¶
func SetupRoutes(datasiteMgr *datasitemgr.DatasiteManager, routeConfig *RouteConfig) http.Handler
Types ¶
type CPServer ¶
type CPServer struct {
// contains filtered or unexported fields
}
func NewControlPlaneServer ¶
func NewControlPlaneServer(config *CPServerConfig, datasiteMgr *datasitemgr.DatasiteManager) (*CPServer, error)
type CPServerConfig ¶
type CPServerConfig struct {
Addr string // Address to bind the control plane server
AuthToken string // Access token for the control plane server
EnableSwagger bool // EnableSwagger enables Swagger documentation
}
CPServerConfig contains configuration for the control plane server
type RouteConfig ¶
type RouteConfig struct {
Auth middleware.TokenAuthConfig
ControlPlaneURL string
Swagger bool
}
Click to show internal directories.
Click to hide internal directories.