prices

package
v0.3.0-dev2 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2023 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateMarketParamPrice

func GenerateMarketParamPrice(optionalModifications ...MarketParamPriceModifierOption) *pricestypes.MarketParamPrice

GenerateMarketParamPrice returns a `MarketParamPrice` object set to default values. Passing in `MarketParamPriceModifierOption` methods alters the value of the `MarketParamPrice` returned. It will start with the default, valid `MarketParamPrice` value defined within the method and make the requested modifications before returning the object.

Example usage: `GenerateMarketParamPrice(WithId(10))` This will start with the default `MarketParamPrice` object defined within the method and return the newly-created object after overriding the values of `Id` to 10.

Types

type MarketParamPriceModifierOption

type MarketParamPriceModifierOption func(cp *pricestypes.MarketParamPrice)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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