handlers

package
v0.0.0-...-8d92f6c Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IPHandler

type IPHandler struct {
	Controller controllers.IPController
}

func (IPHandler) CreateIP

func (h IPHandler) CreateIP(c *fiber.Ctx) error

CreateIP handles POST requests to create a new IP address.

POST /api/v1/ip

func (IPHandler) DeleteIP

func (h IPHandler) DeleteIP(c *fiber.Ctx) error

DeleteIP handles DELETE requests to remove an IP address by its UUID.

DELETE /api/v1/ip/<id: uuid>

func (IPHandler) GetIPAddrs

func (h IPHandler) GetIPAddrs(c *fiber.Ctx) error

GetIPAddrs handles GET requests to fetch all IP addresses.

GET /api/v1/ips

func (IPHandler) GetIPByID

func (h IPHandler) GetIPByID(c *fiber.Ctx) error

GetIPByID handles GET requests to fetch a specific IP address by its UUID.

GET /api/v1/ip/<id: uuid>

func (IPHandler) UpdateIP

func (h IPHandler) UpdateIP(c *fiber.Ctx) error

UpdateIP handles PUT requests to update an existing IP address by its UUID.

PUT /api/v1/ip/<id: uuid>

Jump to

Keyboard shortcuts

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