Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BotHandler ¶
type BotHandler struct {
// contains filtered or unexported fields
}
func (*BotHandler) ServeHTTP ¶
func (w *BotHandler) ServeHTTP(writer http.ResponseWriter, req *http.Request)
type ServerOption ¶
type ServerOption struct {
Addr string `json:"addr"`
Cert string `json:"cert"`
Key string `json:"key"`
ServerName string `json:"server_name"`
HttpPath string `json:"http_path"`
AllowedUpdates []string `json:"allowed_updates,omitempty"`
FullUrl string `json:"full_url"`
Secret string `json:"secret"`
DisableWebhookSet bool `json:"disable_setwebhook"`
}
type Webhookserver ¶
type Webhookserver struct {
http.Server
Handler http.Handler
AllowdObs []string
FullUrl string
DIsableWebhookSet bool
// contains filtered or unexported fields
}
func New ¶
func New(ctx context.Context, srvopt *ServerOption, parser parser.Parserwrap, logger *zap.Logger) *Webhookserver
func (*Webhookserver) Close ¶
func (w *Webhookserver) Close() error
Click to show internal directories.
Click to hide internal directories.