webserver

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ActiveNode

func ActiveNode(remoteAddr string) []byte

func GetNodes

func GetNodes() []byte

func RunWebServer

func RunWebServer(webPort int)

func StartNodes

func StartNodes() []byte

func TestNodes

func TestNodes() []byte

func UnActiveNode

func UnActiveNode(remoteAddr string) []byte

Types

type BaseResult

type BaseResult struct {
	Code int    `json:"code"`
	Msg  string `json:"msg"`
}

func (BaseResult) Bytes

func (b BaseResult) Bytes() []byte

func (*BaseResult) Fail

func (b *BaseResult) Fail(msg string, code int)

func (BaseResult) String

func (b BaseResult) String() string

func (*BaseResult) Success

func (b *BaseResult) Success(msg string)

type ListData

type ListData struct {
	BaseResult
	Data  any `json:"data"`
	Count int `json:"count"`
}

func NewListData

func NewListData(data any, total int) *ListData

Jump to

Keyboard shortcuts

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