Documentation ¶
Index ¶
- Variables
- func CodesetContains(codeset map[string]struct{}, value interface{}) bool
- func FloatPointer(value interface{}) (*float64, bool)
- func IntPointer(value interface{}) (*int, bool)
- func StringPointer(value interface{}) (*string, bool)
- type AUCodeSetsYearLevelCodeType
- type AggregateStatisticFact
- func (asf *AggregateStatisticFact) Characteristics() *CharacteristicsType
- func (asf *AggregateStatisticFact) MarshalJSON() ([]byte, error)
- func (asf *AggregateStatisticFact) SetProperties(props ...Prop) *AggregateStatisticFact
- func (asf *AggregateStatisticFact) SetProperty(key string, value interface{}) *AggregateStatisticFact
- func (asf *AggregateStatisticFact) StatsCohortYearLevelList() *StatsCohortYearLevelListType
- func (asf *AggregateStatisticFact) UnmarshalJSON(b []byte) error
- type CharacteristicsType
- type GUIDType
- type LocalIdType
- type MsgIdType
- type Prop
- type RefIdType
- type StatsCohortListType
- type StatsCohortType
- type StatsCohortYearLevelListType
- type StatsCohortYearLevelType
- type YearLevelType
Constants ¶
This section is empty.
Variables ¶
var AUCodeSetsYearLevelCodeTypeValues = map[string]struct{}{
"0": empty,
"1": empty,
"2": empty,
"3": empty,
"4": empty,
"5": empty,
"6": empty,
"7": empty,
"8": empty,
"9": empty,
"10": empty,
"11": empty,
"12": empty,
"13": empty,
"K": empty,
"P": empty,
"K3": empty,
"K4": empty,
"CC": empty,
"PS": empty,
"UG": empty,
"11MINUS": empty,
"12PLUS": empty,
"UGJunSec": empty,
"UGPri": empty,
"UGSec": empty,
"UGSnrSec": empty,
}
codeset as lookup map, faster than iterating array
Functions ¶
func CodesetContains ¶
checks whether a codeset contains the supplied value
func FloatPointer ¶
allows float32 as well as 64
func IntPointer ¶
func StringPointer ¶
Types ¶
type AUCodeSetsYearLevelCodeType ¶
type AUCodeSetsYearLevelCodeType string
func AUCodeSetsYearLevelCodeTypePointer ¶
func AUCodeSetsYearLevelCodeTypePointer(value interface{}) (*AUCodeSetsYearLevelCodeType, bool)
type AggregateStatisticFact ¶
type AggregateStatisticFact struct {
// contains filtered or unexported fields
}
object visible outside of package, but want all properties invisible, accessed only via functions
func (*AggregateStatisticFact) Characteristics ¶
func (asf *AggregateStatisticFact) Characteristics() *CharacteristicsType
expose embedded object
func (*AggregateStatisticFact) MarshalJSON ¶
func (asf *AggregateStatisticFact) MarshalJSON() ([]byte, error)
func (*AggregateStatisticFact) SetProperties ¶
func (asf *AggregateStatisticFact) SetProperties(props ...Prop) *AggregateStatisticFact
allows for collection of key-value Prop{} objects to be used to set many properties at once.
func (*AggregateStatisticFact) SetProperty ¶
func (asf *AggregateStatisticFact) SetProperty(key string, value interface{}) *AggregateStatisticFact
handle the setting of all properties props can be any type and pointers or not helper utilities will convert to correct types an return pointers as required
func (*AggregateStatisticFact) StatsCohortYearLevelList ¶
func (asf *AggregateStatisticFact) StatsCohortYearLevelList() *StatsCohortYearLevelListType
expose embedded object
func (*AggregateStatisticFact) UnmarshalJSON ¶
func (asf *AggregateStatisticFact) UnmarshalJSON(b []byte) error
need 'custom' marshal/unmarshal as data all in embedded object
outer container object also has pesc-compliant single member that refelcts the sif object name
type CharacteristicsType ¶
type CharacteristicsType struct {
// contains filtered or unexported fields
}
public object
func (*CharacteristicsType) AggregateCharacteristicInfoRefId ¶
func (t *CharacteristicsType) AggregateCharacteristicInfoRefId() *CharacteristicsType
exposes the internal array
func (*CharacteristicsType) Append ¶
func (t *CharacteristicsType) Append() *CharacteristicsType
syntactic sugar, not strictly necessary but helps the user
func (*CharacteristicsType) SetValue ¶
func (t *CharacteristicsType) SetValue(v interface{}) *CharacteristicsType
add a value to the internal array
type LocalIdType ¶
type LocalIdType string
func LocalIdPointer ¶
func LocalIdPointer(value interface{}) (*LocalIdType, bool)
allows strings as well as derived types
type RefIdType ¶
type RefIdType GUIDType
func RefIdPointer ¶
allows strings as well as derived types
type StatsCohortListType ¶
type StatsCohortListType struct {
// contains filtered or unexported fields
}
external type
func (*StatsCohortListType) Append ¶
func (t *StatsCohortListType) Append() *StatsCohortListType
helper for user
func (*StatsCohortListType) Last ¶
func (t *StatsCohortListType) Last() *StatsCohortType
access the most recently added member of the list
func (*StatsCohortListType) StatsCohort ¶
func (t *StatsCohortListType) StatsCohort() *StatsCohortType
expose the internal list
type StatsCohortType ¶
type StatsCohortType struct {
// contains filtered or unexported fields
}
externally visible object
func (*StatsCohortType) SetProperties ¶
func (t *StatsCohortType) SetProperties(props ...Prop) *StatsCohortType
lets user set many properties at once
func (*StatsCohortType) SetProperty ¶
func (t *StatsCohortType) SetProperty(key string, value interface{}) *StatsCohortType
allow user to set object properies, handle type conversions etc. for user
type StatsCohortYearLevelListType ¶
type StatsCohortYearLevelListType struct {
// contains filtered or unexported fields
}
exposed object
func (*StatsCohortYearLevelListType) Append ¶
func (s *StatsCohortYearLevelListType) Append() *StatsCohortYearLevelType
if the type of the list is a complex object append creates a member of that type, initilaises the list if necessary
func (*StatsCohortYearLevelListType) Last ¶
func (s *StatsCohortYearLevelListType) Last() *StatsCohortYearLevelType
allows reference to most recently added memebr of list, allows setting of (for example) another object that may be part of the member
type StatsCohortYearLevelType ¶
type StatsCohortYearLevelType struct {
// contains filtered or unexported fields
}
external type
func (*StatsCohortYearLevelType) CohortYearLevel ¶
func (s *StatsCohortYearLevelType) CohortYearLevel() *YearLevelType
expose member object, create if needed
func (*StatsCohortYearLevelType) StatsCohortList ¶
func (t *StatsCohortYearLevelType) StatsCohortList() *StatsCohortListType
expose member object, create if needed
type YearLevelType ¶
type YearLevelType struct {
// contains filtered or unexported fields
}
externally visible object
func (*YearLevelType) SetProperty ¶
func (y *YearLevelType) SetProperty(key string, value interface{}) *YearLevelType
allows user to set internal property, in this case shows how codesets can be checked