feishu

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2023 License: MulanPSL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	SendSimpleMsg(content string) (bool, error)
	SendRichMsg(title string, content RichContent) (bool, error)
}

type KeywordMethod

type KeywordMethod struct {
	WhileIpMethod
}

type RichContent

type RichContent []RichContentLine

func (*RichContent) AddLine

func (m *RichContent) AddLine(v *RichContentLine) *RichContent

type RichContentLine

type RichContentLine []richContentItem
func (m *RichContentLine) AddLink(content, href string) *RichContentLine

func (*RichContentLine) AddText

func (m *RichContentLine) AddText(content string) *RichContentLine

type SecretMethod

type SecretMethod struct {
	WhileIpMethod
	// contains filtered or unexported fields
}

func (*SecretMethod) Init

func (m *SecretMethod) Init(hook, secret string)

func (*SecretMethod) SendRichMsg

func (m *SecretMethod) SendRichMsg(title string, content RichContent) (bool, error)

func (*SecretMethod) SendSimpleMsg

func (m *SecretMethod) SendSimpleMsg(content string) (bool, error)

type WhileIpMethod

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

func (*WhileIpMethod) Init

func (m *WhileIpMethod) Init(hook string)

func (*WhileIpMethod) SendRichMsg

func (m *WhileIpMethod) SendRichMsg(title string, content RichContent) (bool, error)

func (*WhileIpMethod) SendSimpleMsg

func (m *WhileIpMethod) SendSimpleMsg(content string) (bool, error)

Jump to

Keyboard shortcuts

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