handlers

package
v0.0.0-...-89459e6 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCommand

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

CreateCommand creates a bot command in the database collection.

func DeleteCommand

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

DeleteCommand deletes a bot command from the database collection.

func ListCommands

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

ListCommands lists bot commands present in the database collection.

func ReplaceCommand

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

ReplaceCommand replaces an existing bot command in the database collection.

func Timeout

func Timeout(next http.Handler) http.Handler

Timeout is the HTTP request timeout handler middleware.

func UpdateCommand

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

UpdateCommand updates an existing bot command in the database collection.

Types

This section is empty.

Jump to

Keyboard shortcuts

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