node_plugin

package
v0.0.0-...-ea214e1 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdminCreateAction

func AdminCreateAction(c *gin.Context)

func CreateAction

func CreateAction(c *gin.Context)

func IndexAction

func IndexAction(c *gin.Context)

func Routes

func Routes(r *gin.RouterGroup)

Types

type AdminCreateParams

type AdminCreateParams struct {
	Name string `json:"name"`
	Key  string `json:"key"`
}

type CreateParams

type CreateParams struct {
	Name string `json:"name"`
	Key  string `json:"key"`
}

type Node

type Node struct {
	Id int64

	Name string
	Key  string

	CreatedAt time.Time
	UpdatedAt time.Time
}

func CreateNode

func CreateNode(name, key string) (*Node, error)

func (Node) TableName

func (n Node) TableName() string

type NodeResp

type NodeResp struct {
	Id        int64
	Name      string
	Key       string
	CreatedAt utils.Timestamp
	UpdatedAt utils.Timestamp
}

func (NodeResp) Fields

func (ur NodeResp) Fields() []string

Jump to

Keyboard shortcuts

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