service

package
v0.0.0-...-4a3359c Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2021 License: AGPL-3.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 ProductSearchService

type ProductSearchService interface {
	Search(query string) ([]*model.SneakerProduct, error)
	SearchBy(field, query string) ([]*model.SneakerProduct, error)
	SearchSKU(sku string) ([]*model.SneakerProduct, error)
	SearchBrand(brand string) ([]*model.SneakerProduct, error)
	SearchModel(model string) ([]*model.SneakerProduct, error)
}

type ProductSyncService

type ProductSyncService interface {
	SyncOne(code string) error
	Sync(codes []string, params *meta.RequestParams) error
	SyncAll(params *meta.RequestParams) error
	SyncQuery(query meta.RequestQuery, params *meta.RequestParams) error
}

type ReferenceSearchService

type ReferenceSearchService interface {
	Search(query string, params *meta.RequestParams) ([]*model.SneakerReference, error)
	SearchBy(field, query string, params *meta.RequestParams) ([]*model.SneakerReference, error)
	SearchSKU(sku string, params *meta.RequestParams) ([]*model.SneakerReference, error)
	SearchBrand(brand string, params *meta.RequestParams) ([]*model.SneakerReference, error)
	SearchModel(model string, params *meta.RequestParams) ([]*model.SneakerReference, error)
}

type ReferenceSyncService

type ReferenceSyncService interface {
	SyncOne(code string) error
	Sync(codes []string, params *meta.RequestParams) error
	SyncAll(params *meta.RequestParams) error
	SyncQuery(query meta.RequestQuery, params *meta.RequestParams) error
}

type SneakerSearchSerializer

type SneakerSearchSerializer interface {
	DecodeReference(input []byte) (*ref.SneakerReference, error)
	DecodeReferences(input []byte) ([]*ref.SneakerReference, error)
	DecodeProduct(input []byte) (*prod.SneakerProduct, error)
	DecodeProducts(input []byte) ([]*prod.SneakerProduct, error)
	DecodeMap(input []byte) (map[string]interface{}, error)
	DecodeInto(input []byte, target interface{}) error
	Encode(input interface{}) ([]byte, error)
}

Jump to

Keyboard shortcuts

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