notify

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chatwork

type Chatwork struct {
	ApiToken string
	RoomId   string
	Site     string
	Logger   func() *logrus.Entry
	Messages strings.Builder
}

func NewChatwork

func NewChatwork(apiToken string, roomId string, logger func() *logrus.Entry) *Chatwork

func (*Chatwork) AddMessage

func (c *Chatwork) AddMessage(message string)

func (*Chatwork) Send

func (c *Chatwork) Send()

Send メッセージを送信する https://developer.chatwork.com/ja/endpoint_rooms.html#POST-rooms-room_id-messages エラーが起きても問題ないので、エラーはログに出力するだけ

Jump to

Keyboard shortcuts

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