Example #1
0
func NewContainerOfEnums() *ContainerOfEnums {
	output := &ContainerOfEnums{
		TStruct: thrift.NewTStruct("ContainerOfEnums", []thrift.TField{
			thrift.NewTField("first", thrift.I32, 1),
			thrift.NewTField("second", thrift.I32, 2),
			thrift.NewTField("third", thrift.I32, 3),
			thrift.NewTField("optional_fourth", thrift.I32, 4),
			thrift.NewTField("optional_fifth", thrift.I32, 5),
			thrift.NewTField("optional_sixth", thrift.I32, 6),
			thrift.NewTField("default_seventh", thrift.I32, 7),
			thrift.NewTField("default_eighth", thrift.I32, 8),
			thrift.NewTField("default_nineth", thrift.I32, 9),
		}),
	}
	{
		output.First = math.MinInt32 - 1
		output.Second = math.MinInt32 - 1
		output.Third = math.MinInt32 - 1
		output.OptionalFourth = math.MinInt32 - 1
		output.OptionalFifth = math.MinInt32 - 1
		output.OptionalSixth = math.MinInt32 - 1
		output.DefaultSeventh = 0
		output.DefaultEighth = 1
		output.DefaultNineth = 0
	}
	return output
}
Example #2
0
func NewReservation() *Reservation {
	output := &Reservation{
		TStruct: thrift.NewTStruct("Reservation", []thrift.TField{
			thrift.NewTField("queue", thrift.STRING, 1),
			thrift.NewTField("secret", thrift.STRING, 2),
		}),
	}
	{
	}
	return output
}
Example #3
0
func (p *ContainerOfEnums) TStructFields() thrift.TFieldContainer {
	return thrift.NewTFieldContainer([]thrift.TField{
		thrift.NewTField("first", thrift.I32, 1),
		thrift.NewTField("second", thrift.I32, 2),
		thrift.NewTField("third", thrift.I32, 3),
		thrift.NewTField("optional_fourth", thrift.I32, 4),
		thrift.NewTField("optional_fifth", thrift.I32, 5),
		thrift.NewTField("optional_sixth", thrift.I32, 6),
		thrift.NewTField("default_seventh", thrift.I32, 7),
		thrift.NewTField("default_eighth", thrift.I32, 8),
		thrift.NewTField("default_nineth", thrift.I32, 9),
	})
}
func NewEchoResult() *EchoResult {
	output := &EchoResult{
		TStruct: thrift.NewTStruct("echo_result", []thrift.TField{
			thrift.NewTField("success", thrift.STRUCT, 0),
		}),
	}
	{
	}
	return output
}
func NewEchoArgs() *EchoArgs {
	output := &EchoArgs{
		TStruct: thrift.NewTStruct("echo_args", []thrift.TField{
			thrift.NewTField("message", thrift.STRUCT, 1),
		}),
	}
	{
	}
	return output
}
func (p *EchoResult) TStructFields() thrift.TFieldContainer {
	return thrift.NewTFieldContainer([]thrift.TField{
		thrift.NewTField("success", thrift.STRUCT, 0),
	})
}
func (p *EchoArgs) TStructFields() thrift.TFieldContainer {
	return thrift.NewTFieldContainer([]thrift.TField{
		thrift.NewTField("message", thrift.STRUCT, 1),
	})
}
Example #8
0
func (p *Reservation) TStructFields() thrift.TFieldContainer {
	return thrift.NewTFieldContainer([]thrift.TField{
		thrift.NewTField("queue", thrift.STRING, 1),
		thrift.NewTField("secret", thrift.STRING, 2),
	})
}