api

package
v0.0.0-...-d4893ab Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mux

type Mux struct {
	DB  *sql.DB
	Bot *tgbotapi.BotAPI

	Driver *flow.Driver
}

Mux represents the API.

func (Mux) CreateOrder

func (m Mux) CreateOrder(w http.ResponseWriter, r *http.Request)

CreateOrder handles the POST /orders/{user_id} endpoint.

Jump to

Keyboard shortcuts

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