Documentation
¶
Index ¶
Constants ¶
View Source
const LocalsKey = "PubSubMessage"
LocalsKey is Fiber Locals key that you should use to get PubSubMessage
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
// Skip this middleware
Skip func(*fiber.Ctx) bool
// Debug true will log the unmarshalled payload
Debug bool
}
Config is this middleware configuration
type Message ¶ added in v1.1.0
type Message struct {
Message struct {
ID string `json:"message_id"`
Data []byte `json:"data"`
Attributes map[string]interface{} `json:"attributes"`
PublishTime string `json:"publish_time"`
} `json:"message"`
Subscription string `json:"subscription"`
}
Message is a format of the pubsub payload
Click to show internal directories.
Click to hide internal directories.