Documentation ¶
Index ¶
- Variables
- type Const
- type ConstBuilder
- type Definition
- type DefinitionBuilder
- type Enum
- type EnumBuilder
- type EnumValue
- type EnumValueBuilder
- type Exception
- type ExceptionBuilder
- type Field
- type FieldBuilder
- type Function
- type FunctionBuilder
- type Interaction
- type InteractionBuilder
- type Interface
- type InterfaceBuilder
- type Program
- type ProgramBuilder
- type RootDefinition
- type RootDefinitionBuilder
- type Schema
- type SchemaBuilder
- type Service
- type ServiceBuilder
- type Struct
- type StructBuilder
- type Structured
- type StructuredBuilder
- type Transitive
- type TransitiveBuilder
- type Typedef
- type TypedefBuilder
- type Union
- type UnionBuilder
Constants ¶
This section is empty.
Variables ¶
var GoUnusedProtection__ int
Functions ¶
This section is empty.
Types ¶
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) String ¶
func (p *Definition) String() string
type DefinitionBuilder ¶
type DefinitionBuilder struct {
// contains filtered or unexported fields
}
func NewDefinitionBuilder ¶
func NewDefinitionBuilder() *DefinitionBuilder
func (DefinitionBuilder) Emit ¶
func (p DefinitionBuilder) Emit() *Definition
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
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
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.
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
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) String ¶
func (p *Interaction) String() string
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
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
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) String ¶
func (p *RootDefinition) String() string
type RootDefinitionBuilder ¶
type RootDefinitionBuilder struct {
// contains filtered or unexported fields
}
func NewRootDefinitionBuilder ¶
func NewRootDefinitionBuilder() *RootDefinitionBuilder
func (RootDefinitionBuilder) Emit ¶
func (p RootDefinitionBuilder) Emit() *RootDefinition
type Schema ¶
type Schema struct { }
Indicates that an annotation should be included in the runtime schema.
See thrift/lib/thrift/schema.thrift
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
type ServiceBuilder ¶
type ServiceBuilder struct {
// contains filtered or unexported fields
}
func NewServiceBuilder ¶
func NewServiceBuilder() *ServiceBuilder
func (ServiceBuilder) Emit ¶
func (p ServiceBuilder) Emit() *Service
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) String ¶
func (p *Structured) String() string
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) String ¶
func (p *Transitive) String() string
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
type TypedefBuilder ¶
type TypedefBuilder struct {
// contains filtered or unexported fields
}
func NewTypedefBuilder ¶
func NewTypedefBuilder() *TypedefBuilder
func (TypedefBuilder) Emit ¶
func (p TypedefBuilder) Emit() *Typedef
type UnionBuilder ¶
type UnionBuilder struct {
// contains filtered or unexported fields
}
func NewUnionBuilder ¶
func NewUnionBuilder() *UnionBuilder
func (UnionBuilder) Emit ¶
func (p UnionBuilder) Emit() *Union