Documentation
¶
Index ¶
- type CatalogLogic
- type CatalogService
- func (c *CatalogService) Get(ctx context.Context, req *itemv1.GetRequest) (*itemv1.GetResponse, error)
- func (c *CatalogService) List(ctx context.Context, req *itemv1.ListRequest) (*itemv1.ListResponse, error)
- func (c *CatalogService) ListAvailable(ctx context.Context, req *itemv1.ListAvailableRequest) (*itemv1.ListAvailableResponse, error)
- func (c *CatalogService) UpdateItem(ctx context.Context, req *itemv1.UpdateItemRequest) (*itemv1.UpdateItemResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CatalogLogic ¶ added in v0.16.1
type CatalogLogic interface {
Get(ctx context.Context, id string) (*model.Item, error)
List(ctx context.Context, page *common.Page) ([]*model.Item, error)
ListAvailable(ctx context.Context, timestampOverride *time.Time, page *common.Page) ([]*model.Item, error)
UpdateItem(ctx context.Context, item *model.Item) (*model.Item, error)
}
type CatalogService ¶
type CatalogService struct {
itemv1.UnimplementedCatalogServiceServer
// contains filtered or unexported fields
}
func NewCatalogService ¶ added in v0.16.1
func NewCatalogService(logic CatalogLogic) *CatalogService
func (*CatalogService) Get ¶ added in v0.16.1
func (c *CatalogService) Get(ctx context.Context, req *itemv1.GetRequest) (*itemv1.GetResponse, error)
func (*CatalogService) List ¶ added in v0.16.1
func (c *CatalogService) List(ctx context.Context, req *itemv1.ListRequest) (*itemv1.ListResponse, error)
func (*CatalogService) ListAvailable ¶ added in v0.16.1
func (c *CatalogService) ListAvailable(ctx context.Context, req *itemv1.ListAvailableRequest) (*itemv1.ListAvailableResponse, error)
func (*CatalogService) UpdateItem ¶ added in v0.16.1
func (c *CatalogService) UpdateItem(ctx context.Context, req *itemv1.UpdateItemRequest) (*itemv1.UpdateItemResponse, error)
Click to show internal directories.
Click to hide internal directories.