stock

package
v0.0.0-...-1bf90d9 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GRPCApi

type GRPCApi struct {
	loms.UnimplementedStockServer
	// contains filtered or unexported fields
}

func NewStockGRPCApi

func NewStockGRPCApi(
	stockService Service,
) *GRPCApi

func (*GRPCApi) StocksInfo

func (g *GRPCApi) StocksInfo(
	ctx context.Context,
	in *grpcmodels.StocksInfoRequest,
) (resp *grpcmodels.StocksInfoResponse, err error)

type Service

type Service interface {
	StocksInfo(ctx context.Context, sku uint32) (count uint64, err error)
}

Jump to

Keyboard shortcuts

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