routine

package
v0.0.0-...-52087c1 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateNewResponse

func CreateNewResponse() string

func FinishRequest

func FinishRequest(request_id string, response_text string)

func GetResponse

func GetResponse(request_id string) (string, bool)

第二个返回参数为当前请求是否已经完成

func SetRequestStatusText

func SetRequestStatusText(request_id string, text string) bool

Types

type RequestField

type RequestField struct {
	Map sync.Map
}

func (*RequestField) Init

func (c *RequestField) Init()

func (*RequestField) Schedule

func (c *RequestField) Schedule()

type Response

type Response struct {
	Text           string
	RemainderTimes int
	Finished       bool
	StatusText     string
}

Jump to

Keyboard shortcuts

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