Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Middlewares ¶
type Middlewares struct {
MessageCreateMiddleware func(*state.State, *state.MessageCreateEvent)
MessageUpdateMiddleware func(*state.State, *state.MessageUpdateEvent)
Middleware bot.MiddlewareFunc
PostMiddleware bot.MiddlewareFunc
}
Middlewares is a data struct that contains the middlewares sentry provides.
func NewMiddlewares ¶
func NewMiddlewares(h *sentry.Hub) Middlewares
NewMiddlewares returns a struct containing all Middlewares relevant to sentry. Callers must ensure that either all, or no middlewares are added, to ensure proper functionality.
Click to show internal directories.
Click to hide internal directories.