broadcast

package
v0.28.8 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2021 License: MIT Imports: 4 Imported by: 6

Documentation

Index

Constants

View Source
const (
	Buy  = "buy"
	Sell = "sell"

	NameDingTalk = "dingtalk"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Broadcaster

type Broadcaster interface {
	Broadcast(labels []string, symbol, time, direction, price, amount, total, profit string)
	SendText(message string) error
}

func New added in v0.7.8

func New(config Config) Broadcaster

type Config

type Config struct {
	Name    string
	BaseUrl string `json:"baseUrl"`
	Secret  string
}

type DingTalk

type DingTalk struct {
	// contains filtered or unexported fields
}

func NewDingTalk

func NewDingTalk(conf Config) *DingTalk

func (*DingTalk) Broadcast

func (d *DingTalk) Broadcast(labels []string, symbol, time, direction, price, amount, total, profit string)

func (*DingTalk) SendText added in v0.9.4

func (d *DingTalk) SendText(message string) error

Jump to

Keyboard shortcuts

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