orders

package
v0.0.0-...-3723a19 Latest Latest
Warning

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

Go to latest
Published: May 19, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(ac *appcontext.Context)

New is an initialization function for appcontext

Types

type Orders

type Orders struct{}

Orders is a function-handling struct for package orders.

func (*Orders) GetAllOrders

func (o *Orders) GetAllOrders() ([]dbmapping.Order, bool)

GetAllOrders returns all orders in database

func (*Orders) GetOrderByID

func (o *Orders) GetOrderByID(orderID int) (dbmapping.Order, bool)

GetOrderByID returns single order by ID

func (*Orders) Init

func (o *Orders) Init()

Init is a initialization function for package

func (*Orders) ListAllOrders

func (o *Orders) ListAllOrders(update *tgbotapi.Update) string

ListAllOrders returns to user all orders in database

func (*Orders) SendOrder

func (o *Orders) SendOrder(update *tgbotapi.Update) string

SendOrder sends order to selected or all squads

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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