agent

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SubmitMaxRetry = 2

Functions

func SendMessage

func SendMessage(accesskey, title, desp, link, channel string) error

Types

type Agent

type Agent struct {
	AccessKey, Name string
}

func (*Agent) PollingSignalings

func (a *Agent) PollingSignalings() ([]Signaling, error)

func (*Agent) Run

func (a *Agent) Run(fn func([]Signaling))

func (*Agent) SubmitSignalingResult

func (a *Agent) SubmitSignalingResult(s Signaling) error

type Signaling

type Signaling struct {
	ID        string `json:"id"`
	Signaling string `json:"signaling"`
	Result    string `json:"result"`
}

Jump to

Keyboard shortcuts

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