Documentation
¶
Overview ¶
Package api provides REST API handlers for the web dashboard
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CoreInterface ¶
type CoreInterface interface {
ListAgentsJSON() (interface{}, error)
}
CoreInterface defines the interface for core operations
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler creates REST API handlers for the web dashboard
func NewHandler ¶
func NewHandler(c CoreInterface, authMW *auth.Middleware) *Handler
NewHandler creates a new API handler
func (*Handler) RegisterRoutes ¶
RegisterRoutes registers all API routes
Click to show internal directories.
Click to hide internal directories.