feishu

package module
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2022 License: MIT Imports: 6 Imported by: 0

README

Golang FeiShu

📦 Golang FeiShu

godoc goproxy.cn goreportcard.com deps.dev

安装

go get -v -u go.dtapp.net/feishu

Documentation

Index

Constants

View Source
const (
	Version = "1.0.9"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client 实例

func NewClient

func NewClient(config *ClientConfig) (*Client, error)

NewClient 创建实例化

func (*Client) GetKey added in v1.0.6

func (c *Client) GetKey() string

func (*Client) GetLogGorm added in v1.0.9

func (c *Client) GetLogGorm() *golog.ApiClient

func (*Client) GetLogMongo added in v1.0.9

func (c *Client) GetLogMongo() *golog.ApiClient

type ClientConfig added in v1.0.6

type ClientConfig struct {
	Key            string
	GormClientFun  gormClientFun  // 日志配置
	MongoClientFun mongoClientFun // 日志配置
	Debug          bool           // 日志开关
	ZapLog         *golog.ZapLog  // 日志服务
	CurrentIp      string         // 当前ip
}

ClientConfig 实例配置

type WebhookSendResponse

type WebhookSendResponse struct {
	Errcode   int64  `json:"errcode"`
	Errmsg    string `json:"errmsg"`
	Type      string `json:"type"`
	MediaId   string `json:"media_id"`
	CreatedAt string `json:"created_at"`
}

type WebhookSendResult

type WebhookSendResult struct {
	Result WebhookSendResponse // 结果
	Body   []byte              // 内容
	Http   gorequest.Response  // 请求
	Err    error               // 错误
}

Jump to

Keyboard shortcuts

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