handlers

package
v0.0.0-...-419708b Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthHandlers

type AuthHandlers interface {
	SignUp(c *fiber.Ctx) error
	SignIn(c *fiber.Ctx) error
	GetUser(c *fiber.Ctx) error
	DeleteUser(c *fiber.Ctx) error
	ChangeUserRole(c *fiber.Ctx) error
	UpdateUserPassword(c *fiber.Ctx) error
	UpdateUserEmail(c *fiber.Ctx) error
	UpdateUserName(c *fiber.Ctx) error
	ListUsers(c *fiber.Ctx) error
}

AuthHandlers is the interface of the authentication operation.

func NewAuthHandlers

func NewAuthHandlers(authSvcClient pb.AuthServiceClient) AuthHandlers

NewAuthHandlers creates a new AuthHandlers instance.

type VulnHandlers

type VulnHandlers interface {
	AddCVE(c *fiber.Ctx) error
	SearchCVE(c *fiber.Ctx) error
	GetAllCVEs(c *fiber.Ctx) error
	DeleteCVE(c *fiber.Ctx) error
	UpdateCVE(c *fiber.Ctx) error
	FetchNVDFeeds(c *fiber.Ctx) error
}

VulnHandlers is the interface of the vulnerability operation.

func NewVulnHandlers

func NewVulnHandlers(authSvcClient pb.AuthServiceClient, vulnSvcClient pb.VulnServiceClient) VulnHandlers

NewAuthHandlers creates a new VulnHandlers instance.

Jump to

Keyboard shortcuts

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