Documentation
¶
Index ¶
- Variables
- func JsonResponse(w http.ResponseWriter, statusCode int, body interface{})
- func NewMockServer(config *MockServerConfig) (*httptest.Server, error)
- type AllTypes
- type BoolFeatures
- type Child
- type DclassWithOverrides
- type FavoriteThings
- type FloatFeatures
- type Grandparent
- type HasMany
- type HasOneRoot
- type IntFeatures
- type LatLng
- type LatLngWithExtraField
- type LevelOneNest
- type LevelTwoNest
- type MockServerConfig
- type Parent
- type Possessions
- type StringFeatures
- type TimestampFeatures
- type WindowedBoolFeatures
- type WindowedFloatFeatures
- type WindowedIntFeatures
- type WindowedStringFeatures
- type WindowedTimestampFeatures
Constants ¶
This section is empty.
Variables ¶
View Source
var Root struct { AllTypes *AllTypes }
Functions ¶
func JsonResponse ¶ added in v1.0.10
func JsonResponse(w http.ResponseWriter, statusCode int, body interface{})
func NewMockServer ¶ added in v1.0.10
func NewMockServer(config *MockServerConfig) (*httptest.Server, error)
Types ¶
type AllTypes ¶
type AllTypes struct { Int *int64 Float *float64 String *string Bool *bool Timestamp *time.Time IntList *[]int64 NestedIntPointerList *[]*[]int64 NestedIntList *[][]int64 WindowedInt map[string]*int64 `windows:"1m,5m,1h"` WindowedList map[string]*[]int64 `windows:"1m"` Dataclass *LatLng `dataclass:"true"` DataclassWithExtraField *LatLng DataclassList *[]LatLng DataclassWithList *FavoriteThings DataclassWithNils *Possessions DataclassWithDataclass *Child DataclassWithOverrides *DclassWithOverrides Nested *LevelOneNest HasMany *[]HasMany }
type BoolFeatures ¶
type BoolFeatures struct { Bool1 *bool Bool2 *bool Bool3 *bool Bool4 *bool Bool5 *bool Bool6 *bool Bool7 *bool Bool8 *bool Bool9 *bool Bool10 *bool Bool11 *bool Bool12 *bool Bool13 *bool Bool14 *bool Bool15 *bool Bool16 *bool Bool17 *bool Bool18 *bool Bool19 *bool Bool20 *bool Bool21 *bool Bool22 *bool Bool23 *bool Bool24 *bool Bool25 *bool Bool26 *bool Bool27 *bool Bool28 *bool Bool29 *bool Bool30 *bool Bool31 *bool Bool32 *bool Bool33 *bool Bool34 *bool Bool35 *bool Bool36 *bool Bool37 *bool Bool38 *bool Bool39 *bool Bool40 *bool }
type DclassWithOverrides ¶
type DclassWithOverrides struct {
CamelName *string `dataclass_field:"true" name:"camelName"`
}
type FavoriteThings ¶
type FloatFeatures ¶
type FloatFeatures struct { Float1 *float64 Float2 *float64 Float3 *float64 Float4 *float64 Float5 *float64 Float6 *float64 Float7 *float64 Float8 *float64 Float9 *float64 Float10 *float64 Float11 *float64 Float12 *float64 Float13 *float64 Float14 *float64 Float15 *float64 Float16 *float64 Float17 *float64 Float18 *float64 Float19 *float64 Float20 *float64 Float21 *float64 Float22 *float64 Float23 *float64 Float24 *float64 Float25 *float64 Float26 *float64 Float27 *float64 Float28 *float64 Float29 *float64 Float30 *float64 Float31 *float64 Float32 *float64 Float33 *float64 Float34 *float64 Float35 *float64 Float36 *float64 Float37 *float64 Float38 *float64 Float39 *float64 Float40 *float64 }
type Grandparent ¶
type Grandparent struct {
Name *string `dataclass_field:"true"`
}
type HasMany ¶
type HasMany struct { Id *string // The following should be kept in parity with the enumeration of // fields with all types in the `AllTypes` struct. Int *int64 Float *float64 String *string Bool *bool Timestamp *time.Time IntList *[]int64 NestedIntPointerList *[]*[]int64 NestedIntList *[][]int64 WindowedInt map[string]*int64 `windows:"1m,5m,1h"` WindowedList map[string]*[]int64 `windows:"1m"` Dataclass *LatLng `dataclass:"true"` DataclassList *[]LatLng DataclassWithList *FavoriteThings DataclassWithNils *Possessions DataclassWithDataclass *Child DataclassWithOverrides *DclassWithOverrides }
type HasOneRoot ¶ added in v1.0.9
type HasOneRoot struct { StringFeatures *StringFeatures IntFeatures *IntFeatures FloatFeatures *FloatFeatures BoolFeatures *BoolFeatures TimestampFeatures *TimestampFeatures }
type IntFeatures ¶
type IntFeatures struct { Int1 *int64 Int2 *int64 Int3 *int64 Int4 *int64 Int5 *int64 Int6 *int64 Int7 *int64 Int8 *int64 Int9 *int64 Int10 *int64 Int11 *int64 Int12 *int64 Int13 *int64 Int14 *int64 Int15 *int64 Int16 *int64 Int17 *int64 Int18 *int64 Int19 *int64 Int20 *int64 Int21 *int64 Int22 *int64 Int23 *int64 Int24 *int64 Int25 *int64 Int26 *int64 Int27 *int64 Int28 *int64 Int29 *int64 Int30 *int64 Int31 *int64 Int32 *int64 Int33 *int64 Int34 *int64 Int35 *int64 Int36 *int64 Int37 *int64 Int38 *int64 Int39 *int64 Int40 *int64 }
type LatLngWithExtraField ¶
type LevelOneNest ¶
type LevelOneNest struct { Id *string ShouldAlwaysBeNil *string Nested *LevelTwoNest }
type LevelTwoNest ¶
type MockServerConfig ¶ added in v1.0.10
type MockServerConfig struct {
QueryBulkResponse *commonv1.OnlineQueryBulkResponse
}
type Parent ¶
type Parent struct { Name *string `dataclass_field:"true"` Mom *Grandparent Dad *Grandparent }
type Possessions ¶
type StringFeatures ¶
type StringFeatures struct { String1 *string String2 *string String3 *string String4 *string String5 *string String6 *string String7 *string String8 *string String9 *string String10 *string String11 *string String12 *string String13 *string String14 *string String15 *string String16 *string String17 *string String18 *string String19 *string String20 *string String21 *string String22 *string String23 *string String24 *string String25 *string String26 *string String27 *string String28 *string String29 *string String30 *string String31 *string String32 *string String33 *string String34 *string String35 *string String36 *string String37 *string String38 *string String39 *string String40 *string }
type TimestampFeatures ¶
type TimestampFeatures struct { Timestamp1 *time.Time Timestamp2 *time.Time Timestamp3 *time.Time Timestamp4 *time.Time Timestamp5 *time.Time Timestamp6 *time.Time Timestamp7 *time.Time Timestamp8 *time.Time Timestamp9 *time.Time Timestamp10 *time.Time Timestamp11 *time.Time Timestamp12 *time.Time Timestamp13 *time.Time Timestamp14 *time.Time Timestamp15 *time.Time Timestamp16 *time.Time Timestamp17 *time.Time Timestamp18 *time.Time Timestamp19 *time.Time Timestamp20 *time.Time Timestamp21 *time.Time Timestamp22 *time.Time Timestamp23 *time.Time Timestamp24 *time.Time Timestamp25 *time.Time Timestamp26 *time.Time Timestamp27 *time.Time Timestamp28 *time.Time Timestamp29 *time.Time Timestamp30 *time.Time Timestamp31 *time.Time Timestamp32 *time.Time Timestamp33 *time.Time Timestamp34 *time.Time Timestamp35 *time.Time Timestamp36 *time.Time Timestamp37 *time.Time Timestamp38 *time.Time Timestamp39 *time.Time Timestamp40 *time.Time }
type WindowedBoolFeatures ¶
type WindowedBoolFeatures struct { Bool1 map[string]*bool `windows:"1m,5m,1h"` Bool2 map[string]*bool `windows:"1m,5m,1h"` Bool3 map[string]*bool `windows:"1m,5m,1h"` Bool4 map[string]*bool `windows:"1m,5m,1h"` Bool5 map[string]*bool `windows:"1m,5m,1h"` Bool6 map[string]*bool `windows:"1m,5m,1h"` Bool7 map[string]*bool `windows:"1m,5m,1h"` Bool8 map[string]*bool `windows:"1m,5m,1h"` Bool9 map[string]*bool `windows:"1m,5m,1h"` Bool10 map[string]*bool `windows:"1m,5m,1h"` Bool11 map[string]*bool `windows:"1m,5m,1h"` Bool12 map[string]*bool `windows:"1m,5m,1h"` Bool13 map[string]*bool `windows:"1m,5m,1h"` }
type WindowedFloatFeatures ¶
type WindowedFloatFeatures struct { Float1 map[string]*float64 `windows:"1m,5m,1h"` Float2 map[string]*float64 `windows:"1m,5m,1h"` Float3 map[string]*float64 `windows:"1m,5m,1h"` Float4 map[string]*float64 `windows:"1m,5m,1h"` Float5 map[string]*float64 `windows:"1m,5m,1h"` Float6 map[string]*float64 `windows:"1m,5m,1h"` Float7 map[string]*float64 `windows:"1m,5m,1h"` Float8 map[string]*float64 `windows:"1m,5m,1h"` Float9 map[string]*float64 `windows:"1m,5m,1h"` Float10 map[string]*float64 `windows:"1m,5m,1h"` Float11 map[string]*float64 `windows:"1m,5m,1h"` Float12 map[string]*float64 `windows:"1m,5m,1h"` Float13 map[string]*float64 `windows:"1m,5m,1h"` }
type WindowedIntFeatures ¶
type WindowedIntFeatures struct { Int1 map[string]*int64 `windows:"1m,5m,1h"` Int2 map[string]*int64 `windows:"1m,5m,1h"` Int3 map[string]*int64 `windows:"1m,5m,1h"` Int4 map[string]*int64 `windows:"1m,5m,1h"` Int5 map[string]*int64 `windows:"1m,5m,1h"` Int6 map[string]*int64 `windows:"1m,5m,1h"` Int7 map[string]*int64 `windows:"1m,5m,1h"` Int8 map[string]*int64 `windows:"1m,5m,1h"` Int9 map[string]*int64 `windows:"1m,5m,1h"` Int10 map[string]*int64 `windows:"1m,5m,1h"` Int11 map[string]*int64 `windows:"1m,5m,1h"` Int12 map[string]*int64 `windows:"1m,5m,1h"` Int13 map[string]*int64 `windows:"1m,5m,1h"` }
type WindowedStringFeatures ¶
type WindowedStringFeatures struct { String1 map[string]*string `windows:"1m,5m,1h"` String2 map[string]*string `windows:"1m,5m,1h"` String3 map[string]*string `windows:"1m,5m,1h"` String4 map[string]*string `windows:"1m,5m,1h"` String5 map[string]*string `windows:"1m,5m,1h"` String6 map[string]*string `windows:"1m,5m,1h"` String7 map[string]*string `windows:"1m,5m,1h"` String8 map[string]*string `windows:"1m,5m,1h"` String9 map[string]*string `windows:"1m,5m,1h"` String10 map[string]*string `windows:"1m,5m,1h"` String11 map[string]*string `windows:"1m,5m,1h"` String12 map[string]*string `windows:"1m,5m,1h"` String13 map[string]*string `windows:"1m,5m,1h"` }
type WindowedTimestampFeatures ¶
type WindowedTimestampFeatures struct { Timestamp1 map[string]*time.Time `windows:"1m,5m,1h"` Timestamp2 map[string]*time.Time `windows:"1m,5m,1h"` Timestamp3 map[string]*time.Time `windows:"1m,5m,1h"` Timestamp4 map[string]*time.Time `windows:"1m,5m,1h"` Timestamp5 map[string]*time.Time `windows:"1m,5m,1h"` Timestamp6 map[string]*time.Time `windows:"1m,5m,1h"` Timestamp7 map[string]*time.Time `windows:"1m,5m,1h"` Timestamp8 map[string]*time.Time `windows:"1m,5m,1h"` Timestamp9 map[string]*time.Time `windows:"1m,5m,1h"` Timestamp10 map[string]*time.Time `windows:"1m,5m,1h"` Timestamp11 map[string]*time.Time `windows:"1m,5m,1h"` Timestamp12 map[string]*time.Time `windows:"1m,5m,1h"` Timestamp13 map[string]*time.Time `windows:"1m,5m,1h"` }
Click to show internal directories.
Click to hide internal directories.