Documentation ¶
Index ¶
- Constants
- type Controller
- func (c Controller) CreateNamespace(ctx *fiber.Ctx) error
- func (c Controller) DeleteNamespace(ctx *fiber.Ctx) error
- func (c Controller) GetNamespace(ctx *fiber.Ctx) error
- func (c Controller) GetNamespaces(ctx *fiber.Ctx) error
- func (c Controller) NewNamespace(ctx *fiber.Ctx) error
- func (c Controller) UpdateNamespace(ctx *fiber.Ctx) error
Constants ¶
View Source
const ( StatusError = "error" StatusSuccess = "success" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller contains all the request handler functions for the admin ui.
func NewController ¶
func NewController(namespaceService *namespace.Service) *Controller
NewController creates new Controller instance.
func (Controller) CreateNamespace ¶
func (c Controller) CreateNamespace(ctx *fiber.Ctx) error
CreateNamespace creates a new namespace record.
func (Controller) DeleteNamespace ¶
func (c Controller) DeleteNamespace(ctx *fiber.Ctx) error
DeleteNamespace deletes a namespace record.
func (Controller) GetNamespace ¶
func (c Controller) GetNamespace(ctx *fiber.Ctx) error
GetNamespace renders the update view for a namespace.
func (Controller) GetNamespaces ¶
func (c Controller) GetNamespaces(ctx *fiber.Ctx) error
GetNamespaces renders the list view with no message.
func (Controller) NewNamespace ¶
func (c Controller) NewNamespace(ctx *fiber.Ctx) error
NewNamespace renders the create view for a namespace.
func (Controller) UpdateNamespace ¶
func (c Controller) UpdateNamespace(ctx *fiber.Ctx) error
UpdateNamespace updates an existing namespace record.
Click to show internal directories.
Click to hide internal directories.