sku

package
v0.0.0-...-3e0f7d7 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2017 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadMethods

func ReadMethods() []*regexp.Regexp

ReadMethods returns regexp slice of readable methods, mostly used by the acl

func RegisterService

func RegisterService(p Interface)

RegisterService register service as the service provider

func RegisterSkuServer

func RegisterSkuServer(server *grpc.Server)

RegisterSkuServer register service to the grpc server

func WriteMethods

func WriteMethods() []*regexp.Regexp

WriteMethods returns regexp slice of writable methods, mostly used by the acl

Types

type GetWithInventoryLockRequest

type GetWithInventoryLockRequest struct {
	Id       string `validate:"uuid4"`
	Duration time.Duration
}

GetWithInventoryLockRequest request for getting inventory lock

type Interface

type Interface interface {
	skupb.SkuServiceServer
	GetWithInventoryLock(ctx context.Context, req *GetWithInventoryLockRequest) (*skupb.Sku, func() error, util.Fn, error)
	ProductData(ctx context.Context, req *ProductDataReq) ([]*skupb.Sku, error)
}

Interface defines the functionality of the sku service

func Service

func Service() Interface

Service return the registered service

type ProductDataReq

type ProductDataReq struct {
	Id string `validate:"uuid4"`
}

ProductDataReq get product data req

Directories

Path Synopsis
Package skupb is a generated protocol buffer package.
Package skupb is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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