order

package
v0.0.0-...-4b190b9 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitServiceClient

func InitServiceClient(cfg *config.Config) (orderpb.OrderServiceClient, error)

Types

type ServiceClient

type ServiceClient struct {
	Client     orderpb.OrderServiceClient
	AuthClient authpb.AuthServiceClient
}

func RegisterRouters

func RegisterRouters(r *mux.Router, cfg *config.Config, authClient authpb.AuthServiceClient) *ServiceClient

func (*ServiceClient) CreateOrder

func (svc *ServiceClient) CreateOrder(writer http.ResponseWriter, request *http.Request)

func (*ServiceClient) GetOrder

func (svc *ServiceClient) GetOrder(writer http.ResponseWriter, request *http.Request)

func (*ServiceClient) GetOrdersByUser

func (svc *ServiceClient) GetOrdersByUser(writer http.ResponseWriter, request *http.Request)

func (*ServiceClient) UpdateStatus

func (svc *ServiceClient) UpdateStatus(writer http.ResponseWriter, request *http.Request)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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