Documentation
¶
Index ¶
Constants ¶
View Source
const Version int32 = 1
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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)
}
type Service ¶
type ServiceGenerator ¶
type ServiceGenerator interface {
Generate(
Request *GenerateServiceRequest,
) (*GenerateServiceResponse, error)
}
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) String ¶
func (v SimpleType) String() string
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.