register

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCache

func AddCache(info NodeInfo) error

func GetCache

func GetCache() map[string]cache.Item

func NodeList

func NodeList(c *gin.Context)

func RegistAgent

func RegistAgent()

func RegistNewNode

func RegistNewNode(c *gin.Context)

Types

type NodeInfo

type NodeInfo struct {
	Name string `json:"name"`
	Addr string `json:"addr"`
	Port string `json:"port"`
}

type RegistResult

type RegistResult struct {
	Code int32  `json:"code"`
	Data string `json:"data"`
}

Jump to

Keyboard shortcuts

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