httpapi

package
v0.0.0-...-e4931e2 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CombinedMiddleware

func CombinedMiddleware(s *discordgo.Session) gin.HandlerFunc

CombinedMiddleware 创建并返回一个带有依赖的中间件闭包

Types

type HttpAPIClient

type HttpAPIClient struct {
}

定义了一个符合 Client 接口的 HttpAPIClient 结构体

func (*HttpAPIClient) SendMessage

func (c *HttpAPIClient) SendMessage(message map[string]interface{}) error

实现 Client 接口的 SendMessage 方法 假client中不执行任何操作,只是返回 nil 来符合接口要求

Jump to

Keyboard shortcuts

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