Documentation
¶
Index ¶
Constants ¶
View Source
const ( TELEGRAM_WEBHOOK_SECRET_HEADER = "X-Telegram-Bot-Api-Secret-Token" GenericErrorMessage = "Error processing request." )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NotificationRequest ¶
type NotificationRequest struct {
Id string
Hostname string `json:"hostname"`
Port string `json:"port"`
Status string `json:"status"`
InstanceId string `json:"instanceId"`
}
func (*NotificationRequest) ToModel ¶
func (r *NotificationRequest) ToModel() interface{}
type PeerHandler ¶
type VPNHandler ¶
type VPNHandler struct {
WebhookSecret string
VPNSvc *service.VPNService
TelegramClient *telegram.Client
}
func (*VPNHandler) GetPendingId ¶
func (h *VPNHandler) GetPendingId(c echo.Context) error
type WebhookHandler ¶
type WebhookHandler struct {
WebhookSecret string
CommandProcessor *processor.CommandProcessor
}
Click to show internal directories.
Click to hide internal directories.