cyi

package module
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() *cyi

Types

type Ctx

type Ctx struct {
	Ip     string
	State  map[string]string
	Send   func(id string, key string, data Result)
	Plugin func(key string) any
}

type Result

type Result struct {
	Id   string
	Code *uint16
	Msg  string
	Data interface{}
}

func ResultError

func ResultError(code uint16, msg string) Result

func ResultSuccess

func ResultSuccess(data interface{}) Result

Jump to

Keyboard shortcuts

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