controller

package
v0.6.0-rc.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 5, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

Controller handles all the input HTTP requests.

func NewController

func NewController(namespaceService *namespace.Service) *Controller

NewController creates new Controller instance.

func (Controller) GetCurrentNamespace added in v0.6.0

func (c Controller) GetCurrentNamespace(ctx *fiber.Ctx) error

GetCurrentNamespace handles `GET /namespaces/current` endpoint.

func (Controller) GetNamespaces

func (c Controller) GetNamespaces(ctx *fiber.Ctx) error

GetNamespaces renders the index view

func (Controller) ListNamespaces added in v0.6.0

func (c Controller) ListNamespaces(ctx *fiber.Ctx) error

ListNamespaces handles `GET /namespaces` endpoint.

func (Controller) NotFoundError added in v0.6.0

func (c Controller) NotFoundError(ctx *fiber.Ctx) error

NotFoundError renders Not Found error page.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL