transaction

package
v0.0.0-...-4973f47 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2020 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const AuthUserURL string = "%s/%s/tokens/%s"

AuthUserURL ...

View Source
const GetOrderURL string = "%s/%s/orders/%s"

GetOrderURL ...

View Source
const NewOrderURL string = "%s/%s/orders"

NewOrderURL ...

Variables

This section is empty.

Functions

This section is empty.

Types

type Reply

type Reply struct {
}

Reply ...

type Request

type Request struct {
	UserID  string
	Token   string
	GameID  string
	OrderID string
	// contains filtered or unexported fields
}

Request ...

type Service

type Service struct {
	Path string
	// contains filtered or unexported fields
}

Service ...

func NewTransaction

func NewTransaction(path string, httpConn *myhttp.Service) *Service

NewTransaction ...

func (*Service) AuthUser

func (s *Service) AuthUser(token string) (*protoc.User, *protoc.Error, error)

AuthUser GET transation

func (Service) EndOrder

func (s Service) EndOrder(token string, orderProto *protoc.Order) (*protoc.Order, *protoc.Error, error)

EndOrder GET transation

func (Service) NewOrder

func (s Service) NewOrder(token string, order *protoc.Order) (*protoc.Order, *protoc.Error, error)

NewOrder POST transation

type User

type User struct {
}

User ...

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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