Documentation ¶
Index ¶
- type Client
- type SpannerDBClient
- func (s *SpannerDBClient) GetAllActiveItemCategories(ctx context.Context) ([]*xspanner.ItemCategory, error)
- func (s *SpannerDBClient) GetAllItemCategoriesWithParent(ctx context.Context) ([]*xspanner.ItemCategoryWithParent, error)
- func (s *SpannerDBClient) GetItem(ctx context.Context, itemID string) (*xspanner.Item, error)
- func (s *SpannerDBClient) GetSameGroupItemsByItemID(ctx context.Context, itemID string) ([]*xspanner.Item, error)
- func (s *SpannerDBClient) GetTopLevelItemCategories(ctx context.Context) ([]*xspanner.ItemCategory, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { GetItem(ctx context.Context, itemID string) (*xspanner.Item, error) GetSameGroupItemsByItemID(ctx context.Context, itemID string) ([]*xspanner.Item, error) GetAllActiveItemCategories(ctx context.Context) ([]*xspanner.ItemCategory, error) GetAllItemCategoriesWithParent(ctx context.Context) ([]*xspanner.ItemCategoryWithParent, error) GetTopLevelItemCategories(ctx context.Context) ([]*xspanner.ItemCategory, error) }
type SpannerDBClient ¶
type SpannerDBClient struct {
// contains filtered or unexported fields
}
func NewSpannerDBClient ¶
func NewSpannerDBClient(spannerClient *spanner.Client) *SpannerDBClient
func (*SpannerDBClient) GetAllActiveItemCategories ¶
func (s *SpannerDBClient) GetAllActiveItemCategories(ctx context.Context) ([]*xspanner.ItemCategory, error)
func (*SpannerDBClient) GetAllItemCategoriesWithParent ¶
func (s *SpannerDBClient) GetAllItemCategoriesWithParent(ctx context.Context) ([]*xspanner.ItemCategoryWithParent, error)
func (*SpannerDBClient) GetSameGroupItemsByItemID ¶
func (*SpannerDBClient) GetTopLevelItemCategories ¶
func (s *SpannerDBClient) GetTopLevelItemCategories(ctx context.Context) ([]*xspanner.ItemCategory, error)
Click to show internal directories.
Click to hide internal directories.