robot

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CRobot

type CRobot struct {
	Robot
}

func (*CRobot) RobotMessage

func (C *CRobot) RobotMessage(log *logrus.Entry) string

type Robot

type Robot struct {
	//robot  webhook
	WebHook string
	User    string
}

func NewRobot

func NewRobot(webhook string, user string) Robot

NewRobot generate robot by webhook

func (*Robot) RobotMessage

func (r *Robot) RobotMessage(log *logrus.Entry) string

RobotMessage rlog convert robot message

func (*Robot) SendMessage

func (r *Robot) SendMessage(str string)

SendMessage robot send message

type Roboter

type Roboter interface {
	RobotMessage(log *logrus.Entry) string
	SendMessage(str string)
}

Jump to

Keyboard shortcuts

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