Documentation
¶
Index ¶
- func Validate(handler interface{}) error
- type Handlers
- func (h *Handlers) Handle(ctx context.Context, eventType string, bs []byte) error
- func (h *Handlers) On(eventType string, handler interface{}) error
- func (h *Handlers) ParseInstallationWebHook(eventType string, bytes []byte) (*Installation, interface{}, error)
- func (h *Handlers) ServeHTTP(res http.ResponseWriter, req *http.Request)
- type Installation
- type InstallationPart
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Handlers ¶
type Handlers struct {
AppId int64
ParseWebhook func(eventType string, bs []byte) (interface{}, error)
// contains filtered or unexported fields
}
func (*Handlers) ParseInstallationWebHook ¶
func (h *Handlers) ParseInstallationWebHook(eventType string, bytes []byte) (*Installation, interface{}, error)
type Installation ¶
type Installation struct {
Id int64 `json:"id"`
}
type InstallationPart ¶
type InstallationPart struct {
Installation *Installation `json:"installation"`
}
Click to show internal directories.
Click to hide internal directories.