robot

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

README

Fork to use CORS.

Documentation

Index

Constants

View Source
const (
	Timeout = 5 * time.Second
)

Variables

View Source
var ExtendHeaders = map[string]string{}
View Source
var Webhook = "https://oapi.dingtalk.com/robot/send"

Webhook writable for CORS proxy

Functions

This section is empty.

Types

type Robot

type Robot struct {
	Token, Secret string
	Client        *http.Client
}

func New

func New(token, secret string) *Robot

func (*Robot) Send

func (bot *Robot) Send(message message.IMessage) (*response.Response, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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