nodes

package
v0.0.0-...-480b165 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyRoutes

func ApplyRoutes(r *gin.RouterGroup)

func CreateNode

func CreateNode(node *models.Node) error

CreateNode creates a new node record in the database

func Delete

func Delete()

func DeleteNode

func DeleteNode(id string) error

DeleteNode deletes a node record from the database

func FetchAllNodes

func FetchAllNodes(c *gin.Context)

func FetchAllNodesByStatus

func FetchAllNodesByStatus(c *gin.Context)

func GetNodeByID

func GetNodeByID(id string) (models.Node, error)

GetNodeByID retrieves a node record from the database by ID

func GetNodes

func GetNodes()

func TestMain

func TestMain()

func Update

func Update()

func UpdateNode

func UpdateNode(node *models.Node) error

UpdateNode updates an existing node record in the database

Types

This section is empty.

Jump to

Keyboard shortcuts

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