handlers

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 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
	AddRecords(c *fiber.Ctx) error
	ReadRecords(c *fiber.Ctx) error
	QueryRecords(c *fiber.Ctx) error
	DeleteRecords(c *fiber.Ctx) error
	UpdateRecords(c *fiber.Ctx) error

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

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

func NewHandlers

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

Jump to

Keyboard shortcuts

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