handlers

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: May 19, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Authorization = "Authorization"
	ContentType   = "Content-Type"
)
View Source
const (
	ApplicationJson = "application/json"
)
View Source
const (
	AuthorizationHeader = "Authorization"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Hello(c *fiber.Ctx) error

	// Database Handlers
	CreateDatabase(c *fiber.Ctx) error
	FetchDatabase(c *fiber.Ctx) error
	DeleteDatabase(c *fiber.Ctx) error

	// Collection Handlers
	CreateCollection(c *fiber.Ctx) error
	FetchCollection(c *fiber.Ctx) error
	DeleteCollection(c *fiber.Ctx) error

	// Data Handlers
	AddData(c *fiber.Ctx) error
	ReadData(c *fiber.Ctx) error
	DeleteData(c *fiber.Ctx) error
	UpdateData(c *fiber.Ctx) error

	// Role Handlers
	CreateRole(c *fiber.Ctx) error
	ListRoles(c *fiber.Ctx) error

	// User Handlers
	CreateUser(c *fiber.Ctx) error
	GrantRoles(c *fiber.Ctx) error
	LoginUser(c *fiber.Ctx) error
}

func NewHandlers

func NewHandlers(client w.Client, wdbBasePath string) Client

Jump to

Keyboard shortcuts

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