db

package
v0.0.0-...-7c4a8a6 Latest Latest
Warning

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

Go to latest
Published: May 21, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

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) GetItem

func (s *SpannerDBClient) GetItem(ctx context.Context, itemID string) (*xspanner.Item, error)

func (*SpannerDBClient) GetSameGroupItemsByItemID

func (s *SpannerDBClient) GetSameGroupItemsByItemID(ctx context.Context, itemID string) ([]*xspanner.Item, error)

func (*SpannerDBClient) GetTopLevelItemCategories

func (s *SpannerDBClient) GetTopLevelItemCategories(ctx context.Context) ([]*xspanner.ItemCategory, error)

Jump to

Keyboard shortcuts

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