Documentation
¶
Overview ¶
Package mockData provides deterministic mock datasets for tests and examples.
Index ¶
- Constants
- Variables
- func GetBiologyList() []string
- func GetGenderList() []string
- func GetList() []string
- func GetRateLadderList() []string
- func IsValidBiology(biology string) bool
- func IsValidGender(in string) bool
- func IsValidPeriod(in string) bool
- func IsValidTitle(in string) bool
- func LadderToString(R map[string]Rung) string
- type BiologicalSex
- type Country
- type Currency
- type Gender
- type Indexer
- type Rung
- type Title
Constants ¶
View Source
const ( Fiat = "Fiat" Crypto = "Crypto" Metals = "Psuedo" Testing = "Testing" )
Variables ¶
View Source
var BiologicalSexes map[string]BiologicalSex
View Source
var Countries map[string]Country
View Source
var Currencies map[string]Currency
View Source
var Genders map[string]Gender
View Source
var Ladder map[string]Rung
View Source
var LadderSize int
View Source
var Titles map[string]Title
Functions ¶
func GetBiologyList ¶
func GetBiologyList() []string
func GetGenderList ¶
func GetGenderList() []string
func GetRateLadderList ¶
func GetRateLadderList() []string
func IsValidBiology ¶
func IsValidGender ¶
func IsValidPeriod ¶
func IsValidTitle ¶
func LadderToString ¶
Types ¶
type BiologicalSex ¶
BiologicalSex represents information of an indivual biology.
func GetBiologyInfo ¶
func GetBiologyInfo(biology string) BiologicalSex
type Country ¶
type Country struct {
IBANLength int // The expected length of the IBAN for the country.
Currency string // The currency code for the country.
ISOCode string // The ISO country code
ISOCode3 string // The ISO country code
}
Country represents information about the IBAN format for a specific country.
func GetCountryInfo ¶
type Currency ¶
type Currency struct {
Code string // The ISO currency code
SpotDays int // The number of spot days for the currency
Name string // The name of the currency
Character string // The character of the currency
DPS int // The number of decimal places for the currency
QuoteDPS int // The number of decimal places for the currency when quoting
Type string // The type of currency
MajorUnit string // The major unit of the currency
MinorUnit string // The minor unit of the currency
MinorCharacter string // The minor character of the currency
ISONumericCode string // The ISO numeric code of the currency
KnownAs string // The known as name of the currency
YearOfIntroduction int // The year the currency was introduced
}
Currency represents information about the IBAN format for a specific country.
func GetCurrency ¶
Click to show internal directories.
Click to hide internal directories.