module

package
v0.0.0-...-fa2f347 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const Msg string = "hello, world"
View Source
const MsgNoTransitive string = "hello, world 2"
View Source
const Timeout int32 = 42
View Source
const TimeoutNoTransitive int32 = 420
View Source
const Var1 int32 = 10
View Source
const Var2 string = "20"
View Source
const Var4 int32 = 40
View Source
const Var5 string = "50"

Variables

View Source
var (
	Color_name = map[Color]string{
		Color_UNKNOWN: "UNKNOWN",
		Color_RED:     "RED",
		Color_GREEN:   "GREEN",
		Color_BLUE:    "BLUE",
	}

	Color_value = map[string]Color{
		"UNKNOWN": Color_UNKNOWN,
		"RED":     Color_RED,
		"GREEN":   Color_GREEN,
		"BLUE":    Color_BLUE,
	}

	// Deprecated: Use Color_name instead.
	ColorToName = Color_name

	// Deprecated: Use Color_value instead.
	ColorToValue = Color_value

	// Deprecated: Use Color_name instead (e.g. `for name, _ := range Color_name {}`).
	ColorNames = []string{
		"UNKNOWN",
		"RED",
		"GREEN",
		"BLUE",
	}

	// Deprecated: Use Color_value instead (e.g. `for value, _ := range Color_value {}`).
	ColorValues = []Color{
		0,
		1,
		2,
		3,
	}
)

Enum value maps for Color

View Source
var (
	ThriftAdaptedEnum_name = map[ThriftAdaptedEnum]string{
		ThriftAdaptedEnum_Zero: "Zero",
		ThriftAdaptedEnum_One:  "One",
	}

	ThriftAdaptedEnum_value = map[string]ThriftAdaptedEnum{
		"Zero": ThriftAdaptedEnum_Zero,
		"One":  ThriftAdaptedEnum_One,
	}

	// Deprecated: Use ThriftAdaptedEnum_name instead.
	ThriftAdaptedEnumToName = ThriftAdaptedEnum_name

	// Deprecated: Use ThriftAdaptedEnum_value instead.
	ThriftAdaptedEnumToValue = ThriftAdaptedEnum_value

	// Deprecated: Use ThriftAdaptedEnum_name instead (e.g. `for name, _ := range ThriftAdaptedEnum_name {}`).
	ThriftAdaptedEnumNames = []string{
		"Zero",
		"One",
	}

	// Deprecated: Use ThriftAdaptedEnum_value instead (e.g. `for value, _ := range ThriftAdaptedEnum_value {}`).
	ThriftAdaptedEnumValues = []ThriftAdaptedEnum{
		0,
		1,
	}
)

Enum value maps for ThriftAdaptedEnum

View Source
var ContainerOfAdapted []AdaptedByte = []AdaptedByte{
	1,
	2,
	3,
}
View Source
var GoUnusedProtection__ int

Functions

This section is empty.

Types

type A

type A struct {
}

func NewA

func NewA() *A

func (*A) Read

func (x *A) Read(p thrift.Protocol) error

func (*A) Write

func (x *A) Write(p thrift.Protocol) error

type ABuilder deprecated

type ABuilder struct {
	// contains filtered or unexported fields
}

Deprecated: Use A.Set* methods instead or set the fields directly.

func NewABuilder

func NewABuilder() *ABuilder

func (*ABuilder) Emit

func (x *ABuilder) Emit() *A

type AdaptTemplatedNestedTestStruct

type AdaptTemplatedNestedTestStruct struct {
	AdaptedStruct *AdaptTemplatedTestStruct `thrift:"adaptedStruct,1" json:"adaptedStruct" db:"adaptedStruct"`
}

func NewAdaptTemplatedNestedTestStruct

func NewAdaptTemplatedNestedTestStruct() *AdaptTemplatedNestedTestStruct

func (*AdaptTemplatedNestedTestStruct) GetAdaptedStruct

func (*AdaptTemplatedNestedTestStruct) IsSetAdaptedStruct

func (x *AdaptTemplatedNestedTestStruct) IsSetAdaptedStruct() bool

func (*AdaptTemplatedNestedTestStruct) Read

func (*AdaptTemplatedNestedTestStruct) SetAdaptedStruct

func (*AdaptTemplatedNestedTestStruct) Write

type AdaptTemplatedNestedTestStructBuilder deprecated

type AdaptTemplatedNestedTestStructBuilder struct {
	// contains filtered or unexported fields
}

Deprecated: Use AdaptTemplatedNestedTestStruct.Set* methods instead or set the fields directly.

func NewAdaptTemplatedNestedTestStructBuilder

func NewAdaptTemplatedNestedTestStructBuilder() *AdaptTemplatedNestedTestStructBuilder

func (*AdaptTemplatedNestedTestStructBuilder) AdaptedStruct

func (*AdaptTemplatedNestedTestStructBuilder) Emit

type AdaptTemplatedTestStruct

type AdaptTemplatedTestStruct struct {
	AdaptedBool           AdaptedBool       `thrift:"adaptedBool,1" json:"adaptedBool" db:"adaptedBool"`
	AdaptedByte           AdaptedByte       `thrift:"adaptedByte,2" json:"adaptedByte" db:"adaptedByte"`
	AdaptedShort          AdaptedShort      `thrift:"adaptedShort,3" json:"adaptedShort" db:"adaptedShort"`
	AdaptedInteger        AdaptedInteger    `thrift:"adaptedInteger,4" json:"adaptedInteger" db:"adaptedInteger"`
	AdaptedLong           AdaptedLong       `thrift:"adaptedLong,5" json:"adaptedLong" db:"adaptedLong"`
	AdaptedDouble         AdaptedDouble     `thrift:"adaptedDouble,6" json:"adaptedDouble" db:"adaptedDouble"`
	AdaptedString         AdaptedString     `thrift:"adaptedString,7" json:"adaptedString" db:"adaptedString"`
	AdaptedList           []int64           `thrift:"adaptedList,8" json:"adaptedList" db:"adaptedList"`
	AdaptedSet            []int64           `thrift:"adaptedSet,9" json:"adaptedSet" db:"adaptedSet"`
	AdaptedMap            map[int64]int64   `thrift:"adaptedMap,10" json:"adaptedMap" db:"adaptedMap"`
	AdaptedBoolDefault    AdaptedBool       `thrift:"adaptedBoolDefault,11" json:"adaptedBoolDefault" db:"adaptedBoolDefault"`
	AdaptedByteDefault    AdaptedByte       `thrift:"adaptedByteDefault,12" json:"adaptedByteDefault" db:"adaptedByteDefault"`
	AdaptedShortDefault   AdaptedShort      `thrift:"adaptedShortDefault,13" json:"adaptedShortDefault" db:"adaptedShortDefault"`
	AdaptedIntegerDefault AdaptedInteger    `thrift:"adaptedIntegerDefault,14" json:"adaptedIntegerDefault" db:"adaptedIntegerDefault"`
	AdaptedLongDefault    AdaptedLong       `thrift:"adaptedLongDefault,15" json:"adaptedLongDefault" db:"adaptedLongDefault"`
	AdaptedDoubleDefault  AdaptedDouble     `thrift:"adaptedDoubleDefault,16" json:"adaptedDoubleDefault" db:"adaptedDoubleDefault"`
	AdaptedStringDefault  AdaptedString     `thrift:"adaptedStringDefault,17" json:"adaptedStringDefault" db:"adaptedStringDefault"`
	AdaptedEnum           AdaptedEnum       `thrift:"adaptedEnum,18" json:"adaptedEnum" db:"adaptedEnum"`
	AdaptedListDefault    []int64           `thrift:"adaptedListDefault,19" json:"adaptedListDefault" db:"adaptedListDefault"`
	AdaptedSetDefault     []int64           `thrift:"adaptedSetDefault,20" json:"adaptedSetDefault" db:"adaptedSetDefault"`
	AdaptedMapDefault     map[int64]int64   `thrift:"adaptedMapDefault,21" json:"adaptedMapDefault" db:"adaptedMapDefault"`
	DoubleTypedefBool     DoubleTypedefBool `thrift:"doubleTypedefBool,22" json:"doubleTypedefBool" db:"doubleTypedefBool"`
}

func NewAdaptTemplatedTestStruct

func NewAdaptTemplatedTestStruct() *AdaptTemplatedTestStruct

func (*AdaptTemplatedTestStruct) GetAdaptedBool

func (x *AdaptTemplatedTestStruct) GetAdaptedBool() AdaptedBool

func (*AdaptTemplatedTestStruct) GetAdaptedBoolDefault

func (x *AdaptTemplatedTestStruct) GetAdaptedBoolDefault() AdaptedBool

func (*AdaptTemplatedTestStruct) GetAdaptedByte

func (x *AdaptTemplatedTestStruct) GetAdaptedByte() AdaptedByte

func (*AdaptTemplatedTestStruct) GetAdaptedByteDefault

func (x *AdaptTemplatedTestStruct) GetAdaptedByteDefault() AdaptedByte

func (*AdaptTemplatedTestStruct) GetAdaptedDouble

func (x *AdaptTemplatedTestStruct) GetAdaptedDouble() AdaptedDouble

func (*AdaptTemplatedTestStruct) GetAdaptedDoubleDefault

func (x *AdaptTemplatedTestStruct) GetAdaptedDoubleDefault() AdaptedDouble

func (*AdaptTemplatedTestStruct) GetAdaptedEnum

func (x *AdaptTemplatedTestStruct) GetAdaptedEnum() AdaptedEnum

func (*AdaptTemplatedTestStruct) GetAdaptedInteger

func (x *AdaptTemplatedTestStruct) GetAdaptedInteger() AdaptedInteger

func (*AdaptTemplatedTestStruct) GetAdaptedIntegerDefault

func (x *AdaptTemplatedTestStruct) GetAdaptedIntegerDefault() AdaptedInteger

func (*AdaptTemplatedTestStruct) GetAdaptedList

func (x *AdaptTemplatedTestStruct) GetAdaptedList() []int64

func (*AdaptTemplatedTestStruct) GetAdaptedListDefault

func (x *AdaptTemplatedTestStruct) GetAdaptedListDefault() []int64

func (*AdaptTemplatedTestStruct) GetAdaptedLong

func (x *AdaptTemplatedTestStruct) GetAdaptedLong() AdaptedLong

func (*AdaptTemplatedTestStruct) GetAdaptedLongDefault

func (x *AdaptTemplatedTestStruct) GetAdaptedLongDefault() AdaptedLong

func (*AdaptTemplatedTestStruct) GetAdaptedMap

func (x *AdaptTemplatedTestStruct) GetAdaptedMap() map[int64]int64

func (*AdaptTemplatedTestStruct) GetAdaptedMapDefault

func (x *AdaptTemplatedTestStruct) GetAdaptedMapDefault() map[int64]int64

func (*AdaptTemplatedTestStruct) GetAdaptedSet

func (x *AdaptTemplatedTestStruct) GetAdaptedSet() []int64

func (*AdaptTemplatedTestStruct) GetAdaptedSetDefault

func (x *AdaptTemplatedTestStruct) GetAdaptedSetDefault() []int64

func (*AdaptTemplatedTestStruct) GetAdaptedShort

func (x *AdaptTemplatedTestStruct) GetAdaptedShort() AdaptedShort

func (*AdaptTemplatedTestStruct) GetAdaptedShortDefault

func (x *AdaptTemplatedTestStruct) GetAdaptedShortDefault() AdaptedShort

func (*AdaptTemplatedTestStruct) GetAdaptedString

func (x *AdaptTemplatedTestStruct) GetAdaptedString() AdaptedString

func (*AdaptTemplatedTestStruct) GetAdaptedStringDefault

func (x *AdaptTemplatedTestStruct) GetAdaptedStringDefault() AdaptedString

func (*AdaptTemplatedTestStruct) GetDoubleTypedefBool

func (x *AdaptTemplatedTestStruct) GetDoubleTypedefBool() DoubleTypedefBool

func (*AdaptTemplatedTestStruct) IsSetAdaptedList

func (x *AdaptTemplatedTestStruct) IsSetAdaptedList() bool

func (*AdaptTemplatedTestStruct) IsSetAdaptedListDefault

func (x *AdaptTemplatedTestStruct) IsSetAdaptedListDefault() bool

func (*AdaptTemplatedTestStruct) IsSetAdaptedMap

func (x *AdaptTemplatedTestStruct) IsSetAdaptedMap() bool

func (*AdaptTemplatedTestStruct) IsSetAdaptedMapDefault

func (x *AdaptTemplatedTestStruct) IsSetAdaptedMapDefault() bool

func (*AdaptTemplatedTestStruct) IsSetAdaptedSet

func (x *AdaptTemplatedTestStruct) IsSetAdaptedSet() bool

func (*AdaptTemplatedTestStruct) IsSetAdaptedSetDefault

func (x *AdaptTemplatedTestStruct) IsSetAdaptedSetDefault() bool

func (*AdaptTemplatedTestStruct) Read

func (*AdaptTemplatedTestStruct) SetAdaptedBool

func (*AdaptTemplatedTestStruct) SetAdaptedBoolDefault

func (x *AdaptTemplatedTestStruct) SetAdaptedBoolDefault(value AdaptedBool) *AdaptTemplatedTestStruct

func (*AdaptTemplatedTestStruct) SetAdaptedByte

func (*AdaptTemplatedTestStruct) SetAdaptedByteDefault

func (x *AdaptTemplatedTestStruct) SetAdaptedByteDefault(value AdaptedByte) *AdaptTemplatedTestStruct

func (*AdaptTemplatedTestStruct) SetAdaptedDouble

func (*AdaptTemplatedTestStruct) SetAdaptedDoubleDefault

func (x *AdaptTemplatedTestStruct) SetAdaptedDoubleDefault(value AdaptedDouble) *AdaptTemplatedTestStruct

func (*AdaptTemplatedTestStruct) SetAdaptedEnum

func (*AdaptTemplatedTestStruct) SetAdaptedInteger

func (*AdaptTemplatedTestStruct) SetAdaptedIntegerDefault

func (x *AdaptTemplatedTestStruct) SetAdaptedIntegerDefault(value AdaptedInteger) *AdaptTemplatedTestStruct

func (*AdaptTemplatedTestStruct) SetAdaptedList

func (x *AdaptTemplatedTestStruct) SetAdaptedList(value []int64) *AdaptTemplatedTestStruct

func (*AdaptTemplatedTestStruct) SetAdaptedListDefault

func (x *AdaptTemplatedTestStruct) SetAdaptedListDefault(value []int64) *AdaptTemplatedTestStruct

func (*AdaptTemplatedTestStruct) SetAdaptedLong

func (*AdaptTemplatedTestStruct) SetAdaptedLongDefault

func (x *AdaptTemplatedTestStruct) SetAdaptedLongDefault(value AdaptedLong) *AdaptTemplatedTestStruct

func (*AdaptTemplatedTestStruct) SetAdaptedMap

func (x *AdaptTemplatedTestStruct) SetAdaptedMap(value map[int64]int64) *AdaptTemplatedTestStruct

func (*AdaptTemplatedTestStruct) SetAdaptedMapDefault

func (x *AdaptTemplatedTestStruct) SetAdaptedMapDefault(value map[int64]int64) *AdaptTemplatedTestStruct

func (*AdaptTemplatedTestStruct) SetAdaptedSet

func (x *AdaptTemplatedTestStruct) SetAdaptedSet(value []int64) *AdaptTemplatedTestStruct

func (*AdaptTemplatedTestStruct) SetAdaptedSetDefault

func (x *AdaptTemplatedTestStruct) SetAdaptedSetDefault(value []int64) *AdaptTemplatedTestStruct

func (*AdaptTemplatedTestStruct) SetAdaptedShort

func (*AdaptTemplatedTestStruct) SetAdaptedShortDefault

func (x *AdaptTemplatedTestStruct) SetAdaptedShortDefault(value AdaptedShort) *AdaptTemplatedTestStruct

func (*AdaptTemplatedTestStruct) SetAdaptedString

func (*AdaptTemplatedTestStruct) SetAdaptedStringDefault

func (x *AdaptTemplatedTestStruct) SetAdaptedStringDefault(value AdaptedString) *AdaptTemplatedTestStruct

func (*AdaptTemplatedTestStruct) SetDoubleTypedefBool

func (*AdaptTemplatedTestStruct) Write

type AdaptTemplatedTestStructBuilder deprecated

type AdaptTemplatedTestStructBuilder struct {
	// contains filtered or unexported fields
}

Deprecated: Use AdaptTemplatedTestStruct.Set* methods instead or set the fields directly.

func NewAdaptTemplatedTestStructBuilder

func NewAdaptTemplatedTestStructBuilder() *AdaptTemplatedTestStructBuilder

func (*AdaptTemplatedTestStructBuilder) AdaptedBool

func (*AdaptTemplatedTestStructBuilder) AdaptedBoolDefault

func (*AdaptTemplatedTestStructBuilder) AdaptedByte

func (*AdaptTemplatedTestStructBuilder) AdaptedByteDefault

func (*AdaptTemplatedTestStructBuilder) AdaptedDouble

func (*AdaptTemplatedTestStructBuilder) AdaptedDoubleDefault

func (*AdaptTemplatedTestStructBuilder) AdaptedEnum

func (*AdaptTemplatedTestStructBuilder) AdaptedInteger

func (*AdaptTemplatedTestStructBuilder) AdaptedIntegerDefault

func (*AdaptTemplatedTestStructBuilder) AdaptedList

func (*AdaptTemplatedTestStructBuilder) AdaptedListDefault

func (*AdaptTemplatedTestStructBuilder) AdaptedLong

func (*AdaptTemplatedTestStructBuilder) AdaptedLongDefault

func (*AdaptTemplatedTestStructBuilder) AdaptedMap

func (*AdaptTemplatedTestStructBuilder) AdaptedMapDefault

func (*AdaptTemplatedTestStructBuilder) AdaptedSet

func (*AdaptTemplatedTestStructBuilder) AdaptedSetDefault

func (*AdaptTemplatedTestStructBuilder) AdaptedShort

func (*AdaptTemplatedTestStructBuilder) AdaptedShortDefault

func (*AdaptTemplatedTestStructBuilder) AdaptedString

func (*AdaptTemplatedTestStructBuilder) AdaptedStringDefault

func (*AdaptTemplatedTestStructBuilder) DoubleTypedefBool

func (*AdaptTemplatedTestStructBuilder) Emit

type AdaptTestStruct

type AdaptTestStruct struct {
	Delay                DurationMs         `thrift:"delay,1" json:"delay" db:"delay"`
	Custom               CustomProtocolType `thrift:"custom,2" json:"custom" db:"custom"`
	Timeout              int64              `thrift:"timeout,3" json:"timeout" db:"timeout"`
	Data                 int64              `thrift:"data,4" json:"data" db:"data"`
	Meta                 string             `thrift:"meta,5" json:"meta" db:"meta"`
	IndirectionString    IndirectionString  `thrift:"indirectionString,6" json:"indirectionString" db:"indirectionString"`
	StringData           string             `thrift:"string_data,7" json:"string_data" db:"string_data"`
	DoubleWrappedBool    AdaptedBool        `thrift:"double_wrapped_bool,8" json:"double_wrapped_bool" db:"double_wrapped_bool"`
	DoubleWrappedInteger AdaptedInteger     `thrift:"double_wrapped_integer,9" json:"double_wrapped_integer" db:"double_wrapped_integer"`
	BinaryData           []byte             `thrift:"binary_data,10" json:"binary_data" db:"binary_data"`
}

func NewAdaptTestStruct

func NewAdaptTestStruct() *AdaptTestStruct

func (*AdaptTestStruct) GetBinaryData

func (x *AdaptTestStruct) GetBinaryData() []byte

func (*AdaptTestStruct) GetCustom

func (x *AdaptTestStruct) GetCustom() CustomProtocolType

func (*AdaptTestStruct) GetData

func (x *AdaptTestStruct) GetData() int64

func (*AdaptTestStruct) GetDelay

func (x *AdaptTestStruct) GetDelay() DurationMs

func (*AdaptTestStruct) GetDoubleWrappedBool

func (x *AdaptTestStruct) GetDoubleWrappedBool() AdaptedBool

func (*AdaptTestStruct) GetDoubleWrappedInteger

func (x *AdaptTestStruct) GetDoubleWrappedInteger() AdaptedInteger

func (*AdaptTestStruct) GetIndirectionString

func (x *AdaptTestStruct) GetIndirectionString() IndirectionString

func (*AdaptTestStruct) GetMeta

func (x *AdaptTestStruct) GetMeta() string

func (*AdaptTestStruct) GetStringData

func (x *AdaptTestStruct) GetStringData() string

func (*AdaptTestStruct) GetTimeout

func (x *AdaptTestStruct) GetTimeout() int64

func (*AdaptTestStruct) IsSetBinaryData

func (x *AdaptTestStruct) IsSetBinaryData() bool

func (*AdaptTestStruct) IsSetCustom

func (x *AdaptTestStruct) IsSetCustom() bool

func (*AdaptTestStruct) Read

func (x *AdaptTestStruct) Read(p thrift.Protocol) error

func (*AdaptTestStruct) SetBinaryData

func (x *AdaptTestStruct) SetBinaryData(value []byte) *AdaptTestStruct

func (*AdaptTestStruct) SetCustom

func (x *AdaptTestStruct) SetCustom(value CustomProtocolType) *AdaptTestStruct

func (*AdaptTestStruct) SetData

func (x *AdaptTestStruct) SetData(value int64) *AdaptTestStruct

func (*AdaptTestStruct) SetDelay

func (x *AdaptTestStruct) SetDelay(value DurationMs) *AdaptTestStruct

func (*AdaptTestStruct) SetDoubleWrappedBool

func (x *AdaptTestStruct) SetDoubleWrappedBool(value AdaptedBool) *AdaptTestStruct

func (*AdaptTestStruct) SetDoubleWrappedInteger

func (x *AdaptTestStruct) SetDoubleWrappedInteger(value AdaptedInteger) *AdaptTestStruct

func (*AdaptTestStruct) SetIndirectionString

func (x *AdaptTestStruct) SetIndirectionString(value IndirectionString) *AdaptTestStruct

func (*AdaptTestStruct) SetMeta

func (x *AdaptTestStruct) SetMeta(value string) *AdaptTestStruct

func (*AdaptTestStruct) SetStringData

func (x *AdaptTestStruct) SetStringData(value string) *AdaptTestStruct

func (*AdaptTestStruct) SetTimeout

func (x *AdaptTestStruct) SetTimeout(value int64) *AdaptTestStruct

func (*AdaptTestStruct) Write

func (x *AdaptTestStruct) Write(p thrift.Protocol) error

type AdaptTestStructBuilder deprecated

type AdaptTestStructBuilder struct {
	// contains filtered or unexported fields
}

Deprecated: Use AdaptTestStruct.Set* methods instead or set the fields directly.

func NewAdaptTestStructBuilder

func NewAdaptTestStructBuilder() *AdaptTestStructBuilder

func (*AdaptTestStructBuilder) BinaryData

func (x *AdaptTestStructBuilder) BinaryData(value []byte) *AdaptTestStructBuilder

func (*AdaptTestStructBuilder) Custom

func (*AdaptTestStructBuilder) Data

func (*AdaptTestStructBuilder) Delay

func (*AdaptTestStructBuilder) DoubleWrappedBool

func (x *AdaptTestStructBuilder) DoubleWrappedBool(value AdaptedBool) *AdaptTestStructBuilder

func (*AdaptTestStructBuilder) DoubleWrappedInteger

func (x *AdaptTestStructBuilder) DoubleWrappedInteger(value AdaptedInteger) *AdaptTestStructBuilder

func (*AdaptTestStructBuilder) Emit

func (*AdaptTestStructBuilder) IndirectionString

func (*AdaptTestStructBuilder) Meta

func (*AdaptTestStructBuilder) StringData

func (*AdaptTestStructBuilder) Timeout

type AdaptTestUnion

type AdaptTestUnion struct {
	Delay  *DurationMs        `thrift:"delay,1" json:"delay" db:"delay"`
	Custom CustomProtocolType `thrift:"custom,2" json:"custom" db:"custom"`
}

func NewAdaptTestUnion

func NewAdaptTestUnion() *AdaptTestUnion

func (*AdaptTestUnion) GetCustom

func (x *AdaptTestUnion) GetCustom() CustomProtocolType

func (*AdaptTestUnion) GetDelay

func (x *AdaptTestUnion) GetDelay() *DurationMs

func (*AdaptTestUnion) IsSetCustom

func (x *AdaptTestUnion) IsSetCustom() bool

func (*AdaptTestUnion) IsSetDelay

func (x *AdaptTestUnion) IsSetDelay() bool

func (*AdaptTestUnion) Read

func (x *AdaptTestUnion) Read(p thrift.Protocol) error

func (*AdaptTestUnion) SetCustom

func (x *AdaptTestUnion) SetCustom(value CustomProtocolType) *AdaptTestUnion

func (*AdaptTestUnion) SetDelay

func (x *AdaptTestUnion) SetDelay(value DurationMs) *AdaptTestUnion

func (*AdaptTestUnion) Write

func (x *AdaptTestUnion) Write(p thrift.Protocol) error

type AdaptedA

type AdaptedA = A

type AdaptedBool

type AdaptedBool = bool
const TypeAdapted AdaptedBool = true

type AdaptedByte

type AdaptedByte = byte

type AdaptedCircularAdaptee

type AdaptedCircularAdaptee = CircularAdaptee

type AdaptedDouble

type AdaptedDouble = float64

type AdaptedEnum

type AdaptedEnum = ThriftAdaptedEnum

type AdaptedInteger

type AdaptedInteger = int32

type AdaptedLong

type AdaptedLong = int64

type AdaptedShort

type AdaptedShort = int16

type AdaptedString

type AdaptedString = string

type AdaptedStruct

type AdaptedStruct struct {
	Data int64 `thrift:"data,1" json:"data" db:"data"`
}

func NewAdaptedStruct

func NewAdaptedStruct() *AdaptedStruct

func (*AdaptedStruct) GetData

func (x *AdaptedStruct) GetData() int64

func (*AdaptedStruct) Read

func (x *AdaptedStruct) Read(p thrift.Protocol) error

func (*AdaptedStruct) SetData

func (x *AdaptedStruct) SetData(value int64) *AdaptedStruct

func (*AdaptedStruct) Write

func (x *AdaptedStruct) Write(p thrift.Protocol) error

type AdaptedStructBuilder deprecated

type AdaptedStructBuilder struct {
	// contains filtered or unexported fields
}

Deprecated: Use AdaptedStruct.Set* methods instead or set the fields directly.

func NewAdaptedStructBuilder

func NewAdaptedStructBuilder() *AdaptedStructBuilder

func (*AdaptedStructBuilder) Data

func (*AdaptedStructBuilder) Emit

type AdaptedTypedef

type AdaptedTypedef = AdaptedStruct

type AdapterService

type AdapterService interface {
	Count(ctx context.Context) (*CountingStruct, error)
	AdaptedTypes(ctx context.Context, arg *HeapAllocated) (*HeapAllocated, error)
}

type AdapterServiceChannelClient

type AdapterServiceChannelClient struct {
	// contains filtered or unexported fields
}

func NewAdapterServiceChannelClient

func NewAdapterServiceChannelClient(channel thrift.RequestChannel) *AdapterServiceChannelClient

func (*AdapterServiceChannelClient) AdaptedTypes

func (*AdapterServiceChannelClient) Close

func (*AdapterServiceChannelClient) Count

func (*AdapterServiceChannelClient) IsOpen

func (c *AdapterServiceChannelClient) IsOpen() bool

func (*AdapterServiceChannelClient) Open

type AdapterServiceClient deprecated

type AdapterServiceClient struct {
	// contains filtered or unexported fields
}

Deprecated: Use AdapterServiceChannelClient instead.

func NewAdapterServiceClient deprecated

func NewAdapterServiceClient(t thrift.Transport, iprot thrift.Protocol, oprot thrift.Protocol) *AdapterServiceClient

Deprecated: Use NewAdapterServiceChannelClient() instead.

func NewAdapterServiceClientFactory deprecated

func NewAdapterServiceClientFactory(t thrift.Transport, pf thrift.ProtocolFactory) *AdapterServiceClient

Deprecated: Use NewAdapterServiceChannelClient() instead.

func NewAdapterServiceClientProtocol deprecated

func NewAdapterServiceClientProtocol(prot thrift.Protocol) *AdapterServiceClient

Deprecated: Use NewAdapterServiceChannelClient() instead.

func NewAdapterServiceThreadsafeClientProtocol deprecated

func NewAdapterServiceThreadsafeClientProtocol(prot thrift.Protocol) *AdapterServiceClient

Deprecated: Use NewAdapterServiceChannelClient() instead.

func (*AdapterServiceClient) AdaptedTypes

func (c *AdapterServiceClient) AdaptedTypes(arg *HeapAllocated) (*HeapAllocated, error)

func (*AdapterServiceClient) Close

func (c *AdapterServiceClient) Close() error

func (*AdapterServiceClient) Count

func (c *AdapterServiceClient) Count() (*CountingStruct, error)

func (*AdapterServiceClient) IsOpen

func (c *AdapterServiceClient) IsOpen() bool

func (*AdapterServiceClient) Open

func (c *AdapterServiceClient) Open() error

type AdapterServiceClientInterface deprecated

type AdapterServiceClientInterface interface {
	thrift.ClientInterface
	Count() (*CountingStruct, error)
	AdaptedTypes(arg *HeapAllocated) (*HeapAllocated, error)
}

Deprecated: Use AdapterService instead.

type AdapterServiceProcessor

type AdapterServiceProcessor struct {
	// contains filtered or unexported fields
}

func NewAdapterServiceProcessor

func NewAdapterServiceProcessor(handler AdapterService) *AdapterServiceProcessor

func (*AdapterServiceProcessor) AddToFunctionServiceMap

func (p *AdapterServiceProcessor) AddToFunctionServiceMap(key, service string)

func (*AdapterServiceProcessor) AddToProcessorMap

func (p *AdapterServiceProcessor) AddToProcessorMap(key string, processor thrift.ProcessorFunction)

func (*AdapterServiceProcessor) FunctionServiceMap

func (p *AdapterServiceProcessor) FunctionServiceMap() map[string]string

func (*AdapterServiceProcessor) GetProcessorFunction

func (p *AdapterServiceProcessor) GetProcessorFunction(key string) (processor thrift.ProcessorFunction, err error)

func (*AdapterServiceProcessor) ProcessorMap

type AdapterServiceThreadsafeClient deprecated

type AdapterServiceThreadsafeClient = AdapterServiceClient

Deprecated: Use AdapterServiceChannelClient instead.

func NewAdapterServiceThreadsafeClient deprecated

func NewAdapterServiceThreadsafeClient(t thrift.Transport, iprot thrift.Protocol, oprot thrift.Protocol) *AdapterServiceThreadsafeClient

Deprecated: Use NewAdapterServiceChannelClient() instead.

func NewAdapterServiceThreadsafeClientFactory deprecated

func NewAdapterServiceThreadsafeClientFactory(t thrift.Transport, pf thrift.ProtocolFactory) *AdapterServiceThreadsafeClient

Deprecated: Use NewAdapterServiceChannelClient() instead.

type AlsoMoveOnly

type AlsoMoveOnly struct {
	Ptr int64 `thrift:"ptr,1" json:"ptr" db:"ptr"`
}

func NewAlsoMoveOnly

func NewAlsoMoveOnly() *AlsoMoveOnly

func (*AlsoMoveOnly) GetPtr

func (x *AlsoMoveOnly) GetPtr() int64

func (*AlsoMoveOnly) Read

func (x *AlsoMoveOnly) Read(p thrift.Protocol) error

func (*AlsoMoveOnly) SetPtr

func (x *AlsoMoveOnly) SetPtr(value int64) *AlsoMoveOnly

func (*AlsoMoveOnly) Write

func (x *AlsoMoveOnly) Write(p thrift.Protocol) error

type AlsoMoveOnlyBuilder deprecated

type AlsoMoveOnlyBuilder struct {
	// contains filtered or unexported fields
}

Deprecated: Use AlsoMoveOnly.Set* methods instead or set the fields directly.

func NewAlsoMoveOnlyBuilder

func NewAlsoMoveOnlyBuilder() *AlsoMoveOnlyBuilder

func (*AlsoMoveOnlyBuilder) Emit

func (x *AlsoMoveOnlyBuilder) Emit() *AlsoMoveOnly

func (*AlsoMoveOnlyBuilder) Ptr

type ApplyAdapter

type ApplyAdapter struct {
}

func NewApplyAdapter

func NewApplyAdapter() *ApplyAdapter

func (*ApplyAdapter) Read

func (x *ApplyAdapter) Read(p thrift.Protocol) error

func (*ApplyAdapter) Write

func (x *ApplyAdapter) Write(p thrift.Protocol) error

type ApplyAdapterBuilder deprecated

type ApplyAdapterBuilder struct {
	// contains filtered or unexported fields
}

Deprecated: Use ApplyAdapter.Set* methods instead or set the fields directly.

func NewApplyAdapterBuilder

func NewApplyAdapterBuilder() *ApplyAdapterBuilder

func (*ApplyAdapterBuilder) Emit

func (x *ApplyAdapterBuilder) Emit() *ApplyAdapter

type B

type B struct {
	A *AdaptedA `thrift:"a,1" json:"a" db:"a"`
}

func NewB

func NewB() *B

func (*B) GetA

func (x *B) GetA() *AdaptedA

func (*B) IsSetA

func (x *B) IsSetA() bool

func (*B) Read

func (x *B) Read(p thrift.Protocol) error

func (*B) SetA

func (x *B) SetA(value AdaptedA) *B

func (*B) Write

func (x *B) Write(p thrift.Protocol) error

type BBuilder deprecated

type BBuilder struct {
	// contains filtered or unexported fields
}

Deprecated: Use B.Set* methods instead or set the fields directly.

func NewBBuilder

func NewBBuilder() *BBuilder

func (*BBuilder) A

func (x *BBuilder) A(value *AdaptedA) *BBuilder

func (*BBuilder) Emit

func (x *BBuilder) Emit() *B

type Bar

type Bar struct {
	StructField             *Foo              `thrift:"structField,1" json:"structField" db:"structField"`
	OptionalStructField     *Foo              `thrift:"optionalStructField,2,optional" json:"optionalStructField,omitempty" db:"optionalStructField"`
	StructListField         []*FooWithAdapter `thrift:"structListField,3" json:"structListField" db:"structListField"`
	OptionalStructListField []*FooWithAdapter `thrift:"optionalStructListField,4,optional" json:"optionalStructListField,omitempty" db:"optionalStructListField"`
	UnionField              *Baz              `thrift:"unionField,5" json:"unionField" db:"unionField"`
	OptionalUnionField      *Baz              `thrift:"optionalUnionField,6,optional" json:"optionalUnionField,omitempty" db:"optionalUnionField"`
	AdaptedStructField      *DirectlyAdapted  `thrift:"adaptedStructField,7" json:"adaptedStructField" db:"adaptedStructField"`
}

func NewBar

func NewBar() *Bar

func (*Bar) GetAdaptedStructField

func (x *Bar) GetAdaptedStructField() *DirectlyAdapted

func (*Bar) GetOptionalStructField

func (x *Bar) GetOptionalStructField() *Foo

func (*Bar) GetOptionalStructListField

func (x *Bar) GetOptionalStructListField() []*FooWithAdapter

func (*Bar) GetOptionalUnionField

func (x *Bar) GetOptionalUnionField() *Baz

func (*Bar) GetStructField

func (x *Bar) GetStructField() *Foo

func (*Bar) GetStructListField

func (x *Bar) GetStructListField() []*FooWithAdapter

func (*Bar) GetUnionField

func (x *Bar) GetUnionField() *Baz

func (*Bar) IsSetAdaptedStructField

func (x *Bar) IsSetAdaptedStructField() bool

func (*Bar) IsSetOptionalStructField

func (x *Bar) IsSetOptionalStructField() bool

func (*Bar) IsSetOptionalStructListField

func (x *Bar) IsSetOptionalStructListField() bool

func (*Bar) IsSetOptionalUnionField

func (x *Bar) IsSetOptionalUnionField() bool

func (*Bar) IsSetStructField

func (x *Bar) IsSetStructField() bool

func (*Bar) IsSetStructListField

func (x *Bar) IsSetStructListField() bool

func (*Bar) IsSetUnionField

func (x *Bar) IsSetUnionField() bool

func (*Bar) Read

func (x *Bar) Read(p thrift.Protocol) error

func (*Bar) SetAdaptedStructField

func (x *Bar) SetAdaptedStructField(value DirectlyAdapted) *Bar

func (*Bar) SetOptionalStructField

func (x *Bar) SetOptionalStructField(value Foo) *Bar

func (*Bar) SetOptionalStructListField

func (x *Bar) SetOptionalStructListField(value []*FooWithAdapter) *Bar

func (*Bar) SetOptionalUnionField

func (x *Bar) SetOptionalUnionField(value Baz) *Bar

func (*Bar) SetStructField

func (x *Bar) SetStructField(value Foo) *Bar

func (*Bar) SetStructListField

func (x *Bar) SetStructListField(value []*FooWithAdapter) *Bar

func (*Bar) SetUnionField

func (x *Bar) SetUnionField(value Baz) *Bar

func (*Bar) Write

func (x *Bar) Write(p thrift.Protocol) error

type BarBuilder deprecated

type BarBuilder struct {
	// contains filtered or unexported fields
}

Deprecated: Use Bar.Set* methods instead or set the fields directly.

func NewBarBuilder

func NewBarBuilder() *BarBuilder

func (*BarBuilder) AdaptedStructField

func (x *BarBuilder) AdaptedStructField(value *DirectlyAdapted) *BarBuilder

func (*BarBuilder) Emit

func (x *BarBuilder) Emit() *Bar

func (*BarBuilder) OptionalStructField

func (x *BarBuilder) OptionalStructField(value *Foo) *BarBuilder

func (*BarBuilder) OptionalStructListField

func (x *BarBuilder) OptionalStructListField(value []*FooWithAdapter) *BarBuilder

func (*BarBuilder) OptionalUnionField

func (x *BarBuilder) OptionalUnionField(value *Baz) *BarBuilder

func (*BarBuilder) StructField

func (x *BarBuilder) StructField(value *Foo) *BarBuilder

func (*BarBuilder) StructListField

func (x *BarBuilder) StructListField(value []*FooWithAdapter) *BarBuilder

func (*BarBuilder) UnionField

func (x *BarBuilder) UnionField(value *Baz) *BarBuilder

type Baz

type Baz struct {
	IntField    *int32                                    `thrift:"intField,1" json:"intField" db:"intField"`
	SetField    SetWithAdapter                            `thrift:"setField,4" json:"setField" db:"setField"`
	MapField    map[string]ListWithElemAdapterWithAdapter `thrift:"mapField,6" json:"mapField" db:"mapField"`
	BinaryField []byte                                    `thrift:"binaryField,8" json:"binaryField" db:"binaryField"`
	LongField   *MyI64                                    `thrift:"longField,9" json:"longField" db:"longField"`
}

func NewBaz

func NewBaz() *Baz

func (*Baz) GetBinaryField

func (x *Baz) GetBinaryField() []byte

func (*Baz) GetIntField

func (x *Baz) GetIntField() *int32

func (*Baz) GetLongField

func (x *Baz) GetLongField() *MyI64

func (*Baz) GetMapField

func (x *Baz) GetMapField() map[string]ListWithElemAdapterWithAdapter

func (*Baz) GetSetField

func (x *Baz) GetSetField() SetWithAdapter

func (*Baz) IsSetBinaryField

func (x *Baz) IsSetBinaryField() bool

func (*Baz) IsSetIntField

func (x *Baz) IsSetIntField() bool

func (*Baz) IsSetLongField

func (x *Baz) IsSetLongField() bool

func (*Baz) IsSetMapField

func (x *Baz) IsSetMapField() bool

func (*Baz) IsSetSetField

func (x *Baz) IsSetSetField() bool

func (*Baz) Read

func (x *Baz) Read(p thrift.Protocol) error

func (*Baz) SetBinaryField

func (x *Baz) SetBinaryField(value []byte) *Baz

func (*Baz) SetIntField

func (x *Baz) SetIntField(value int32) *Baz

func (*Baz) SetLongField

func (x *Baz) SetLongField(value MyI64) *Baz

func (*Baz) SetMapField

func (x *Baz) SetMapField(value map[string]ListWithElemAdapterWithAdapter) *Baz

func (*Baz) SetSetField

func (x *Baz) SetSetField(value SetWithAdapter) *Baz

func (*Baz) Write

func (x *Baz) Write(p thrift.Protocol) error

type CircularAdaptee

type CircularAdaptee struct {
	Field *CircularStruct `thrift:"field,1" json:"field" db:"field"`
}

func NewCircularAdaptee

func NewCircularAdaptee() *CircularAdaptee

func (*CircularAdaptee) GetField

func (x *CircularAdaptee) GetField() *CircularStruct

func (*CircularAdaptee) IsSetField

func (x *CircularAdaptee) IsSetField() bool

func (*CircularAdaptee) Read

func (x *CircularAdaptee) Read(p thrift.Protocol) error

func (*CircularAdaptee) SetField

func (x *CircularAdaptee) SetField(value CircularStruct) *CircularAdaptee

func (*CircularAdaptee) Write

func (x *CircularAdaptee) Write(p thrift.Protocol) error

type CircularAdapteeBuilder deprecated

type CircularAdapteeBuilder struct {
	// contains filtered or unexported fields
}

Deprecated: Use CircularAdaptee.Set* methods instead or set the fields directly.

func NewCircularAdapteeBuilder

func NewCircularAdapteeBuilder() *CircularAdapteeBuilder

func (*CircularAdapteeBuilder) Emit

func (*CircularAdapteeBuilder) Field

type CircularStruct

type CircularStruct struct {
	Field *AdaptedCircularAdaptee `thrift:"field,1,optional" json:"field,omitempty" db:"field"`
}

func NewCircularStruct

func NewCircularStruct() *CircularStruct

func (*CircularStruct) GetField

func (x *CircularStruct) GetField() *AdaptedCircularAdaptee

func (*CircularStruct) IsSetField

func (x *CircularStruct) IsSetField() bool

func (*CircularStruct) Read

func (x *CircularStruct) Read(p thrift.Protocol) error

func (*CircularStruct) SetField

func (*CircularStruct) Write

func (x *CircularStruct) Write(p thrift.Protocol) error

type CircularStructBuilder deprecated

type CircularStructBuilder struct {
	// contains filtered or unexported fields
}

Deprecated: Use CircularStruct.Set* methods instead or set the fields directly.

func NewCircularStructBuilder

func NewCircularStructBuilder() *CircularStructBuilder

func (*CircularStructBuilder) Emit

func (*CircularStructBuilder) Field

type Color

type Color int32
const (
	Color_UNKNOWN Color = 0
	Color_RED     Color = 1
	Color_GREEN   Color = 2
	Color_BLUE    Color = 3
)

func ColorFromString deprecated

func ColorFromString(s string) (Color, error)

Deprecated: Use Color_value instead (e.g. `x, ok := Color_value["name"]`).

func ColorPtr deprecated

func ColorPtr(v Color) *Color

Deprecated: Use Color.Ptr() instead.

func (Color) Ptr

func (x Color) Ptr() *Color

func (Color) String

func (x Color) String() string

type Config

type Config struct {
	Path string `thrift:"path,1" json:"path" db:"path"`
}

func NewConfig

func NewConfig() *Config

func (*Config) GetPath

func (x *Config) GetPath() string

func (*Config) Read

func (x *Config) Read(p thrift.Protocol) error

func (*Config) SetPath

func (x *Config) SetPath(value string) *Config

func (*Config) Write

func (x *Config) Write(p thrift.Protocol) error

type ConfigBuilder deprecated

type ConfigBuilder struct {
	// contains filtered or unexported fields
}

Deprecated: Use Config.Set* methods instead or set the fields directly.

func NewConfigBuilder

func NewConfigBuilder() *ConfigBuilder

func (*ConfigBuilder) Emit

func (x *ConfigBuilder) Emit() *Config

func (*ConfigBuilder) Path

func (x *ConfigBuilder) Path(value string) *ConfigBuilder

type CountingInt

type CountingInt = int64

type CountingStruct

type CountingStruct struct {
	RegularInt    *int64       `thrift:"regularInt,1,optional" json:"regularInt,omitempty" db:"regularInt"`
	CountingInt   *CountingInt `thrift:"countingInt,2,optional" json:"countingInt,omitempty" db:"countingInt"`
	RegularString *string      `thrift:"regularString,3,optional" json:"regularString,omitempty" db:"regularString"`
}

func NewCountingStruct

func NewCountingStruct() *CountingStruct

func (*CountingStruct) GetCountingInt

func (x *CountingStruct) GetCountingInt() *CountingInt

func (*CountingStruct) GetRegularInt

func (x *CountingStruct) GetRegularInt() *int64

func (*CountingStruct) GetRegularString

func (x *CountingStruct) GetRegularString() *string

func (*CountingStruct) IsSetCountingInt

func (x *CountingStruct) IsSetCountingInt() bool

func (*CountingStruct) IsSetRegularInt

func (x *CountingStruct) IsSetRegularInt() bool

func (*CountingStruct) IsSetRegularString

func (x *CountingStruct) IsSetRegularString() bool

func (*CountingStruct) Read

func (x *CountingStruct) Read(p thrift.Protocol) error

func (*CountingStruct) SetCountingInt

func (x *CountingStruct) SetCountingInt(value CountingInt) *CountingStruct

func (*CountingStruct) SetRegularInt

func (x *CountingStruct) SetRegularInt(value int64) *CountingStruct

func (*CountingStruct) SetRegularString

func (x *CountingStruct) SetRegularString(value string) *CountingStruct

func (*CountingStruct) Write

func (x *CountingStruct) Write(p thrift.Protocol) error

type CountingStructBuilder deprecated

type CountingStructBuilder struct {
	// contains filtered or unexported fields
}

Deprecated: Use CountingStruct.Set* methods instead or set the fields directly.

func NewCountingStructBuilder

func NewCountingStructBuilder() *CountingStructBuilder

func (*CountingStructBuilder) CountingInt

func (*CountingStructBuilder) Emit

func (*CountingStructBuilder) RegularInt

func (x *CountingStructBuilder) RegularInt(value *int64) *CountingStructBuilder

func (*CountingStructBuilder) RegularString

func (x *CountingStructBuilder) RegularString(value *string) *CountingStructBuilder

type CustomProtocolType

type CustomProtocolType = []byte

type DeclaredAfterStruct

type DeclaredAfterStruct struct {
}

func NewDeclaredAfterStruct

func NewDeclaredAfterStruct() *DeclaredAfterStruct

func (*DeclaredAfterStruct) Read

func (*DeclaredAfterStruct) Write

type DeclaredAfterStructBuilder deprecated

type DeclaredAfterStructBuilder struct {
	// contains filtered or unexported fields
}

Deprecated: Use DeclaredAfterStruct.Set* methods instead or set the fields directly.

func NewDeclaredAfterStructBuilder

func NewDeclaredAfterStructBuilder() *DeclaredAfterStructBuilder

func (*DeclaredAfterStructBuilder) Emit

type DirectlyAdapted

type DirectlyAdapted struct {
	Field int32 `thrift:"field,1" json:"field" db:"field"`
}

func NewDirectlyAdapted

func NewDirectlyAdapted() *DirectlyAdapted

func (*DirectlyAdapted) GetField

func (x *DirectlyAdapted) GetField() int32

func (*DirectlyAdapted) Read

func (x *DirectlyAdapted) Read(p thrift.Protocol) error

func (*DirectlyAdapted) SetField

func (x *DirectlyAdapted) SetField(value int32) *DirectlyAdapted

func (*DirectlyAdapted) Write

func (x *DirectlyAdapted) Write(p thrift.Protocol) error

type DirectlyAdaptedBuilder deprecated

type DirectlyAdaptedBuilder struct {
	// contains filtered or unexported fields
}

Deprecated: Use DirectlyAdapted.Set* methods instead or set the fields directly.

func NewDirectlyAdaptedBuilder

func NewDirectlyAdaptedBuilder() *DirectlyAdaptedBuilder

func (*DirectlyAdaptedBuilder) Emit

func (*DirectlyAdaptedBuilder) Field

type DirectlyAdaptedStruct

type DirectlyAdaptedStruct struct {
	Data int64 `thrift:"data,1" json:"data" db:"data"`
}

func NewDirectlyAdaptedStruct

func NewDirectlyAdaptedStruct() *DirectlyAdaptedStruct

func (*DirectlyAdaptedStruct) GetData

func (x *DirectlyAdaptedStruct) GetData() int64

func (*DirectlyAdaptedStruct) Read

func (*DirectlyAdaptedStruct) SetData

func (*DirectlyAdaptedStruct) Write

type DirectlyAdaptedStructBuilder deprecated

type DirectlyAdaptedStructBuilder struct {
	// contains filtered or unexported fields
}

Deprecated: Use DirectlyAdaptedStruct.Set* methods instead or set the fields directly.

func NewDirectlyAdaptedStructBuilder

func NewDirectlyAdaptedStructBuilder() *DirectlyAdaptedStructBuilder

func (*DirectlyAdaptedStructBuilder) Data

func (*DirectlyAdaptedStructBuilder) Emit

type DoubleTypedefBool

type DoubleTypedefBool = AdaptedBool

type DoubleTypedefI64

type DoubleTypedefI64 = MyI64

type DurationMs

type DurationMs = int64

type Foo

type Foo struct {
	IntField            int32                                     `thrift:"intField,1" json:"intField" db:"intField"`
	OptionalIntField    *int32                                    `thrift:"optionalIntField,2,optional" json:"optionalIntField,omitempty" db:"optionalIntField"`
	IntFieldWithDefault int32                                     `thrift:"intFieldWithDefault,3" json:"intFieldWithDefault" db:"intFieldWithDefault"`
	SetField            SetWithAdapter                            `thrift:"setField,4" json:"setField" db:"setField"`
	OptionalSetField    SetWithAdapter                            `thrift:"optionalSetField,5,optional" json:"optionalSetField,omitempty" db:"optionalSetField"`
	MapField            map[string]ListWithElemAdapterWithAdapter `thrift:"mapField,6" json:"mapField" db:"mapField"`
	OptionalMapField    map[string]ListWithElemAdapterWithAdapter `thrift:"optionalMapField,7,optional" json:"optionalMapField,omitempty" db:"optionalMapField"`
	BinaryField         []byte                                    `thrift:"binaryField,8" json:"binaryField" db:"binaryField"`
	LongField           MyI64                                     `thrift:"longField,9" json:"longField" db:"longField"`
	AdaptedLongField    MyI64                                     `thrift:"adaptedLongField,10" json:"adaptedLongField" db:"adaptedLongField"`
	DoubleAdaptedField  DoubleTypedefI64                          `thrift:"doubleAdaptedField,11" json:"doubleAdaptedField" db:"doubleAdaptedField"`
}

func NewFoo

func NewFoo() *Foo

func (*Foo) GetAdaptedLongField

func (x *Foo) GetAdaptedLongField() MyI64

func (*Foo) GetBinaryField

func (x *Foo) GetBinaryField() []byte

func (*Foo) GetDoubleAdaptedField

func (x *Foo) GetDoubleAdaptedField() DoubleTypedefI64

func (*Foo) GetIntField

func (x *Foo) GetIntField() int32

func (*Foo) GetIntFieldWithDefault

func (x *Foo) GetIntFieldWithDefault() int32

func (*Foo) GetLongField

func (x *Foo) GetLongField() MyI64

func (*Foo) GetMapField

func (x *Foo) GetMapField() map[string]ListWithElemAdapterWithAdapter

func (*Foo) GetOptionalIntField

func (x *Foo) GetOptionalIntField() *int32

func (*Foo) GetOptionalMapField

func (x *Foo) GetOptionalMapField() map[string]ListWithElemAdapterWithAdapter

func (*Foo) GetOptionalSetField

func (x *Foo) GetOptionalSetField() SetWithAdapter

func (*Foo) GetSetField

func (x *Foo) GetSetField() SetWithAdapter

func (*Foo) IsSetBinaryField

func (x *Foo) IsSetBinaryField() bool

func (*Foo) IsSetMapField

func (x *Foo) IsSetMapField() bool

func (*Foo) IsSetOptionalIntField

func (x *Foo) IsSetOptionalIntField() bool

func (*Foo) IsSetOptionalMapField

func (x *Foo) IsSetOptionalMapField() bool

func (*Foo) IsSetOptionalSetField

func (x *Foo) IsSetOptionalSetField() bool

func (*Foo) IsSetSetField

func (x *Foo) IsSetSetField() bool

func (*Foo) Read

func (x *Foo) Read(p thrift.Protocol) error

func (*Foo) SetAdaptedLongField

func (x *Foo) SetAdaptedLongField(value MyI64) *Foo

func (*Foo) SetBinaryField

func (x *Foo) SetBinaryField(value []byte) *Foo

func (*Foo) SetDoubleAdaptedField

func (x *Foo) SetDoubleAdaptedField(value DoubleTypedefI64) *Foo

func (*Foo) SetIntField

func (x *Foo) SetIntField(value int32) *Foo

func (*Foo) SetIntFieldWithDefault

func (x *Foo) SetIntFieldWithDefault(value int32) *Foo

func (*Foo) SetLongField

func (x *Foo) SetLongField(value MyI64) *Foo

func (*Foo) SetMapField

func (x *Foo) SetMapField(value map[string]ListWithElemAdapterWithAdapter) *Foo

func (*Foo) SetOptionalIntField

func (x *Foo) SetOptionalIntField(value int32) *Foo

func (*Foo) SetOptionalMapField

func (x *Foo) SetOptionalMapField(value map[string]ListWithElemAdapterWithAdapter) *Foo

func (*Foo) SetOptionalSetField

func (x *Foo) SetOptionalSetField(value SetWithAdapter) *Foo

func (*Foo) SetSetField

func (x *Foo) SetSetField(value SetWithAdapter) *Foo

func (*Foo) Write

func (x *Foo) Write(p thrift.Protocol) error

type FooBuilder deprecated

type FooBuilder struct {
	// contains filtered or unexported fields
}

Deprecated: Use Foo.Set* methods instead or set the fields directly.

func NewFooBuilder

func NewFooBuilder() *FooBuilder

func (*FooBuilder) AdaptedLongField

func (x *FooBuilder) AdaptedLongField(value MyI64) *FooBuilder

func (*FooBuilder) BinaryField

func (x *FooBuilder) BinaryField(value []byte) *FooBuilder

func (*FooBuilder) DoubleAdaptedField

func (x *FooBuilder) DoubleAdaptedField(value DoubleTypedefI64) *FooBuilder

func (*FooBuilder) Emit

func (x *FooBuilder) Emit() *Foo

func (*FooBuilder) IntField

func (x *FooBuilder) IntField(value int32) *FooBuilder

func (*FooBuilder) IntFieldWithDefault

func (x *FooBuilder) IntFieldWithDefault(value int32) *FooBuilder

func (*FooBuilder) LongField

func (x *FooBuilder) LongField(value MyI64) *FooBuilder

func (*FooBuilder) MapField

func (*FooBuilder) OptionalIntField

func (x *FooBuilder) OptionalIntField(value *int32) *FooBuilder

func (*FooBuilder) OptionalMapField

func (x *FooBuilder) OptionalMapField(value map[string]ListWithElemAdapterWithAdapter) *FooBuilder

func (*FooBuilder) OptionalSetField

func (x *FooBuilder) OptionalSetField(value SetWithAdapter) *FooBuilder

func (*FooBuilder) SetField

func (x *FooBuilder) SetField(value SetWithAdapter) *FooBuilder

type FooWithAdapter

type FooWithAdapter = Foo

type HeapAllocated

type HeapAllocated struct {
}

func NewHeapAllocated

func NewHeapAllocated() *HeapAllocated

func (*HeapAllocated) Read

func (x *HeapAllocated) Read(p thrift.Protocol) error

func (*HeapAllocated) Write

func (x *HeapAllocated) Write(p thrift.Protocol) error

type HeapAllocatedBuilder deprecated

type HeapAllocatedBuilder struct {
	// contains filtered or unexported fields
}

Deprecated: Use HeapAllocated.Set* methods instead or set the fields directly.

func NewHeapAllocatedBuilder

func NewHeapAllocatedBuilder() *HeapAllocatedBuilder

func (*HeapAllocatedBuilder) Emit

type IndependentDirectlyAdapted

type IndependentDirectlyAdapted struct {
	Field int32 `thrift:"field,1" json:"field" db:"field"`
}

func NewIndependentDirectlyAdapted

func NewIndependentDirectlyAdapted() *IndependentDirectlyAdapted

func (*IndependentDirectlyAdapted) GetField

func (x *IndependentDirectlyAdapted) GetField() int32

func (*IndependentDirectlyAdapted) Read

func (*IndependentDirectlyAdapted) SetField

func (*IndependentDirectlyAdapted) Write

type IndependentDirectlyAdaptedBuilder deprecated

type IndependentDirectlyAdaptedBuilder struct {
	// contains filtered or unexported fields
}

Deprecated: Use IndependentDirectlyAdapted.Set* methods instead or set the fields directly.

func NewIndependentDirectlyAdaptedBuilder

func NewIndependentDirectlyAdaptedBuilder() *IndependentDirectlyAdaptedBuilder

func (*IndependentDirectlyAdaptedBuilder) Emit

func (*IndependentDirectlyAdaptedBuilder) Field

type IndirectionString

type IndirectionString = string

type ListWithElemAdapter

type ListWithElemAdapter = []StringWithAdapter

type ListWithElemAdapterWithAdapter

type ListWithElemAdapterWithAdapter = ListWithElemAdapter

type MoveOnly

type MoveOnly struct {
	Ptr *HeapAllocated `thrift:"ptr,1" json:"ptr" db:"ptr"`
}
var NestedAdapted MoveOnly = *NewMoveOnly().
	SetPtr(
		*NewHeapAllocated(),
	)

func NewMoveOnly

func NewMoveOnly() *MoveOnly

func (*MoveOnly) GetPtr

func (x *MoveOnly) GetPtr() *HeapAllocated

func (*MoveOnly) IsSetPtr

func (x *MoveOnly) IsSetPtr() bool

func (*MoveOnly) Read

func (x *MoveOnly) Read(p thrift.Protocol) error

func (*MoveOnly) SetPtr

func (x *MoveOnly) SetPtr(value HeapAllocated) *MoveOnly

func (*MoveOnly) Write

func (x *MoveOnly) Write(p thrift.Protocol) error

type MoveOnlyBuilder deprecated

type MoveOnlyBuilder struct {
	// contains filtered or unexported fields
}

Deprecated: Use MoveOnly.Set* methods instead or set the fields directly.

func NewMoveOnlyBuilder

func NewMoveOnlyBuilder() *MoveOnlyBuilder

func (*MoveOnlyBuilder) Emit

func (x *MoveOnlyBuilder) Emit() *MoveOnly

func (*MoveOnlyBuilder) Ptr

type MyAnnotation

type MyAnnotation struct {
	Signature string `thrift:"signature,1" json:"signature" db:"signature"`
	Color     Color  `thrift:"color,2" json:"color" db:"color"`
}

func NewMyAnnotation

func NewMyAnnotation() *MyAnnotation

func (*MyAnnotation) GetColor

func (x *MyAnnotation) GetColor() Color

func (*MyAnnotation) GetSignature

func (x *MyAnnotation) GetSignature() string

func (*MyAnnotation) Read

func (x *MyAnnotation) Read(p thrift.Protocol) error

func (*MyAnnotation) SetColor

func (x *MyAnnotation) SetColor(value Color) *MyAnnotation

func (*MyAnnotation) SetSignature

func (x *MyAnnotation) SetSignature(value string) *MyAnnotation

func (*MyAnnotation) Write

func (x *MyAnnotation) Write(p thrift.Protocol) error

type MyAnnotationBuilder deprecated

type MyAnnotationBuilder struct {
	// contains filtered or unexported fields
}

Deprecated: Use MyAnnotation.Set* methods instead or set the fields directly.

func NewMyAnnotationBuilder

func NewMyAnnotationBuilder() *MyAnnotationBuilder

func (*MyAnnotationBuilder) Color

func (*MyAnnotationBuilder) Emit

func (x *MyAnnotationBuilder) Emit() *MyAnnotation

func (*MyAnnotationBuilder) Signature

func (x *MyAnnotationBuilder) Signature(value string) *MyAnnotationBuilder

type MyI32

type MyI32 = int32

type MyI64

type MyI64 = int64

type MyStruct

type MyStruct struct {
	Field     int32          `thrift:"field,1" json:"field" db:"field"`
	SetString SetWithAdapter `thrift:"set_string,2" json:"set_string" db:"set_string"`
}
var Var3 MyStruct = *NewMyStruct().
	SetField(30).
	SetSetString(
		[]string{
			"10",
			"20",
		},
	)
var Var6 MyStruct = *NewMyStruct().
	SetField(60).
	SetSetString(
		[]string{
			"30",
			"40",
		},
	)

func NewMyStruct

func NewMyStruct() *MyStruct

func (*MyStruct) GetField

func (x *MyStruct) GetField() int32

func (*MyStruct) GetSetString

func (x *MyStruct) GetSetString() SetWithAdapter

func (*MyStruct) IsSetSetString

func (x *MyStruct) IsSetSetString() bool

func (*MyStruct) Read

func (x *MyStruct) Read(p thrift.Protocol) error

func (*MyStruct) SetField

func (x *MyStruct) SetField(value int32) *MyStruct

func (*MyStruct) SetSetString

func (x *MyStruct) SetSetString(value SetWithAdapter) *MyStruct

func (*MyStruct) Write

func (x *MyStruct) Write(p thrift.Protocol) error

type MyStructBuilder deprecated

type MyStructBuilder struct {
	// contains filtered or unexported fields
}

Deprecated: Use MyStruct.Set* methods instead or set the fields directly.

func NewMyStructBuilder

func NewMyStructBuilder() *MyStructBuilder

func (*MyStructBuilder) Emit

func (x *MyStructBuilder) Emit() *MyStruct

func (*MyStructBuilder) Field

func (x *MyStructBuilder) Field(value int32) *MyStructBuilder

func (*MyStructBuilder) SetString

func (x *MyStructBuilder) SetString(value SetWithAdapter) *MyStructBuilder

type Person

type Person struct {
	Name string `thrift:"name,1" json:"name" db:"name"`
}

func NewPerson

func NewPerson() *Person

func (*Person) GetName

func (x *Person) GetName() string

func (*Person) Read

func (x *Person) Read(p thrift.Protocol) error

func (*Person) SetName

func (x *Person) SetName(value string) *Person

func (*Person) Write

func (x *Person) Write(p thrift.Protocol) error

type Person2

type Person2 struct {
	Name string `thrift:"name,1" json:"name" db:"name"`
}
var Person Person2 = *NewPerson2().
	SetName("DefaultName")
var PersonNoTransitive Person2 = *NewPerson2().
	SetName("DefaultName 2")

func NewPerson2

func NewPerson2() *Person2

func (*Person2) GetName

func (x *Person2) GetName() string

func (*Person2) Read

func (x *Person2) Read(p thrift.Protocol) error

func (*Person2) SetName

func (x *Person2) SetName(value string) *Person2

func (*Person2) Write

func (x *Person2) Write(p thrift.Protocol) error

type Person2Builder deprecated

type Person2Builder struct {
	// contains filtered or unexported fields
}

Deprecated: Use Person2.Set* methods instead or set the fields directly.

func NewPerson2Builder

func NewPerson2Builder() *Person2Builder

func (*Person2Builder) Emit

func (x *Person2Builder) Emit() *Person2

func (*Person2Builder) Name

func (x *Person2Builder) Name(value string) *Person2Builder

type PersonBuilder deprecated

type PersonBuilder struct {
	// contains filtered or unexported fields
}

Deprecated: Use Person.Set* methods instead or set the fields directly.

func NewPersonBuilder

func NewPersonBuilder() *PersonBuilder

func (*PersonBuilder) Emit

func (x *PersonBuilder) Emit() *Person

func (*PersonBuilder) Name

func (x *PersonBuilder) Name(value string) *PersonBuilder

type RenamedStruct

type RenamedStruct struct {
	Data int64 `thrift:"data,1" json:"data" db:"data"`
}

func NewRenamedStruct

func NewRenamedStruct() *RenamedStruct

func (*RenamedStruct) GetData

func (x *RenamedStruct) GetData() int64

func (*RenamedStruct) Read

func (x *RenamedStruct) Read(p thrift.Protocol) error

func (*RenamedStruct) SetData

func (x *RenamedStruct) SetData(value int64) *RenamedStruct

func (*RenamedStruct) Write

func (x *RenamedStruct) Write(p thrift.Protocol) error

type RenamedStructBuilder deprecated

type RenamedStructBuilder struct {
	// contains filtered or unexported fields
}

Deprecated: Use RenamedStruct.Set* methods instead or set the fields directly.

func NewRenamedStructBuilder

func NewRenamedStructBuilder() *RenamedStructBuilder

func (*RenamedStructBuilder) Data

func (*RenamedStructBuilder) Emit

type ReorderedStruct

type ReorderedStruct struct {
	ReorderedDependentAdapted *DeclaredAfterStruct `thrift:"reordered_dependent_adapted,1" json:"reordered_dependent_adapted" db:"reordered_dependent_adapted"`
}

func NewReorderedStruct

func NewReorderedStruct() *ReorderedStruct

func (*ReorderedStruct) GetReorderedDependentAdapted

func (x *ReorderedStruct) GetReorderedDependentAdapted() *DeclaredAfterStruct

func (*ReorderedStruct) IsSetReorderedDependentAdapted

func (x *ReorderedStruct) IsSetReorderedDependentAdapted() bool

func (*ReorderedStruct) Read

func (x *ReorderedStruct) Read(p thrift.Protocol) error

func (*ReorderedStruct) SetReorderedDependentAdapted

func (x *ReorderedStruct) SetReorderedDependentAdapted(value DeclaredAfterStruct) *ReorderedStruct

func (*ReorderedStruct) Write

func (x *ReorderedStruct) Write(p thrift.Protocol) error

type ReorderedStructBuilder deprecated

type ReorderedStructBuilder struct {
	// contains filtered or unexported fields
}

Deprecated: Use ReorderedStruct.Set* methods instead or set the fields directly.

func NewReorderedStructBuilder

func NewReorderedStructBuilder() *ReorderedStructBuilder

func (*ReorderedStructBuilder) Emit

func (*ReorderedStructBuilder) ReorderedDependentAdapted

func (x *ReorderedStructBuilder) ReorderedDependentAdapted(value *DeclaredAfterStruct) *ReorderedStructBuilder

type SameNamespaceStruct

type SameNamespaceStruct struct {
	Data int64 `thrift:"data,1" json:"data" db:"data"`
}

func NewSameNamespaceStruct

func NewSameNamespaceStruct() *SameNamespaceStruct

func (*SameNamespaceStruct) GetData

func (x *SameNamespaceStruct) GetData() int64

func (*SameNamespaceStruct) Read

func (*SameNamespaceStruct) SetData

func (x *SameNamespaceStruct) SetData(value int64) *SameNamespaceStruct

func (*SameNamespaceStruct) Write

type SameNamespaceStructBuilder deprecated

type SameNamespaceStructBuilder struct {
	// contains filtered or unexported fields
}

Deprecated: Use SameNamespaceStruct.Set* methods instead or set the fields directly.

func NewSameNamespaceStructBuilder

func NewSameNamespaceStructBuilder() *SameNamespaceStructBuilder

func (*SameNamespaceStructBuilder) Data

func (*SameNamespaceStructBuilder) Emit

type Service

type Service interface {
	Func(ctx context.Context, arg1 StringWithAdapter, arg2 string, arg3 *Foo) (MyI32, error)
}

type ServiceChannelClient

type ServiceChannelClient struct {
	// contains filtered or unexported fields
}

func NewServiceChannelClient

func NewServiceChannelClient(channel thrift.RequestChannel) *ServiceChannelClient

func (*ServiceChannelClient) Close

func (c *ServiceChannelClient) Close() error

func (*ServiceChannelClient) Func

func (c *ServiceChannelClient) Func(ctx context.Context, arg1 StringWithAdapter, arg2 string, arg3 *Foo) (MyI32, error)

func (*ServiceChannelClient) IsOpen

func (c *ServiceChannelClient) IsOpen() bool

func (*ServiceChannelClient) Open

func (c *ServiceChannelClient) Open() error

type ServiceClient deprecated

type ServiceClient struct {
	// contains filtered or unexported fields
}

Deprecated: Use ServiceChannelClient instead.

func NewServiceClient deprecated

func NewServiceClient(t thrift.Transport, iprot thrift.Protocol, oprot thrift.Protocol) *ServiceClient

Deprecated: Use NewServiceChannelClient() instead.

func NewServiceClientFactory deprecated

func NewServiceClientFactory(t thrift.Transport, pf thrift.ProtocolFactory) *ServiceClient

Deprecated: Use NewServiceChannelClient() instead.

func NewServiceClientProtocol deprecated

func NewServiceClientProtocol(prot thrift.Protocol) *ServiceClient

Deprecated: Use NewServiceChannelClient() instead.

func NewServiceThreadsafeClientProtocol deprecated

func NewServiceThreadsafeClientProtocol(prot thrift.Protocol) *ServiceClient

Deprecated: Use NewServiceChannelClient() instead.

func (*ServiceClient) Close

func (c *ServiceClient) Close() error

func (*ServiceClient) Func

func (c *ServiceClient) Func(arg1 StringWithAdapter, arg2 string, arg3 *Foo) (MyI32, error)

func (*ServiceClient) IsOpen

func (c *ServiceClient) IsOpen() bool

func (*ServiceClient) Open

func (c *ServiceClient) Open() error

type ServiceClientInterface deprecated

type ServiceClientInterface interface {
	thrift.ClientInterface
	Func(arg1 StringWithAdapter, arg2 string, arg3 *Foo) (MyI32, error)
}

Deprecated: Use Service instead.

type ServiceProcessor

type ServiceProcessor struct {
	// contains filtered or unexported fields
}

func NewServiceProcessor

func NewServiceProcessor(handler Service) *ServiceProcessor

func (*ServiceProcessor) AddToFunctionServiceMap

func (p *ServiceProcessor) AddToFunctionServiceMap(key, service string)

func (*ServiceProcessor) AddToProcessorMap

func (p *ServiceProcessor) AddToProcessorMap(key string, processor thrift.ProcessorFunction)

func (*ServiceProcessor) FunctionServiceMap

func (p *ServiceProcessor) FunctionServiceMap() map[string]string

func (*ServiceProcessor) GetProcessorFunction

func (p *ServiceProcessor) GetProcessorFunction(key string) (processor thrift.ProcessorFunction, err error)

func (*ServiceProcessor) ProcessorMap

func (p *ServiceProcessor) ProcessorMap() map[string]thrift.ProcessorFunction

type ServiceThreadsafeClient deprecated

type ServiceThreadsafeClient = ServiceClient

Deprecated: Use ServiceChannelClient instead.

func NewServiceThreadsafeClient deprecated

func NewServiceThreadsafeClient(t thrift.Transport, iprot thrift.Protocol, oprot thrift.Protocol) *ServiceThreadsafeClient

Deprecated: Use NewServiceChannelClient() instead.

func NewServiceThreadsafeClientFactory deprecated

func NewServiceThreadsafeClientFactory(t thrift.Transport, pf thrift.ProtocolFactory) *ServiceThreadsafeClient

Deprecated: Use NewServiceChannelClient() instead.

type SetWithAdapter

type SetWithAdapter = []string

type StringWithAdapter

type StringWithAdapter = string

type StructFieldAdaptedStruct

type StructFieldAdaptedStruct struct {
	AdaptedStruct    *AdaptedStruct         `thrift:"adaptedStruct,1" json:"adaptedStruct" db:"adaptedStruct"`
	AdaptedTypedef   *AdaptedTypedef        `thrift:"adaptedTypedef,2" json:"adaptedTypedef" db:"adaptedTypedef"`
	DirectlyAdapted  *DirectlyAdaptedStruct `thrift:"directlyAdapted,3" json:"directlyAdapted" db:"directlyAdapted"`
	TypedefOfAdapted *TypedefOfDirect       `thrift:"typedefOfAdapted,4" json:"typedefOfAdapted" db:"typedefOfAdapted"`
}

func NewStructFieldAdaptedStruct

func NewStructFieldAdaptedStruct() *StructFieldAdaptedStruct

func (*StructFieldAdaptedStruct) GetAdaptedStruct

func (x *StructFieldAdaptedStruct) GetAdaptedStruct() *AdaptedStruct

func (*StructFieldAdaptedStruct) GetAdaptedTypedef

func (x *StructFieldAdaptedStruct) GetAdaptedTypedef() *AdaptedTypedef

func (*StructFieldAdaptedStruct) GetDirectlyAdapted

func (x *StructFieldAdaptedStruct) GetDirectlyAdapted() *DirectlyAdaptedStruct

func (*StructFieldAdaptedStruct) GetTypedefOfAdapted

func (x *StructFieldAdaptedStruct) GetTypedefOfAdapted() *TypedefOfDirect

func (*StructFieldAdaptedStruct) IsSetAdaptedStruct

func (x *StructFieldAdaptedStruct) IsSetAdaptedStruct() bool

func (*StructFieldAdaptedStruct) IsSetAdaptedTypedef

func (x *StructFieldAdaptedStruct) IsSetAdaptedTypedef() bool

func (*StructFieldAdaptedStruct) IsSetDirectlyAdapted

func (x *StructFieldAdaptedStruct) IsSetDirectlyAdapted() bool

func (*StructFieldAdaptedStruct) IsSetTypedefOfAdapted

func (x *StructFieldAdaptedStruct) IsSetTypedefOfAdapted() bool

func (*StructFieldAdaptedStruct) Read

func (*StructFieldAdaptedStruct) SetAdaptedStruct

func (*StructFieldAdaptedStruct) SetAdaptedTypedef

func (*StructFieldAdaptedStruct) SetDirectlyAdapted

func (*StructFieldAdaptedStruct) SetTypedefOfAdapted

func (x *StructFieldAdaptedStruct) SetTypedefOfAdapted(value TypedefOfDirect) *StructFieldAdaptedStruct

func (*StructFieldAdaptedStruct) Write

type StructFieldAdaptedStructBuilder deprecated

type StructFieldAdaptedStructBuilder struct {
	// contains filtered or unexported fields
}

Deprecated: Use StructFieldAdaptedStruct.Set* methods instead or set the fields directly.

func NewStructFieldAdaptedStructBuilder

func NewStructFieldAdaptedStructBuilder() *StructFieldAdaptedStructBuilder

func (*StructFieldAdaptedStructBuilder) AdaptedStruct

func (*StructFieldAdaptedStructBuilder) AdaptedTypedef

func (*StructFieldAdaptedStructBuilder) DirectlyAdapted

func (*StructFieldAdaptedStructBuilder) Emit

func (*StructFieldAdaptedStructBuilder) TypedefOfAdapted

type StructWithAdapter

type StructWithAdapter = Bar

type StructWithFieldAdapter

type StructWithFieldAdapter struct {
	Field          int32  `thrift:"field,1" json:"field" db:"field"`
	SharedField    int32  `thrift:"shared_field,2" json:"shared_field" db:"shared_field"`
	OptSharedField *int32 `thrift:"opt_shared_field,3,optional" json:"opt_shared_field,omitempty" db:"opt_shared_field"`
	OptBoxedField  *int32 `thrift:"opt_boxed_field,4,optional" json:"opt_boxed_field,omitempty" db:"opt_boxed_field"`
}

func NewStructWithFieldAdapter

func NewStructWithFieldAdapter() *StructWithFieldAdapter

func (*StructWithFieldAdapter) GetField

func (x *StructWithFieldAdapter) GetField() int32

func (*StructWithFieldAdapter) GetOptBoxedField

func (x *StructWithFieldAdapter) GetOptBoxedField() *int32

func (*StructWithFieldAdapter) GetOptSharedField

func (x *StructWithFieldAdapter) GetOptSharedField() *int32

func (*StructWithFieldAdapter) GetSharedField

func (x *StructWithFieldAdapter) GetSharedField() int32

func (*StructWithFieldAdapter) IsSetOptBoxedField

func (x *StructWithFieldAdapter) IsSetOptBoxedField() bool

func (*StructWithFieldAdapter) IsSetOptSharedField

func (x *StructWithFieldAdapter) IsSetOptSharedField() bool

func (*StructWithFieldAdapter) Read

func (*StructWithFieldAdapter) SetField

func (*StructWithFieldAdapter) SetOptBoxedField

func (x *StructWithFieldAdapter) SetOptBoxedField(value int32) *StructWithFieldAdapter

func (*StructWithFieldAdapter) SetOptSharedField

func (x *StructWithFieldAdapter) SetOptSharedField(value int32) *StructWithFieldAdapter

func (*StructWithFieldAdapter) SetSharedField

func (x *StructWithFieldAdapter) SetSharedField(value int32) *StructWithFieldAdapter

func (*StructWithFieldAdapter) Write

type StructWithFieldAdapterBuilder deprecated

type StructWithFieldAdapterBuilder struct {
	// contains filtered or unexported fields
}

Deprecated: Use StructWithFieldAdapter.Set* methods instead or set the fields directly.

func NewStructWithFieldAdapterBuilder

func NewStructWithFieldAdapterBuilder() *StructWithFieldAdapterBuilder

func (*StructWithFieldAdapterBuilder) Emit

func (*StructWithFieldAdapterBuilder) Field

func (*StructWithFieldAdapterBuilder) OptBoxedField

func (*StructWithFieldAdapterBuilder) OptSharedField

func (*StructWithFieldAdapterBuilder) SharedField

type TerseAdaptedFields

type TerseAdaptedFields struct {
	IntField    int32   `thrift:"int_field,1" json:"int_field" db:"int_field"`
	StringField string  `thrift:"string_field,2" json:"string_field" db:"string_field"`
	SetField    []int32 `thrift:"set_field,3" json:"set_field" db:"set_field"`
}

func NewTerseAdaptedFields

func NewTerseAdaptedFields() *TerseAdaptedFields

func (*TerseAdaptedFields) GetIntField

func (x *TerseAdaptedFields) GetIntField() int32

func (*TerseAdaptedFields) GetSetField

func (x *TerseAdaptedFields) GetSetField() []int32

func (*TerseAdaptedFields) GetStringField

func (x *TerseAdaptedFields) GetStringField() string

func (*TerseAdaptedFields) IsSetSetField

func (x *TerseAdaptedFields) IsSetSetField() bool

func (*TerseAdaptedFields) Read

func (*TerseAdaptedFields) SetIntField

func (x *TerseAdaptedFields) SetIntField(value int32) *TerseAdaptedFields

func (*TerseAdaptedFields) SetSetField

func (x *TerseAdaptedFields) SetSetField(value []int32) *TerseAdaptedFields

func (*TerseAdaptedFields) SetStringField

func (x *TerseAdaptedFields) SetStringField(value string) *TerseAdaptedFields

func (*TerseAdaptedFields) Write

type TerseAdaptedFieldsBuilder deprecated

type TerseAdaptedFieldsBuilder struct {
	// contains filtered or unexported fields
}

Deprecated: Use TerseAdaptedFields.Set* methods instead or set the fields directly.

func NewTerseAdaptedFieldsBuilder

func NewTerseAdaptedFieldsBuilder() *TerseAdaptedFieldsBuilder

func (*TerseAdaptedFieldsBuilder) Emit

func (*TerseAdaptedFieldsBuilder) IntField

func (*TerseAdaptedFieldsBuilder) SetField

func (*TerseAdaptedFieldsBuilder) StringField

type ThriftAdaptedEnum

type ThriftAdaptedEnum int32
const (
	ThriftAdaptedEnum_Zero ThriftAdaptedEnum = 0
	ThriftAdaptedEnum_One  ThriftAdaptedEnum = 1
)

func ThriftAdaptedEnumFromString deprecated

func ThriftAdaptedEnumFromString(s string) (ThriftAdaptedEnum, error)

Deprecated: Use ThriftAdaptedEnum_value instead (e.g. `x, ok := ThriftAdaptedEnum_value["name"]`).

func ThriftAdaptedEnumPtr deprecated

func ThriftAdaptedEnumPtr(v ThriftAdaptedEnum) *ThriftAdaptedEnum

Deprecated: Use ThriftAdaptedEnum.Ptr() instead.

func (ThriftAdaptedEnum) Ptr

func (ThriftAdaptedEnum) String

func (x ThriftAdaptedEnum) String() string

type TransitiveAdapted

type TransitiveAdapted struct {
}

func NewTransitiveAdapted

func NewTransitiveAdapted() *TransitiveAdapted

func (*TransitiveAdapted) Read

func (*TransitiveAdapted) Write

func (x *TransitiveAdapted) Write(p thrift.Protocol) error

type TransitiveAdaptedBuilder deprecated

type TransitiveAdaptedBuilder struct {
	// contains filtered or unexported fields
}

Deprecated: Use TransitiveAdapted.Set* methods instead or set the fields directly.

func NewTransitiveAdaptedBuilder

func NewTransitiveAdaptedBuilder() *TransitiveAdaptedBuilder

func (*TransitiveAdaptedBuilder) Emit

type TypedefOfDirect

type TypedefOfDirect = DirectlyAdaptedStruct

type UnionWithAdapter

type UnionWithAdapter = Baz

Jump to

Keyboard shortcuts

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