tg

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client is ding talk notifier client

func NewClient

func NewClient(token string, toID int64, logger log.Logger) (*Client, error)

NewClient construct a ding talk notifier client

func (*Client) Close

func (tc *Client) Close() error

func (*Client) GetName

func (tc *Client) GetName() string

func (*Client) Notify

func (tc *Client) Notify(_ context.Context, msg *types.Message) error

Notify impl notifier's notify method

Jump to

Keyboard shortcuts

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