Documentation
¶
Index ¶
- Constants
- Variables
- type Argument
- type Feature
- type Function
- type GenerateServiceRequest
- type GenerateServiceResponse
- type HandshakeRequest
- type HandshakeResponse
- type Module
- type ModuleID
- type Plugin
- type PluginHandler
- type Plugin_Goodbye_Args
- type Plugin_Goodbye_Result
- type Plugin_Handshake_Args
- type Plugin_Handshake_Result
- type Service
- type ServiceGenerator
- type ServiceGeneratorHandler
- type ServiceGenerator_Generate_Args
- func (v *ServiceGenerator_Generate_Args) EnvelopeType() wire.EnvelopeType
- 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) 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
- type Type
- type TypePair
- type TypeReference
Constants ¶
View Source
const Version int32 = 2
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) }{}
Functions ¶
This section is empty.
Types ¶
type Feature ¶
type Feature int32
const (
FeatureServiceGenerator Feature = 1
)
func (Feature) MarshalJSON ¶ added in v0.5.0
func (*Feature) UnmarshalJSON ¶ added in v0.5.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) FromWire ¶
func (v *GenerateServiceRequest) FromWire(w wire.Value) error
func (*GenerateServiceRequest) String ¶
func (v *GenerateServiceRequest) String() string
type GenerateServiceResponse ¶
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) String ¶
func (v *HandshakeRequest) String() string
type HandshakeResponse ¶
type HandshakeResponse struct { Name string `json:"name"` ApiVersion int32 `json:"apiVersion"` Features []Feature `json:"features"` }
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) 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) 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) 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) 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) 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) 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) 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
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) String ¶
func (v *TypeReference) String() string
Click to show internal directories.
Click to hide internal directories.