Documentation
¶
Index ¶
- Constants
- Variables
- type Argument
- type Feature
- func (v Feature) Equals(rhs Feature) bool
- func (v *Feature) FromWire(w wire.Value) error
- func (v Feature) MarshalJSON() ([]byte, error)
- func (v Feature) String() string
- func (v Feature) ToWire() (wire.Value, error)
- func (v *Feature) UnmarshalJSON(text []byte) error
- func (v *Feature) UnmarshalText(value []byte) error
- type Function
- type GenerateServiceRequest
- type GenerateServiceResponse
- type HandshakeRequest
- type HandshakeResponse
- type Module
- type ModuleID
- type Plugin
- type PluginHandler
- type Plugin_Goodbye_Args
- func (v *Plugin_Goodbye_Args) EnvelopeType() wire.EnvelopeType
- func (v *Plugin_Goodbye_Args) Equals(rhs *Plugin_Goodbye_Args) bool
- func (v *Plugin_Goodbye_Args) FromWire(w wire.Value) error
- func (v *Plugin_Goodbye_Args) MethodName() string
- func (v *Plugin_Goodbye_Args) String() string
- func (v *Plugin_Goodbye_Args) ToWire() (wire.Value, error)
- type Plugin_Goodbye_Result
- func (v *Plugin_Goodbye_Result) EnvelopeType() wire.EnvelopeType
- func (v *Plugin_Goodbye_Result) Equals(rhs *Plugin_Goodbye_Result) bool
- func (v *Plugin_Goodbye_Result) FromWire(w wire.Value) error
- func (v *Plugin_Goodbye_Result) MethodName() string
- func (v *Plugin_Goodbye_Result) String() string
- func (v *Plugin_Goodbye_Result) ToWire() (wire.Value, error)
- type Plugin_Handshake_Args
- func (v *Plugin_Handshake_Args) EnvelopeType() wire.EnvelopeType
- func (v *Plugin_Handshake_Args) Equals(rhs *Plugin_Handshake_Args) bool
- func (v *Plugin_Handshake_Args) FromWire(w wire.Value) error
- func (v *Plugin_Handshake_Args) MethodName() string
- func (v *Plugin_Handshake_Args) String() string
- func (v *Plugin_Handshake_Args) ToWire() (wire.Value, error)
- type Plugin_Handshake_Result
- func (v *Plugin_Handshake_Result) EnvelopeType() wire.EnvelopeType
- func (v *Plugin_Handshake_Result) Equals(rhs *Plugin_Handshake_Result) bool
- func (v *Plugin_Handshake_Result) FromWire(w wire.Value) error
- func (v *Plugin_Handshake_Result) MethodName() string
- func (v *Plugin_Handshake_Result) String() string
- func (v *Plugin_Handshake_Result) ToWire() (wire.Value, error)
- type Service
- type ServiceGenerator
- type ServiceGeneratorHandler
- type ServiceGenerator_Generate_Args
- func (v *ServiceGenerator_Generate_Args) EnvelopeType() wire.EnvelopeType
- func (v *ServiceGenerator_Generate_Args) Equals(rhs *ServiceGenerator_Generate_Args) bool
- func (v *ServiceGenerator_Generate_Args) FromWire(w wire.Value) error
- func (v *ServiceGenerator_Generate_Args) MethodName() string
- func (v *ServiceGenerator_Generate_Args) String() string
- func (v *ServiceGenerator_Generate_Args) ToWire() (wire.Value, error)
- type ServiceGenerator_Generate_Result
- func (v *ServiceGenerator_Generate_Result) EnvelopeType() wire.EnvelopeType
- func (v *ServiceGenerator_Generate_Result) Equals(rhs *ServiceGenerator_Generate_Result) bool
- func (v *ServiceGenerator_Generate_Result) FromWire(w wire.Value) error
- func (v *ServiceGenerator_Generate_Result) MethodName() string
- func (v *ServiceGenerator_Generate_Result) String() string
- func (v *ServiceGenerator_Generate_Result) ToWire() (wire.Value, error)
- type ServiceID
- type SimpleType
- func (v SimpleType) Equals(rhs SimpleType) bool
- func (v *SimpleType) FromWire(w wire.Value) error
- func (v SimpleType) MarshalJSON() ([]byte, error)
- func (v SimpleType) String() string
- func (v SimpleType) ToWire() (wire.Value, error)
- func (v *SimpleType) UnmarshalJSON(text []byte) error
- func (v *SimpleType) UnmarshalText(value []byte) error
- type Type
- type TypePair
- type TypeReference
Constants ¶
View Source
const APIVersion int32 = 3
Variables ¶
View Source
var Plugin_Goodbye_Helper = struct { Args func() *Plugin_Goodbye_Args IsException func(error) bool WrapResponse func(error) (*Plugin_Goodbye_Result, error) UnwrapResponse func(*Plugin_Goodbye_Result) error }{}
View Source
var Plugin_Handshake_Helper = struct { Args func(request *HandshakeRequest) *Plugin_Handshake_Args IsException func(error) bool WrapResponse func(*HandshakeResponse, error) (*Plugin_Handshake_Result, error) UnwrapResponse func(*Plugin_Handshake_Result) (*HandshakeResponse, error) }{}
View Source
var ServiceGenerator_Generate_Helper = struct { Args func(request *GenerateServiceRequest) *ServiceGenerator_Generate_Args IsException func(error) bool WrapResponse func(*GenerateServiceResponse, error) (*ServiceGenerator_Generate_Result, error) UnwrapResponse func(*ServiceGenerator_Generate_Result) (*GenerateServiceResponse, error) }{}
View Source
var ThriftModule = &thriftreflect.ThriftModule{Name: "api", Package: "go.uber.org/thriftrw/plugin/api", FilePath: "api.thrift", SHA1: "d31dcccbc1fd417d282feaed8f9d07e1d8eb2b8a", Raw: rawIDL}
Functions ¶
This section is empty.
Types ¶
type Feature ¶
type Feature int32
const (
FeatureServiceGenerator Feature = 1
)
func Feature_Values ¶ added in v1.3.0
func Feature_Values() []Feature
func (Feature) MarshalJSON ¶ added in v0.5.0
func (*Feature) UnmarshalJSON ¶ added in v0.5.0
func (*Feature) UnmarshalText ¶ added in v1.3.0
type Function ¶
type GenerateServiceRequest ¶
type GenerateServiceRequest struct { RootServices []ServiceID `json:"rootServices"` Services map[ServiceID]*Service `json:"services"` Modules map[ModuleID]*Module `json:"modules"` }
func (*GenerateServiceRequest) Equals ¶ added in v1.2.0
func (v *GenerateServiceRequest) Equals(rhs *GenerateServiceRequest) bool
func (*GenerateServiceRequest) FromWire ¶
func (v *GenerateServiceRequest) FromWire(w wire.Value) error
func (*GenerateServiceRequest) String ¶
func (v *GenerateServiceRequest) String() string
type GenerateServiceResponse ¶
func (*GenerateServiceResponse) Equals ¶ added in v1.2.0
func (v *GenerateServiceResponse) Equals(rhs *GenerateServiceResponse) bool
func (*GenerateServiceResponse) FromWire ¶
func (v *GenerateServiceResponse) FromWire(w wire.Value) error
func (*GenerateServiceResponse) String ¶
func (v *GenerateServiceResponse) String() string
type HandshakeRequest ¶
type HandshakeRequest struct{}
func (*HandshakeRequest) Equals ¶ added in v1.2.0
func (v *HandshakeRequest) Equals(rhs *HandshakeRequest) bool
func (*HandshakeRequest) String ¶
func (v *HandshakeRequest) String() string
type HandshakeResponse ¶
type HandshakeResponse struct { Name string `json:"name"` APIVersion int32 `json:"apiVersion"` Features []Feature `json:"features"` LibraryVersion *string `json:"libraryVersion,omitempty"` }
func (*HandshakeResponse) Equals ¶ added in v1.2.0
func (v *HandshakeResponse) Equals(rhs *HandshakeResponse) bool
func (*HandshakeResponse) String ¶
func (v *HandshakeResponse) String() string
type Plugin ¶
type Plugin interface { Goodbye() error Handshake( Request *HandshakeRequest, ) (*HandshakeResponse, error) }
func NewPluginClient ¶ added in v0.5.0
NewPluginClient builds a new Plugin client.
type PluginHandler ¶ added in v0.5.0
type PluginHandler struct {
// contains filtered or unexported fields
}
PluginHandler serves an implementation of the Plugin service.
func NewPluginHandler ¶ added in v0.5.0
func NewPluginHandler(service Plugin) PluginHandler
NewPluginHandler builds a new Plugin handler.
type Plugin_Goodbye_Args ¶ added in v0.5.0
type Plugin_Goodbye_Args struct{}
func (*Plugin_Goodbye_Args) EnvelopeType ¶ added in v0.5.0
func (v *Plugin_Goodbye_Args) EnvelopeType() wire.EnvelopeType
func (*Plugin_Goodbye_Args) Equals ¶ added in v1.2.0
func (v *Plugin_Goodbye_Args) Equals(rhs *Plugin_Goodbye_Args) bool
func (*Plugin_Goodbye_Args) FromWire ¶ added in v0.5.0
func (v *Plugin_Goodbye_Args) FromWire(w wire.Value) error
func (*Plugin_Goodbye_Args) MethodName ¶ added in v0.5.0
func (v *Plugin_Goodbye_Args) MethodName() string
func (*Plugin_Goodbye_Args) String ¶ added in v0.5.0
func (v *Plugin_Goodbye_Args) String() string
type Plugin_Goodbye_Result ¶ added in v0.5.0
type Plugin_Goodbye_Result struct{}
func (*Plugin_Goodbye_Result) EnvelopeType ¶ added in v0.5.0
func (v *Plugin_Goodbye_Result) EnvelopeType() wire.EnvelopeType
func (*Plugin_Goodbye_Result) Equals ¶ added in v1.2.0
func (v *Plugin_Goodbye_Result) Equals(rhs *Plugin_Goodbye_Result) bool
func (*Plugin_Goodbye_Result) FromWire ¶ added in v0.5.0
func (v *Plugin_Goodbye_Result) FromWire(w wire.Value) error
func (*Plugin_Goodbye_Result) MethodName ¶ added in v0.5.0
func (v *Plugin_Goodbye_Result) MethodName() string
func (*Plugin_Goodbye_Result) String ¶ added in v0.5.0
func (v *Plugin_Goodbye_Result) String() string
type Plugin_Handshake_Args ¶ added in v0.5.0
type Plugin_Handshake_Args struct {
Request *HandshakeRequest `json:"request,omitempty"`
}
func (*Plugin_Handshake_Args) EnvelopeType ¶ added in v0.5.0
func (v *Plugin_Handshake_Args) EnvelopeType() wire.EnvelopeType
func (*Plugin_Handshake_Args) Equals ¶ added in v1.2.0
func (v *Plugin_Handshake_Args) Equals(rhs *Plugin_Handshake_Args) bool
func (*Plugin_Handshake_Args) FromWire ¶ added in v0.5.0
func (v *Plugin_Handshake_Args) FromWire(w wire.Value) error
func (*Plugin_Handshake_Args) MethodName ¶ added in v0.5.0
func (v *Plugin_Handshake_Args) MethodName() string
func (*Plugin_Handshake_Args) String ¶ added in v0.5.0
func (v *Plugin_Handshake_Args) String() string
type Plugin_Handshake_Result ¶ added in v0.5.0
type Plugin_Handshake_Result struct {
Success *HandshakeResponse `json:"success,omitempty"`
}
func (*Plugin_Handshake_Result) EnvelopeType ¶ added in v0.5.0
func (v *Plugin_Handshake_Result) EnvelopeType() wire.EnvelopeType
func (*Plugin_Handshake_Result) Equals ¶ added in v1.2.0
func (v *Plugin_Handshake_Result) Equals(rhs *Plugin_Handshake_Result) bool
func (*Plugin_Handshake_Result) FromWire ¶ added in v0.5.0
func (v *Plugin_Handshake_Result) FromWire(w wire.Value) error
func (*Plugin_Handshake_Result) MethodName ¶ added in v0.5.0
func (v *Plugin_Handshake_Result) MethodName() string
func (*Plugin_Handshake_Result) String ¶ added in v0.5.0
func (v *Plugin_Handshake_Result) String() string
type Service ¶
type ServiceGenerator ¶
type ServiceGenerator interface { Generate( Request *GenerateServiceRequest, ) (*GenerateServiceResponse, error) }
func NewServiceGeneratorClient ¶ added in v0.5.0
func NewServiceGeneratorClient(c envelope.Client) ServiceGenerator
NewServiceGeneratorClient builds a new ServiceGenerator client.
type ServiceGeneratorHandler ¶ added in v0.5.0
type ServiceGeneratorHandler struct {
// contains filtered or unexported fields
}
ServiceGeneratorHandler serves an implementation of the ServiceGenerator service.
func NewServiceGeneratorHandler ¶ added in v0.5.0
func NewServiceGeneratorHandler(service ServiceGenerator) ServiceGeneratorHandler
NewServiceGeneratorHandler builds a new ServiceGenerator handler.
type ServiceGenerator_Generate_Args ¶ added in v0.5.0
type ServiceGenerator_Generate_Args struct {
Request *GenerateServiceRequest `json:"request,omitempty"`
}
func (*ServiceGenerator_Generate_Args) EnvelopeType ¶ added in v0.5.0
func (v *ServiceGenerator_Generate_Args) EnvelopeType() wire.EnvelopeType
func (*ServiceGenerator_Generate_Args) Equals ¶ added in v1.2.0
func (v *ServiceGenerator_Generate_Args) Equals(rhs *ServiceGenerator_Generate_Args) bool
func (*ServiceGenerator_Generate_Args) FromWire ¶ added in v0.5.0
func (v *ServiceGenerator_Generate_Args) FromWire(w wire.Value) error
func (*ServiceGenerator_Generate_Args) MethodName ¶ added in v0.5.0
func (v *ServiceGenerator_Generate_Args) MethodName() string
func (*ServiceGenerator_Generate_Args) String ¶ added in v0.5.0
func (v *ServiceGenerator_Generate_Args) String() string
type ServiceGenerator_Generate_Result ¶ added in v0.5.0
type ServiceGenerator_Generate_Result struct {
Success *GenerateServiceResponse `json:"success,omitempty"`
}
func (*ServiceGenerator_Generate_Result) EnvelopeType ¶ added in v0.5.0
func (v *ServiceGenerator_Generate_Result) EnvelopeType() wire.EnvelopeType
func (*ServiceGenerator_Generate_Result) Equals ¶ added in v1.2.0
func (v *ServiceGenerator_Generate_Result) Equals(rhs *ServiceGenerator_Generate_Result) bool
func (*ServiceGenerator_Generate_Result) FromWire ¶ added in v0.5.0
func (v *ServiceGenerator_Generate_Result) FromWire(w wire.Value) error
func (*ServiceGenerator_Generate_Result) MethodName ¶ added in v0.5.0
func (v *ServiceGenerator_Generate_Result) MethodName() string
func (*ServiceGenerator_Generate_Result) String ¶ added in v0.5.0
func (v *ServiceGenerator_Generate_Result) String() string
type SimpleType ¶
type SimpleType int32
const ( SimpleTypeBool SimpleType = 1 SimpleTypeByte SimpleType = 2 SimpleTypeInt8 SimpleType = 3 SimpleTypeInt16 SimpleType = 4 SimpleTypeInt32 SimpleType = 5 SimpleTypeInt64 SimpleType = 6 SimpleTypeFloat64 SimpleType = 7 SimpleTypeString SimpleType = 8 SimpleTypeStructEmpty SimpleType = 9 )
func SimpleType_Values ¶ added in v1.3.0
func SimpleType_Values() []SimpleType
func (SimpleType) Equals ¶ added in v1.2.0
func (v SimpleType) Equals(rhs SimpleType) bool
func (SimpleType) MarshalJSON ¶ added in v0.5.0
func (v SimpleType) MarshalJSON() ([]byte, error)
func (SimpleType) String ¶
func (v SimpleType) String() string
func (*SimpleType) UnmarshalJSON ¶ added in v0.5.0
func (v *SimpleType) UnmarshalJSON(text []byte) error
func (*SimpleType) UnmarshalText ¶ added in v1.3.0
func (v *SimpleType) UnmarshalText(value []byte) error
type Type ¶
type Type struct { SimpleType *SimpleType `json:"simpleType,omitempty"` SliceType *Type `json:"sliceType,omitempty"` KeyValueSliceType *TypePair `json:"keyValueSliceType,omitempty"` MapType *TypePair `json:"mapType,omitempty"` ReferenceType *TypeReference `json:"referenceType,omitempty"` PointerType *Type `json:"pointerType,omitempty"` }
type TypeReference ¶
func (*TypeReference) Equals ¶ added in v1.2.0
func (v *TypeReference) Equals(rhs *TypeReference) bool
func (*TypeReference) String ¶
func (v *TypeReference) String() string
Click to show internal directories.
Click to hide internal directories.