handlers

package
v0.0.0-...-6db50c9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 5, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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 HandleSubscribe

func HandleSubscribe(w http.ResponseWriter, r *http.Request)

HandleSubscribe

func LogginMiddleware

func LogginMiddleware(next http.HandlerFunc) http.HandlerFunc

LogginMiddleware

Types

type Middleware

type Middleware func(http.HandlerFunc) http.HandlerFunc

Middleware

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL