market

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GroupByID added in v0.0.2

func GroupByID(ctx context.Context, id *int) (*model.MarketGroup, error)

GroupByID takes a context for tracing and an ID to query the Market Group by.

func OrderHistory

func OrderHistory(ctx context.Context, regionID *int, typeID *int) ([]*model.OrderHistory, error)

OrderHistory takes in a context for tracing, a region id to query the history for, and a type id for the item history to get.

func OrdersForRegion

func OrdersForRegion(ctx context.Context, regionID *int, orderType *model.Ordertype, typeID *int, page *int) (*model.OrderWrapper, error)

OrdersForRegion takes a context for tracing, a region id to query by, a order type of ALL, BUY, or SELL, an optional type id to query by and the page of results for which to query.

func OrdersForRegionByName

func OrdersForRegionByName(ctx context.Context, region *string, orderType *model.Ordertype, typeName *string, page *int) (*model.OrderWrapper, error)

OrdersForRegionByName takes a context for tracing, a region name to query by, a order type of ALL, BUY, or SELL, an optional type name to query by and the page of results for which to query.

func SetupMarketRest

func SetupMarketRest()

SetupMarketRest configures dependencies for the Market rest package

Types

type RestHelper

type RestHelper interface {
	MakeCachingRESTCall(ctx context.Context, baseURL string, verb string, body bytes.Buffer, additionalQueryParams []configuration.KeyValue, redisQueryKey string) ([]byte, http.Header, error)
}

RestHelper is an interface used in mocking for unit tests.

Jump to

Keyboard shortcuts

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