gauntlet

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2016 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bonk

type Bonk struct {
	Message *string `json:"message,omitempty"`
	Type    *int32  `json:"type,omitempty"`
}

func (*Bonk) FromWire

func (v *Bonk) FromWire(w wire.Value) error

func (*Bonk) String

func (v *Bonk) String() string

func (*Bonk) ToWire

func (v *Bonk) ToWire() (wire.Value, error)

type BoolTest

type BoolTest struct {
	B *bool   `json:"b,omitempty"`
	S *string `json:"s,omitempty"`
}

func (*BoolTest) FromWire

func (v *BoolTest) FromWire(w wire.Value) error

func (*BoolTest) String

func (v *BoolTest) String() string

func (*BoolTest) ToWire

func (v *BoolTest) ToWire() (wire.Value, error)

type Bools

type Bools struct {
	ImTrue  *bool `json:"im_true,omitempty"`
	ImFalse *bool `json:"im_false,omitempty"`
}

func (*Bools) FromWire

func (v *Bools) FromWire(w wire.Value) error

func (*Bools) String

func (v *Bools) String() string

func (*Bools) ToWire

func (v *Bools) ToWire() (wire.Value, error)

type CrazyNesting

type CrazyNesting struct {
	StringField *string     `json:"string_field,omitempty"`
	SetField    []*Insanity `json:"set_field"`
	ListField   [][]struct {
		Key   map[int32]struct{}
		Value map[int32][][][]struct {
			Key   *Insanity
			Value string
		}
	} `json:"list_field"`
	BinaryField []byte `json:"binary_field"`
}

func (*CrazyNesting) FromWire

func (v *CrazyNesting) FromWire(w wire.Value) error

func (*CrazyNesting) String

func (v *CrazyNesting) String() string

func (*CrazyNesting) ToWire

func (v *CrazyNesting) ToWire() (wire.Value, error)

type EmptyStruct

type EmptyStruct struct{}

func (*EmptyStruct) FromWire

func (v *EmptyStruct) FromWire(w wire.Value) error

func (*EmptyStruct) String

func (v *EmptyStruct) String() string

func (*EmptyStruct) ToWire

func (v *EmptyStruct) ToWire() (wire.Value, error)

type GuessProtocolStruct

type GuessProtocolStruct struct {
	MapField map[string]string `json:"map_field"`
}

func (*GuessProtocolStruct) FromWire

func (v *GuessProtocolStruct) FromWire(w wire.Value) error

func (*GuessProtocolStruct) String

func (v *GuessProtocolStruct) String() string

func (*GuessProtocolStruct) ToWire

func (v *GuessProtocolStruct) ToWire() (wire.Value, error)

type Insanity

type Insanity struct {
	UserMap map[Numberz]UserId `json:"userMap"`
	Xtructs []*Xtruct          `json:"xtructs"`
}

func (*Insanity) FromWire

func (v *Insanity) FromWire(w wire.Value) error

func (*Insanity) String

func (v *Insanity) String() string

func (*Insanity) ToWire

func (v *Insanity) ToWire() (wire.Value, error)

type LargeDeltas

type LargeDeltas struct {
	B1         *Bools              `json:"b1,omitempty"`
	B10        *Bools              `json:"b10,omitempty"`
	B100       *Bools              `json:"b100,omitempty"`
	CheckTrue  *bool               `json:"check_true,omitempty"`
	B1000      *Bools              `json:"b1000,omitempty"`
	CheckFalse *bool               `json:"check_false,omitempty"`
	Vertwo2000 *VersioningTestV2   `json:"vertwo2000,omitempty"`
	ASet2500   map[string]struct{} `json:"a_set2500"`
	Vertwo3000 *VersioningTestV2   `json:"vertwo3000,omitempty"`
	BigNumbers []int32             `json:"big_numbers"`
}

func (*LargeDeltas) FromWire

func (v *LargeDeltas) FromWire(w wire.Value) error

func (*LargeDeltas) String

func (v *LargeDeltas) String() string

func (*LargeDeltas) ToWire

func (v *LargeDeltas) ToWire() (wire.Value, error)

type ListBonks

type ListBonks struct {
	Bonk []*Bonk `json:"bonk"`
}

func (*ListBonks) FromWire

func (v *ListBonks) FromWire(w wire.Value) error

func (*ListBonks) String

func (v *ListBonks) String() string

func (*ListBonks) ToWire

func (v *ListBonks) ToWire() (wire.Value, error)

type ListTypeVersioningV1

type ListTypeVersioningV1 struct {
	Myints []int32 `json:"myints"`
	Hello  *string `json:"hello,omitempty"`
}

func (*ListTypeVersioningV1) FromWire

func (v *ListTypeVersioningV1) FromWire(w wire.Value) error

func (*ListTypeVersioningV1) String

func (v *ListTypeVersioningV1) String() string

func (*ListTypeVersioningV1) ToWire

func (v *ListTypeVersioningV1) ToWire() (wire.Value, error)

type ListTypeVersioningV2

type ListTypeVersioningV2 struct {
	Strings []string `json:"strings"`
	Hello   *string  `json:"hello,omitempty"`
}

func (*ListTypeVersioningV2) FromWire

func (v *ListTypeVersioningV2) FromWire(w wire.Value) error

func (*ListTypeVersioningV2) String

func (v *ListTypeVersioningV2) String() string

func (*ListTypeVersioningV2) ToWire

func (v *ListTypeVersioningV2) ToWire() (wire.Value, error)

type MapType

type MapType map[string]*Bonk

func (*MapType) FromWire

func (v *MapType) FromWire(w wire.Value) error

func (MapType) String

func (v MapType) String() string

func (MapType) ToWire

func (v MapType) ToWire() (wire.Value, error)

type NestedListsBonk

type NestedListsBonk struct {
	Bonk [][][]*Bonk `json:"bonk"`
}

func (*NestedListsBonk) FromWire

func (v *NestedListsBonk) FromWire(w wire.Value) error

func (*NestedListsBonk) String

func (v *NestedListsBonk) String() string

func (*NestedListsBonk) ToWire

func (v *NestedListsBonk) ToWire() (wire.Value, error)

type NestedListsI32x2

type NestedListsI32x2 struct {
	Integerlist [][]int32 `json:"integerlist"`
}

func (*NestedListsI32x2) FromWire

func (v *NestedListsI32x2) FromWire(w wire.Value) error

func (*NestedListsI32x2) String

func (v *NestedListsI32x2) String() string

func (*NestedListsI32x2) ToWire

func (v *NestedListsI32x2) ToWire() (wire.Value, error)

type NestedListsI32x3

type NestedListsI32x3 struct {
	Integerlist [][][]int32 `json:"integerlist"`
}

func (*NestedListsI32x3) FromWire

func (v *NestedListsI32x3) FromWire(w wire.Value) error

func (*NestedListsI32x3) String

func (v *NestedListsI32x3) String() string

func (*NestedListsI32x3) ToWire

func (v *NestedListsI32x3) ToWire() (wire.Value, error)

type NestedMixedx2

type NestedMixedx2 struct {
	IntSetList       []map[int32]struct{}            `json:"int_set_list"`
	MapIntStrset     map[int32]map[string]struct{}   `json:"map_int_strset"`
	MapIntStrsetList []map[int32]map[string]struct{} `json:"map_int_strset_list"`
}

func (*NestedMixedx2) FromWire

func (v *NestedMixedx2) FromWire(w wire.Value) error

func (*NestedMixedx2) String

func (v *NestedMixedx2) String() string

func (*NestedMixedx2) ToWire

func (v *NestedMixedx2) ToWire() (wire.Value, error)

type Numberz

type Numberz int32
const (
	NumberzOne   Numberz = 1
	NumberzTwo   Numberz = 2
	NumberzThree Numberz = 3
	NumberzFive  Numberz = 5
	NumberzSix   Numberz = 6
	NumberzEight Numberz = 8
)
const MyNumberz Numberz = NumberzOne

func (*Numberz) FromWire

func (v *Numberz) FromWire(w wire.Value) error

func (Numberz) String

func (v Numberz) String() string

func (Numberz) ToWire

func (v Numberz) ToWire() (wire.Value, error)

type OneField

type OneField struct {
	Field *EmptyStruct `json:"field,omitempty"`
}

func (*OneField) FromWire

func (v *OneField) FromWire(w wire.Value) error

func (*OneField) String

func (v *OneField) String() string

func (*OneField) ToWire

func (v *OneField) ToWire() (wire.Value, error)

type StructA

type StructA struct {
	S string `json:"s"`
}

func (*StructA) FromWire

func (v *StructA) FromWire(w wire.Value) error

func (*StructA) String

func (v *StructA) String() string

func (*StructA) ToWire

func (v *StructA) ToWire() (wire.Value, error)

type StructB

type StructB struct {
	Aa *StructA `json:"aa,omitempty"`
	Ab *StructA `json:"ab"`
}

func (*StructB) FromWire

func (v *StructB) FromWire(w wire.Value) error

func (*StructB) String

func (v *StructB) String() string

func (*StructB) ToWire

func (v *StructB) ToWire() (wire.Value, error)

type UserId

type UserId int64

func (*UserId) FromWire

func (v *UserId) FromWire(w wire.Value) error

func (UserId) String

func (v UserId) String() string

func (UserId) ToWire

func (v UserId) ToWire() (wire.Value, error)

type VersioningTestV1

type VersioningTestV1 struct {
	BeginInBoth *int32  `json:"begin_in_both,omitempty"`
	OldString   *string `json:"old_string,omitempty"`
	EndInBoth   *int32  `json:"end_in_both,omitempty"`
}

func (*VersioningTestV1) FromWire

func (v *VersioningTestV1) FromWire(w wire.Value) error

func (*VersioningTestV1) String

func (v *VersioningTestV1) String() string

func (*VersioningTestV1) ToWire

func (v *VersioningTestV1) ToWire() (wire.Value, error)

type VersioningTestV2

type VersioningTestV2 struct {
	BeginInBoth *int32             `json:"begin_in_both,omitempty"`
	Newint      *int32             `json:"newint,omitempty"`
	Newbyte     *int8              `json:"newbyte,omitempty"`
	Newshort    *int16             `json:"newshort,omitempty"`
	Newlong     *int64             `json:"newlong,omitempty"`
	Newdouble   *float64           `json:"newdouble,omitempty"`
	Newstruct   *Bonk              `json:"newstruct,omitempty"`
	Newlist     []int32            `json:"newlist"`
	Newset      map[int32]struct{} `json:"newset"`
	Newmap      map[int32]int32    `json:"newmap"`
	Newstring   *string            `json:"newstring,omitempty"`
	EndInBoth   *int32             `json:"end_in_both,omitempty"`
}

func (*VersioningTestV2) FromWire

func (v *VersioningTestV2) FromWire(w wire.Value) error

func (*VersioningTestV2) String

func (v *VersioningTestV2) String() string

func (*VersioningTestV2) ToWire

func (v *VersioningTestV2) ToWire() (wire.Value, error)

type Xception

type Xception struct {
	ErrorCode *int32  `json:"errorCode,omitempty"`
	Message   *string `json:"message,omitempty"`
}

func (*Xception) Error

func (v *Xception) Error() string

func (*Xception) FromWire

func (v *Xception) FromWire(w wire.Value) error

func (*Xception) String

func (v *Xception) String() string

func (*Xception) ToWire

func (v *Xception) ToWire() (wire.Value, error)

type Xception2

type Xception2 struct {
	ErrorCode   *int32  `json:"errorCode,omitempty"`
	StructThing *Xtruct `json:"struct_thing,omitempty"`
}

func (*Xception2) Error

func (v *Xception2) Error() string

func (*Xception2) FromWire

func (v *Xception2) FromWire(w wire.Value) error

func (*Xception2) String

func (v *Xception2) String() string

func (*Xception2) ToWire

func (v *Xception2) ToWire() (wire.Value, error)

type Xtruct

type Xtruct struct {
	StringThing *string `json:"string_thing,omitempty"`
	ByteThing   *int8   `json:"byte_thing,omitempty"`
	I32Thing    *int32  `json:"i32_thing,omitempty"`
	I64Thing    *int64  `json:"i64_thing,omitempty"`
}

func (*Xtruct) FromWire

func (v *Xtruct) FromWire(w wire.Value) error

func (*Xtruct) String

func (v *Xtruct) String() string

func (*Xtruct) ToWire

func (v *Xtruct) ToWire() (wire.Value, error)

type Xtruct2

type Xtruct2 struct {
	ByteThing   *int8   `json:"byte_thing,omitempty"`
	StructThing *Xtruct `json:"struct_thing,omitempty"`
	I32Thing    *int32  `json:"i32_thing,omitempty"`
}

func (*Xtruct2) FromWire

func (v *Xtruct2) FromWire(w wire.Value) error

func (*Xtruct2) String

func (v *Xtruct2) String() string

func (*Xtruct2) ToWire

func (v *Xtruct2) ToWire() (wire.Value, error)

type Xtruct3

type Xtruct3 struct {
	StringThing *string `json:"string_thing,omitempty"`
	Changed     *int32  `json:"changed,omitempty"`
	I32Thing    *int32  `json:"i32_thing,omitempty"`
	I64Thing    *int64  `json:"i64_thing,omitempty"`
}

func (*Xtruct3) FromWire

func (v *Xtruct3) FromWire(w wire.Value) error

func (*Xtruct3) String

func (v *Xtruct3) String() string

func (*Xtruct3) ToWire

func (v *Xtruct3) ToWire() (wire.Value, error)

Directories

Path Synopsis
service
yarpc

Jump to

Keyboard shortcuts

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