pkg

package
v0.0.0-...-e809d31 Latest Latest
Warning

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

Go to latest
Published: May 17, 2023 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Pay

func Pay(payID, orderID, amount int64) (string, error)

Types

type Msg

type Msg struct {
	OrderId int64 `json:"order_id"`
	Status  int8  `json:"status"`
}

type OrderManager

type OrderManager struct {
	OrderService orderservice.Client
}

func (OrderManager) GetOrderInfo

func (o OrderManager) GetOrderInfo(ctx context.Context, orderId int64) (*common.Order, error)

type Producer

type Producer struct {
	Producer *nsq.Producer
}

func NewPublisher

func NewPublisher() (pro *Producer, err error)

func (*Producer) Produce

func (p *Producer) Produce(ctx context.Context, msg Msg) error

type UserManager

type UserManager struct {
	UserService userservice.Client
}

func (UserManager) GetUserInfo

func (u UserManager) GetUserInfo(ctx context.Context, uid int64) error

Jump to

Keyboard shortcuts

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