scope

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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GoUnusedProtection__ int

Functions

This section is empty.

Types

type Const

type Const struct {
}

The `const` definition scope.

func NewConst

func NewConst() *Const

func (*Const) Read

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

func (*Const) String

func (p *Const) String() string

func (*Const) Write

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

type ConstBuilder

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

func NewConstBuilder

func NewConstBuilder() *ConstBuilder

func (ConstBuilder) Emit

func (p ConstBuilder) Emit() *Const

type Definition

type Definition struct {
}

A scope that includes all definitions.

func NewDefinition

func NewDefinition() *Definition

func (*Definition) Read

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

func (*Definition) String

func (p *Definition) String() string

func (*Definition) Write

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

type DefinitionBuilder

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

func NewDefinitionBuilder

func NewDefinitionBuilder() *DefinitionBuilder

func (DefinitionBuilder) Emit

func (p DefinitionBuilder) Emit() *Definition

type Enum

type Enum struct {
}

func NewEnum

func NewEnum() *Enum

func (*Enum) Read

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

func (*Enum) String

func (p *Enum) String() string

func (*Enum) Write

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

type EnumBuilder

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

func NewEnumBuilder

func NewEnumBuilder() *EnumBuilder

func (EnumBuilder) Emit

func (p EnumBuilder) Emit() *Enum

type EnumValue

type EnumValue struct {
}

The Enum value definition scope.

func NewEnumValue

func NewEnumValue() *EnumValue

func (*EnumValue) Read

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

func (*EnumValue) String

func (p *EnumValue) String() string

func (*EnumValue) Write

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

type EnumValueBuilder

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

func NewEnumValueBuilder

func NewEnumValueBuilder() *EnumValueBuilder

func (EnumValueBuilder) Emit

func (p EnumValueBuilder) Emit() *EnumValue

type Exception

type Exception struct {
}

The `exception` definition scope.

func NewException

func NewException() *Exception

func (*Exception) Read

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

func (*Exception) String

func (p *Exception) String() string

func (*Exception) Write

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

type ExceptionBuilder

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

func NewExceptionBuilder

func NewExceptionBuilder() *ExceptionBuilder

func (ExceptionBuilder) Emit

func (p ExceptionBuilder) Emit() *Exception

type Field

type Field struct {
}

Field declartaions, for example in `struct` or `function` declartions.

func NewField

func NewField() *Field

func (*Field) Read

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

func (*Field) String

func (p *Field) String() string

func (*Field) Write

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

type FieldBuilder

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

func NewFieldBuilder

func NewFieldBuilder() *FieldBuilder

func (FieldBuilder) Emit

func (p FieldBuilder) Emit() *Field

type Function

type Function struct {
}

The `function` definition scope.

func NewFunction

func NewFunction() *Function

func (*Function) Read

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

func (*Function) String

func (p *Function) String() string

func (*Function) Write

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

type FunctionBuilder

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

func NewFunctionBuilder

func NewFunctionBuilder() *FunctionBuilder

func (FunctionBuilder) Emit

func (p FunctionBuilder) Emit() *Function

type Interaction

type Interaction struct {
}

The `interaction` definition scope.

func NewInteraction

func NewInteraction() *Interaction

func (*Interaction) Read

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

func (*Interaction) String

func (p *Interaction) String() string

func (*Interaction) Write

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

type InteractionBuilder

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

func NewInteractionBuilder

func NewInteractionBuilder() *InteractionBuilder

func (InteractionBuilder) Emit

func (p InteractionBuilder) Emit() *Interaction

type Interface

type Interface struct {
}

A scope that includes all 'interface' definitions.

func NewInterface

func NewInterface() *Interface

func (*Interface) Read

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

func (*Interface) String

func (p *Interface) String() string

func (*Interface) Write

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

type InterfaceBuilder

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

func NewInterfaceBuilder

func NewInterfaceBuilder() *InterfaceBuilder

func (InterfaceBuilder) Emit

func (p InterfaceBuilder) Emit() *Interface

type Program

type Program struct {
}

The Program scope.

This allows annotations on the `package` definition, which implies the annotaiton applies to the entire program.

func NewProgram

func NewProgram() *Program

func (*Program) Read

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

func (*Program) String

func (p *Program) String() string

func (*Program) Write

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

type ProgramBuilder

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

func NewProgramBuilder

func NewProgramBuilder() *ProgramBuilder

func (ProgramBuilder) Emit

func (p ProgramBuilder) Emit() *Program

type RootDefinition

type RootDefinition struct {
}

A scope that includes all program-scoped definition.

func NewRootDefinition

func NewRootDefinition() *RootDefinition

func (*RootDefinition) Read

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

func (*RootDefinition) String

func (p *RootDefinition) String() string

func (*RootDefinition) Write

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

type RootDefinitionBuilder

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

func NewRootDefinitionBuilder

func NewRootDefinitionBuilder() *RootDefinitionBuilder

func (RootDefinitionBuilder) Emit

type Schema

type Schema struct {
}

Indicates that an annotation should be included in the runtime schema.

See thrift/lib/thrift/schema.thrift

func NewSchema

func NewSchema() *Schema

func (*Schema) Read

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

func (*Schema) String

func (p *Schema) String() string

func (*Schema) Write

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

type SchemaBuilder

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

func NewSchemaBuilder

func NewSchemaBuilder() *SchemaBuilder

func (SchemaBuilder) Emit

func (p SchemaBuilder) Emit() *Schema

type Service

type Service struct {
}

The `service` definition scope.

func NewService

func NewService() *Service

func (*Service) Read

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

func (*Service) String

func (p *Service) String() string

func (*Service) Write

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

type ServiceBuilder

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

func NewServiceBuilder

func NewServiceBuilder() *ServiceBuilder

func (ServiceBuilder) Emit

func (p ServiceBuilder) Emit() *Service

type Struct

type Struct struct {
}

The `struct` definition scope.

func NewStruct

func NewStruct() *Struct

func (*Struct) Read

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

func (*Struct) String

func (p *Struct) String() string

func (*Struct) Write

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

type StructBuilder

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

func NewStructBuilder

func NewStructBuilder() *StructBuilder

func (StructBuilder) Emit

func (p StructBuilder) Emit() *Struct

type Structured

type Structured struct {
}

A scope that includes all 'structured' definitions.

func NewStructured

func NewStructured() *Structured

func (*Structured) Read

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

func (*Structured) String

func (p *Structured) String() string

func (*Structured) Write

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

type StructuredBuilder

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

func NewStructuredBuilder

func NewStructuredBuilder() *StructuredBuilder

func (StructuredBuilder) Emit

func (p StructuredBuilder) Emit() *Structured

type Transitive

type Transitive struct {
}

Indicates that the scope of sibling annotations is transitive.

For example:

@scope.Struct
@scope.Union
@scope.Exception
@scope.Transitive
struct Structured {}

Annotating a Thrift struct with @Structured automatically applies @scope.Struct, @scope.Union and @scope.Exception annotations, i.e.

@Structured
struct MyAnnotation {}

is equivalent to

@scope.Struct
@scope.Union
@scope.Exception
struct MyAnnotation {}

func NewTransitive

func NewTransitive() *Transitive

func (*Transitive) Read

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

func (*Transitive) String

func (p *Transitive) String() string

func (*Transitive) Write

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

type TransitiveBuilder

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

func NewTransitiveBuilder

func NewTransitiveBuilder() *TransitiveBuilder

func (TransitiveBuilder) Emit

func (p TransitiveBuilder) Emit() *Transitive

type Typedef

type Typedef struct {
}

The `typedef` definition scope.

func NewTypedef

func NewTypedef() *Typedef

func (*Typedef) Read

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

func (*Typedef) String

func (p *Typedef) String() string

func (*Typedef) Write

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

type TypedefBuilder

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

func NewTypedefBuilder

func NewTypedefBuilder() *TypedefBuilder

func (TypedefBuilder) Emit

func (p TypedefBuilder) Emit() *Typedef

type Union

type Union struct {
}

The `union` definition scope.

func NewUnion

func NewUnion() *Union

func (*Union) Read

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

func (*Union) String

func (p *Union) String() string

func (*Union) Write

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

type UnionBuilder

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

func NewUnionBuilder

func NewUnionBuilder() *UnionBuilder

func (UnionBuilder) Emit

func (p UnionBuilder) Emit() *Union

Jump to

Keyboard shortcuts

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