thrift

package
v0.0.0-...-7428086 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GoUnusedProtection__ int

Functions

This section is empty.

Types

type Beta

type Beta struct {
}

Indicates a definition/feature may change in incompatible ways.

func NewBeta

func NewBeta() *Beta

func (*Beta) Read

func (p *Beta) Read(iprot thrift.Protocol) error

func (*Beta) String

func (p *Beta) String() string

func (*Beta) Write

func (p *Beta) Write(oprot thrift.Protocol) error

type BetaBuilder

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

func NewBetaBuilder

func NewBetaBuilder() *BetaBuilder

func (BetaBuilder) Emit

func (p BetaBuilder) Emit() *Beta

type Bit

type Bit struct {
}

Indicates that a boolean type **may** be 'packed' in memory.

This allows an implementation to not allocate a full native 'bool' type, and instead use a single 'isset' bit to store the value.

All fields that use such a type **must** be 'terse'.

func NewBit

func NewBit() *Bit

func (*Bit) Read

func (p *Bit) Read(iprot thrift.Protocol) error

func (*Bit) String

func (p *Bit) String() string

func (*Bit) Write

func (p *Bit) Write(oprot thrift.Protocol) error

type BitBuilder

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

func NewBitBuilder

func NewBitBuilder() *BitBuilder

func (BitBuilder) Emit

func (p BitBuilder) Emit() *Bit

type BitmaskEnum

type BitmaskEnum struct {
}

Indicates an enum is a bitmask and should support bit-wise operators.

func NewBitmaskEnum

func NewBitmaskEnum() *BitmaskEnum

func (*BitmaskEnum) Read

func (p *BitmaskEnum) Read(iprot thrift.Protocol) error

func (*BitmaskEnum) String

func (p *BitmaskEnum) String() string

func (*BitmaskEnum) Write

func (p *BitmaskEnum) Write(oprot thrift.Protocol) error

type BitmaskEnumBuilder

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

func NewBitmaskEnumBuilder

func NewBitmaskEnumBuilder() *BitmaskEnumBuilder

func (BitmaskEnumBuilder) Emit

func (p BitmaskEnumBuilder) Emit() *BitmaskEnum

type Box

type Box struct {
}

Indicates that a field's value should never be stored on the stack.

func NewBox

func NewBox() *Box

func (*Box) Read

func (p *Box) Read(iprot thrift.Protocol) error

func (*Box) String

func (p *Box) String() string

func (*Box) Write

func (p *Box) Write(oprot thrift.Protocol) error

type BoxBuilder

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

func NewBoxBuilder

func NewBoxBuilder() *BoxBuilder

func (BoxBuilder) Emit

func (p BoxBuilder) Emit() *Box

type Deprecated

type Deprecated struct {
	Message string `thrift:"message,1" db:"message" json:"message"`
}

Indicates a definition/feature should no longer be used.

Attributes:

  • Message

func NewDeprecated

func NewDeprecated() *Deprecated

func (*Deprecated) GetMessage

func (p *Deprecated) GetMessage() string

func (*Deprecated) Read

func (p *Deprecated) Read(iprot thrift.Protocol) error

func (*Deprecated) ReadField1

func (p *Deprecated) ReadField1(iprot thrift.Protocol) error

func (*Deprecated) SetMessage

func (d *Deprecated) SetMessage(message string) *Deprecated

func (*Deprecated) String

func (p *Deprecated) String() string

func (*Deprecated) Write

func (p *Deprecated) Write(oprot thrift.Protocol) error

type DeprecatedBuilder

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

func NewDeprecatedBuilder

func NewDeprecatedBuilder() *DeprecatedBuilder

func (DeprecatedBuilder) Emit

func (p DeprecatedBuilder) Emit() *Deprecated

func (*DeprecatedBuilder) Message

func (d *DeprecatedBuilder) Message(message string) *DeprecatedBuilder

type ExceptionMessage

type ExceptionMessage struct {
	Field string `thrift:"field,1" db:"field" json:"field"`
}

Specifies the field where the exception message is stored. The field is used to generate an additional method to get it.

Attributes:

  • Field

func NewExceptionMessage

func NewExceptionMessage() *ExceptionMessage

func (*ExceptionMessage) GetField

func (p *ExceptionMessage) GetField() string

func (*ExceptionMessage) Read

func (p *ExceptionMessage) Read(iprot thrift.Protocol) error

func (*ExceptionMessage) ReadField1

func (p *ExceptionMessage) ReadField1(iprot thrift.Protocol) error

func (*ExceptionMessage) SetField

func (e *ExceptionMessage) SetField(field string) *ExceptionMessage

func (*ExceptionMessage) String

func (p *ExceptionMessage) String() string

func (*ExceptionMessage) Write

func (p *ExceptionMessage) Write(oprot thrift.Protocol) error

type ExceptionMessageBuilder

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

func NewExceptionMessageBuilder

func NewExceptionMessageBuilder() *ExceptionMessageBuilder

func (ExceptionMessageBuilder) Emit

func (*ExceptionMessageBuilder) Field

type Experimental

type Experimental struct {
}

Indicates a definition/feature should only be used with permission, may only work in specific contexts, and may change in incompatible ways without notice.

func NewExperimental

func NewExperimental() *Experimental

func (*Experimental) Read

func (p *Experimental) Read(iprot thrift.Protocol) error

func (*Experimental) String

func (p *Experimental) String() string

func (*Experimental) Write

func (p *Experimental) Write(oprot thrift.Protocol) error

type ExperimentalBuilder

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

func NewExperimentalBuilder

func NewExperimentalBuilder() *ExperimentalBuilder

func (ExperimentalBuilder) Emit

type GenDefaultEnumValue

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

Adds a default enum value (0), with the given name, if one is not already defined.

All v1+ enums must have an explicitly defined default value (0). This annotation automatically adds such a value if not already present.

Attributes:

  • Name: The name to use for the generated enum value.

This intentionally does **not** use the most common 'zero' enum value name, 'Default', by default; as, defining a `Default = 0` enum value explicitly is a useful means of self-documenting that setting an explicit value is never required. In which case, it is part of the API, and should not be removed in favor of an implicitly generated value.

On the other hand, 'Unspecified' clearly indicates that the requirements are not intrinsic to the enum. In which case, the relevant documentation should be consulted (e.g. the doc strings on the function or field).

func NewGenDefaultEnumValue

func NewGenDefaultEnumValue() *GenDefaultEnumValue

func (*GenDefaultEnumValue) GetName

func (p *GenDefaultEnumValue) GetName() string

func (*GenDefaultEnumValue) Read

func (p *GenDefaultEnumValue) Read(iprot thrift.Protocol) error

func (*GenDefaultEnumValue) ReadField1

func (p *GenDefaultEnumValue) ReadField1(iprot thrift.Protocol) error

func (*GenDefaultEnumValue) SetName

func (*GenDefaultEnumValue) String

func (p *GenDefaultEnumValue) String() string

func (*GenDefaultEnumValue) Write

func (p *GenDefaultEnumValue) Write(oprot thrift.Protocol) error

type GenDefaultEnumValueBuilder

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

func NewGenDefaultEnumValueBuilder

func NewGenDefaultEnumValueBuilder() *GenDefaultEnumValueBuilder

func (GenDefaultEnumValueBuilder) Emit

func (*GenDefaultEnumValueBuilder) Name

type GenEnumSet

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

Adds a typedef of {enum}Set that is sutable for storing a `packed` set of values for the annotated enum.

Any enum with this annotation must only have values between 1 and 32 inclusive.

For example:

@thrift.GenEnumSet
enum Flag {
  Option1 = 1,
  ...
}

Generates the equivalent of:

@cpp.Adapter("::apache::thrift::EnumSetAdapter<::ns::Flag>")
...
typedef i32 FlagSet

`FlagSet` can then be used like a normal typedef.

Attributes:

  • Name: If a custom name is not provided, `{EnumName}Set` is used.

func NewGenEnumSet

func NewGenEnumSet() *GenEnumSet

func (*GenEnumSet) GetName

func (p *GenEnumSet) GetName() string

func (*GenEnumSet) Read

func (p *GenEnumSet) Read(iprot thrift.Protocol) error

func (*GenEnumSet) ReadField1

func (p *GenEnumSet) ReadField1(iprot thrift.Protocol) error

func (*GenEnumSet) SetName

func (g *GenEnumSet) SetName(name string) *GenEnumSet

func (*GenEnumSet) String

func (p *GenEnumSet) String() string

func (*GenEnumSet) Write

func (p *GenEnumSet) Write(oprot thrift.Protocol) error

type GenEnumSetBuilder

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

func NewGenEnumSetBuilder

func NewGenEnumSetBuilder() *GenEnumSetBuilder

func (GenEnumSetBuilder) Emit

func (p GenEnumSetBuilder) Emit() *GenEnumSet

func (*GenEnumSetBuilder) Name

type GenerateRuntimeSchema

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

Generates a const of type schema. Struct containing the schema of the annotated type. Optionally specify name to override default schema<structName>.

Attributes:

  • Name

func NewGenerateRuntimeSchema

func NewGenerateRuntimeSchema() *GenerateRuntimeSchema

func (*GenerateRuntimeSchema) GetName

func (p *GenerateRuntimeSchema) GetName() string

func (*GenerateRuntimeSchema) Read

func (p *GenerateRuntimeSchema) Read(iprot thrift.Protocol) error

func (*GenerateRuntimeSchema) ReadField1

func (p *GenerateRuntimeSchema) ReadField1(iprot thrift.Protocol) error

func (*GenerateRuntimeSchema) SetName

func (*GenerateRuntimeSchema) String

func (p *GenerateRuntimeSchema) String() string

func (*GenerateRuntimeSchema) Write

func (p *GenerateRuntimeSchema) Write(oprot thrift.Protocol) error

type GenerateRuntimeSchemaBuilder

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

func NewGenerateRuntimeSchemaBuilder

func NewGenerateRuntimeSchemaBuilder() *GenerateRuntimeSchemaBuilder

func (GenerateRuntimeSchemaBuilder) Emit

func (*GenerateRuntimeSchemaBuilder) Name

type InternBox

type InternBox struct {
}

Indicates that a field's value should never be stored on the stack, and that identical values can be shared in immutable contexts.

func NewInternBox

func NewInternBox() *InternBox

func (*InternBox) Read

func (p *InternBox) Read(iprot thrift.Protocol) error

func (*InternBox) String

func (p *InternBox) String() string

func (*InternBox) Write

func (p *InternBox) Write(oprot thrift.Protocol) error

type InternBoxBuilder

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

func NewInternBoxBuilder

func NewInternBoxBuilder() *InternBoxBuilder

func (InternBoxBuilder) Emit

func (p InternBoxBuilder) Emit() *InternBox

type Legacy

type Legacy struct {
	Message string `thrift:"message,1" db:"message" json:"message"`
}

Indicates a definition/feature will be removed in the next release.

Pleased migrate off of all @Legacy as soon as possible.

Attributes:

  • Message

func NewLegacy

func NewLegacy() *Legacy

func (*Legacy) GetMessage

func (p *Legacy) GetMessage() string

func (*Legacy) Read

func (p *Legacy) Read(iprot thrift.Protocol) error

func (*Legacy) ReadField1

func (p *Legacy) ReadField1(iprot thrift.Protocol) error

func (*Legacy) SetMessage

func (l *Legacy) SetMessage(message string) *Legacy

func (*Legacy) String

func (p *Legacy) String() string

func (*Legacy) Write

func (p *Legacy) Write(oprot thrift.Protocol) error

type LegacyBuilder

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

func NewLegacyBuilder

func NewLegacyBuilder() *LegacyBuilder

func (LegacyBuilder) Emit

func (p LegacyBuilder) Emit() *Legacy

func (*LegacyBuilder) Message

func (l *LegacyBuilder) Message(message string) *LegacyBuilder

type Mixin

type Mixin struct {
}

func NewMixin

func NewMixin() *Mixin

func (*Mixin) Read

func (p *Mixin) Read(iprot thrift.Protocol) error

func (*Mixin) String

func (p *Mixin) String() string

func (*Mixin) Write

func (p *Mixin) Write(oprot thrift.Protocol) error

type MixinBuilder

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

func NewMixinBuilder

func NewMixinBuilder() *MixinBuilder

func (MixinBuilder) Emit

func (p MixinBuilder) Emit() *Mixin

type NoBeta

type NoBeta struct {
}

Disables @Beta features.

func NewNoBeta

func NewNoBeta() *NoBeta

func (*NoBeta) Read

func (p *NoBeta) Read(iprot thrift.Protocol) error

func (*NoBeta) String

func (p *NoBeta) String() string

func (*NoBeta) Write

func (p *NoBeta) Write(oprot thrift.Protocol) error

type NoBetaBuilder

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

func NewNoBetaBuilder

func NewNoBetaBuilder() *NoBetaBuilder

func (NoBetaBuilder) Emit

func (p NoBetaBuilder) Emit() *NoBeta

type NoDeprecated

type NoDeprecated struct {
}

Disables @Deprecated features.

Should only be enabled in `test` versions, as deprecated implies removing the feature will break current usage (otherwise it would be @Legacy or deleted)

func NewNoDeprecated

func NewNoDeprecated() *NoDeprecated

func (*NoDeprecated) Read

func (p *NoDeprecated) Read(iprot thrift.Protocol) error

func (*NoDeprecated) String

func (p *NoDeprecated) String() string

func (*NoDeprecated) Write

func (p *NoDeprecated) Write(oprot thrift.Protocol) error

type NoDeprecatedBuilder

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

func NewNoDeprecatedBuilder

func NewNoDeprecatedBuilder() *NoDeprecatedBuilder

func (NoDeprecatedBuilder) Emit

type NoExperimental

type NoExperimental struct {
}

Disables experimental features.

func NewNoExperimental

func NewNoExperimental() *NoExperimental

func (*NoExperimental) Read

func (p *NoExperimental) Read(iprot thrift.Protocol) error

func (*NoExperimental) String

func (p *NoExperimental) String() string

func (*NoExperimental) Write

func (p *NoExperimental) Write(oprot thrift.Protocol) error

type NoExperimentalBuilder

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

func NewNoExperimentalBuilder

func NewNoExperimentalBuilder() *NoExperimentalBuilder

func (NoExperimentalBuilder) Emit

type NoLegacy

type NoLegacy struct {
}

Disables @Legacy features.

func NewNoLegacy

func NewNoLegacy() *NoLegacy

func (*NoLegacy) Read

func (p *NoLegacy) Read(iprot thrift.Protocol) error

func (*NoLegacy) String

func (p *NoLegacy) String() string

func (*NoLegacy) Write

func (p *NoLegacy) Write(oprot thrift.Protocol) error

type NoLegacyBuilder

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

func NewNoLegacyBuilder

func NewNoLegacyBuilder() *NoLegacyBuilder

func (NoLegacyBuilder) Emit

func (p NoLegacyBuilder) Emit() *NoLegacy

type NoTesting

type NoTesting struct {
}

Disables testing features.

func NewNoTesting

func NewNoTesting() *NoTesting

func (*NoTesting) Read

func (p *NoTesting) Read(iprot thrift.Protocol) error

func (*NoTesting) String

func (p *NoTesting) String() string

func (*NoTesting) Write

func (p *NoTesting) Write(oprot thrift.Protocol) error

type NoTestingBuilder

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

func NewNoTestingBuilder

func NewNoTestingBuilder() *NoTestingBuilder

func (NoTestingBuilder) Emit

func (p NoTestingBuilder) Emit() *NoTesting

type Released

type Released struct {
}

Indicates a definition/feature must not depend directly on an unreleased or testing definition/feature.

func NewReleased

func NewReleased() *Released

func (*Released) Read

func (p *Released) Read(iprot thrift.Protocol) error

func (*Released) String

func (p *Released) String() string

func (*Released) Write

func (p *Released) Write(oprot thrift.Protocol) error

type ReleasedBuilder

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

func NewReleasedBuilder

func NewReleasedBuilder() *ReleasedBuilder

func (ReleasedBuilder) Emit

func (p ReleasedBuilder) Emit() *Released

type RequiresBackwardCompatibility

type RequiresBackwardCompatibility struct {
	FieldName bool `thrift:"field_name,1" db:"field_name" json:"field_name"`
}

Indicates additional backward compatibility restrictions, beyond the standard Thrift required 'wire' compatibility.

Attributes:

  • FieldName

func NewRequiresBackwardCompatibility

func NewRequiresBackwardCompatibility() *RequiresBackwardCompatibility

func (*RequiresBackwardCompatibility) GetFieldName

func (p *RequiresBackwardCompatibility) GetFieldName() bool

func (*RequiresBackwardCompatibility) Read

func (*RequiresBackwardCompatibility) ReadField1

func (p *RequiresBackwardCompatibility) ReadField1(iprot thrift.Protocol) error

func (*RequiresBackwardCompatibility) SetFieldName

func (*RequiresBackwardCompatibility) String

func (*RequiresBackwardCompatibility) Write

type RequiresBackwardCompatibilityBuilder

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

func NewRequiresBackwardCompatibilityBuilder

func NewRequiresBackwardCompatibilityBuilder() *RequiresBackwardCompatibilityBuilder

func (RequiresBackwardCompatibilityBuilder) Emit

func (*RequiresBackwardCompatibilityBuilder) FieldName

type ReserveIds

type ReserveIds struct {
	Ids      []int32         `thrift:"ids,1" db:"ids" json:"ids"`
	IdRanges map[int32]int32 `thrift:"id_ranges,2" db:"id_ranges" json:"id_ranges"`
}

Annotate a thrift structured or enum to indicate if ids or values should not be used.

For example, you may want to mark ids as deprecated, or these ids might be reserved for other use cases or annotations.

The resolved set of disallowed ids is the union of the values in `ids` and the range of values represented in `id_ranges`. Example:

// These ids are not allowed: 3, 8, half-open ranges [10, 15), [20, 30)
@thrift.ReserveIds{ids = [3, 8], id_ranges = {10: 15, 20: 30}}
struct Foo {
  ...
  3: i64 f; // Build failure: 3 cannot be used
}

Attributes:

  • Ids: Individual ids that cannot be used.
  • IdRanges: Represents ranges of ids that cannot be used.

Each (key: value) pair represents the half-open range `[key, value)`, where `key` is included and `value` is not. For example the map `{10: 15, 20: 30}` represents the union of id/value ranges `[10, 15)` and `[20, 30)`

func NewReserveIds

func NewReserveIds() *ReserveIds

func (*ReserveIds) GetIdRanges

func (p *ReserveIds) GetIdRanges() map[int32]int32

func (*ReserveIds) GetIds

func (p *ReserveIds) GetIds() []int32

func (*ReserveIds) Read

func (p *ReserveIds) Read(iprot thrift.Protocol) error

func (*ReserveIds) ReadField1

func (p *ReserveIds) ReadField1(iprot thrift.Protocol) error

func (*ReserveIds) ReadField2

func (p *ReserveIds) ReadField2(iprot thrift.Protocol) error

func (*ReserveIds) SetIdRanges

func (r *ReserveIds) SetIdRanges(idRanges map[int32]int32) *ReserveIds

func (*ReserveIds) SetIds

func (r *ReserveIds) SetIds(ids []int32) *ReserveIds

func (*ReserveIds) String

func (p *ReserveIds) String() string

func (*ReserveIds) Write

func (p *ReserveIds) Write(oprot thrift.Protocol) error

type ReserveIdsBuilder

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

func NewReserveIdsBuilder

func NewReserveIdsBuilder() *ReserveIdsBuilder

func (ReserveIdsBuilder) Emit

func (p ReserveIdsBuilder) Emit() *ReserveIds

func (*ReserveIdsBuilder) IdRanges

func (r *ReserveIdsBuilder) IdRanges(idRanges map[int32]int32) *ReserveIdsBuilder

func (*ReserveIdsBuilder) Ids

func (r *ReserveIdsBuilder) Ids(ids []int32) *ReserveIdsBuilder

type SerializeInFieldIdOrder

type SerializeInFieldIdOrder struct {
}

Option to serialize thrift struct in ascending field id order.

This can potentially make serialized data size smaller in compact protocol, since compact protocol can write deltas between subsequent field ids.

func NewSerializeInFieldIdOrder

func NewSerializeInFieldIdOrder() *SerializeInFieldIdOrder

func (*SerializeInFieldIdOrder) Read

func (*SerializeInFieldIdOrder) String

func (p *SerializeInFieldIdOrder) String() string

func (*SerializeInFieldIdOrder) Write

func (p *SerializeInFieldIdOrder) Write(oprot thrift.Protocol) error

type SerializeInFieldIdOrderBuilder

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

func NewSerializeInFieldIdOrderBuilder

func NewSerializeInFieldIdOrderBuilder() *SerializeInFieldIdOrderBuilder

func (SerializeInFieldIdOrderBuilder) Emit

type TerseWrite

type TerseWrite struct {
}

An annotation that changes the field qualifier from 'none' to 'terse'. A terse field is eligible to skip serialization, when it equals to the intrinsic default value. It also clears to the intrinsic default value before deserialization to distinguish between if a terse field was skipped or missing during serialization. This is different from an unqualified field, as an unqualified field is always serialized regardless of its value, and it is not cleared before deserialization.

The annotation can be only used to annotate an unqualified field, and when it is annotating a struct or exception, it changes all unqualified fields to terse fields. Note, the annotation can not be used for union.

func NewTerseWrite

func NewTerseWrite() *TerseWrite

func (*TerseWrite) Read

func (p *TerseWrite) Read(iprot thrift.Protocol) error

func (*TerseWrite) String

func (p *TerseWrite) String() string

func (*TerseWrite) Write

func (p *TerseWrite) Write(oprot thrift.Protocol) error

type TerseWriteBuilder

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

func NewTerseWriteBuilder

func NewTerseWriteBuilder() *TerseWriteBuilder

func (TerseWriteBuilder) Emit

func (p TerseWriteBuilder) Emit() *TerseWrite

type Testing

type Testing struct {
}

Indicates a definition/feature should only be used in an ephemeral testing enviornment.

Such enviornments only store serialized values temporarly and strictly control which versions of Thrift definitions are used, so 'compatibility' is not a concern.

func NewTesting

func NewTesting() *Testing

func (*Testing) Read

func (p *Testing) Read(iprot thrift.Protocol) error

func (*Testing) String

func (p *Testing) String() string

func (*Testing) Write

func (p *Testing) Write(oprot thrift.Protocol) error

type TestingBuilder

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

func NewTestingBuilder

func NewTestingBuilder() *TestingBuilder

func (TestingBuilder) Emit

func (p TestingBuilder) Emit() *Testing

type V1

type V1 struct {
}

Enables all released v1 features.

func NewV1

func NewV1() *V1

func (*V1) Read

func (p *V1) Read(iprot thrift.Protocol) error

func (*V1) String

func (p *V1) String() string

func (*V1) Write

func (p *V1) Write(oprot thrift.Protocol) error

type V1Builder

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

func NewV1Builder

func NewV1Builder() *V1Builder

func (V1Builder) Emit

func (p V1Builder) Emit() *V1

type V1alpha

type V1alpha struct {
}

Enables all experimental v1 features.

Use with *caution* and only with explicit permission. This may enable features may change significantly without notice or not work correctly in all contexts.

func NewV1alpha

func NewV1alpha() *V1alpha

func (*V1alpha) Read

func (p *V1alpha) Read(iprot thrift.Protocol) error

func (*V1alpha) String

func (p *V1alpha) String() string

func (*V1alpha) Write

func (p *V1alpha) Write(oprot thrift.Protocol) error

type V1alphaBuilder

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

func NewV1alphaBuilder

func NewV1alphaBuilder() *V1alphaBuilder

func (V1alphaBuilder) Emit

func (p V1alphaBuilder) Emit() *V1alpha

type V1beta

type V1beta struct {
}

Enables all beta v1 features.

Beta features are guaranteed to *not* break unrelated Thrift features so they should be relatively safe to test alongside other beta or released Thrift features.

func NewV1beta

func NewV1beta() *V1beta

func (*V1beta) Read

func (p *V1beta) Read(iprot thrift.Protocol) error

func (*V1beta) String

func (p *V1beta) String() string

func (*V1beta) Write

func (p *V1beta) Write(oprot thrift.Protocol) error

type V1betaBuilder

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

func NewV1betaBuilder

func NewV1betaBuilder() *V1betaBuilder

func (V1betaBuilder) Emit

func (p V1betaBuilder) Emit() *V1beta

type V1test

type V1test struct {
}

Enables experimental features, even those that are known to break common use cases.

func NewV1test

func NewV1test() *V1test

func (*V1test) Read

func (p *V1test) Read(iprot thrift.Protocol) error

func (*V1test) String

func (p *V1test) String() string

func (*V1test) Write

func (p *V1test) Write(oprot thrift.Protocol) error

type V1testBuilder

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

func NewV1testBuilder

func NewV1testBuilder() *V1testBuilder

func (V1testBuilder) Emit

func (p V1testBuilder) Emit() *V1test

Jump to

Keyboard shortcuts

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