contracts

package
v0.0.0-...-9c5febd Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomerMessengerInput

type CustomerMessengerInput interface {
	ListenChat()
}

CustomerMessengerInput use messenger contract

type OrderMessageInput

type OrderMessageInput interface {
	OrderMessage(phone, orderLink, description string)
}

OrderMessageInput delivery order link to messenger contract

type PlaceOrderInput

type PlaceOrderInput interface {
	PlaceOrder(request PlaceOrderRequest, output PlaceOrderOutput)
}

PlaceOrderInput upload contract

type PlaceOrderOutput

type PlaceOrderOutput interface {
	OnResponse(phone, orderLink, description string)
}

PlaceOrderOutput upload response contract

type PlaceOrderRequest

type PlaceOrderRequest struct {
	Filename    string
	Dir         string
	Phone       string
	Private     bool
	MD5         []byte
	CustomerID  int
	CategoryID  int
	Description string
}

PlaceOrderRequest data structure

func (PlaceOrderRequest) GetFullFileName

func (r PlaceOrderRequest) GetFullFileName() string

GetFullFileName Dir/Filename

type PurgeOrdersInput

type PurgeOrdersInput interface {
	PurgeOrders()
}

PurgeOrdersInput delete order from database if expired

type TakeOrderInput

type TakeOrderInput interface {
	TakeOrder(request TakeOrderRequest, output TakeOrderOutput)
}

TakeOrderInput download contract

type TakeOrderOutput

type TakeOrderOutput interface {
	OnResponse(sourcename, filename string, size int)
}

TakeOrderOutput download response contract

type TakeOrderRequest

type TakeOrderRequest struct {
	Link string
}

TakeOrderRequest data structure

Jump to

Keyboard shortcuts

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