Documentation ¶
Index ¶
- func AuthorizeTokenMiddleware(next http.HandlerFunc) http.HandlerFunc
- func HandleSendMessage(w http.ResponseWriter, r *http.Request)
- func HandleSubscribe(w http.ResponseWriter, r *http.Request)
- func LogginMiddleware(next http.HandlerFunc) http.HandlerFunc
- type Middleware
- type Middlewares
- type SendMessageRequest
- type SubscribeRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthorizeTokenMiddleware ¶
func AuthorizeTokenMiddleware(next http.HandlerFunc) http.HandlerFunc
AuthorizeTokenMiddleware
func HandleSendMessage ¶
func HandleSendMessage(w http.ResponseWriter, r *http.Request)
HandleSendMessage
func LogginMiddleware ¶
func LogginMiddleware(next http.HandlerFunc) http.HandlerFunc
LogginMiddleware
Types ¶
type Middlewares ¶
type Middlewares []Middleware
Middlewares
func (Middlewares) Chain ¶
func (ms Middlewares) Chain(root http.HandlerFunc) http.HandlerFunc
Chain
type SendMessageRequest ¶
type SendMessageRequest struct {
TextMessage string `json:"text_message"`
}
SendMessageRequest
type SubscribeRequest ¶
type SubscribeRequest struct { TelegramUserID string `json:"telegram_user_id"` Username string `json:"username"` }
SubscribeRequest
Click to show internal directories.
Click to hide internal directories.