beary

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 26, 2020 License: MIT Imports: 7 Imported by: 0

README

beary

根据 BearyChat 官方的 bearyinnovative/bearychat-go: BearyChat API with go.,把通知封装成 5 个等级,并分别用不同的颜色代表。

  1. Verbose #968387
  2. Debug #0C50A3
  3. Info #80C31C
  4. Warning #FFBF01
  5. Fatal #FF4401

Documentation

Index

Constants

View Source
const (
	// ConfigFile 指定了 beary 配置文件的位置
	ConfigFile = "beary.toml"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Channel

type Channel struct {
	WebHook string
	From    string
}

Channel 是个往 bearychat 发送通知的通道

func NewChannel

func NewChannel() *Channel

NewChannel make a channel to bearychat.com

func (*Channel) Debug

func (c *Channel) Debug(text string)

func (*Channel) Fatal

func (c *Channel) Fatal(text string)

func (*Channel) Info

func (c *Channel) Info(text string)

func (*Channel) Verbose

func (c *Channel) Verbose(text string)

func (*Channel) Warning

func (c *Channel) Warning(text string)

Jump to

Keyboard shortcuts

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