Documentation ¶
Index ¶
- Variables
- func RegisterBasePluginServiceServer(s *grpc.Server, srv BasePluginServiceServer)
- type BasePluginServiceClient
- type BasePluginServiceServer
- type PluginInfoRequest
- type PluginInfoResponse
- func (*PluginInfoResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PluginInfoResponse) GetName() string
- func (x *PluginInfoResponse) GetType() PluginType
- func (*PluginInfoResponse) ProtoMessage()
- func (x *PluginInfoResponse) ProtoReflect() protoreflect.Message
- func (x *PluginInfoResponse) Reset()
- func (x *PluginInfoResponse) String() string
- type PluginType
- type SetConfigRequest
- func (*SetConfigRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SetConfigRequest) GetConfig() map[string]string
- func (*SetConfigRequest) ProtoMessage()
- func (x *SetConfigRequest) ProtoReflect() protoreflect.Message
- func (x *SetConfigRequest) Reset()
- func (x *SetConfigRequest) String() string
- type SetConfigResponse
- type UnimplementedBasePluginServiceServer
Constants ¶
This section is empty.
Variables ¶
var ( PluginType_name = map[int32]string{ 0: "PLUGIN_TYPE_UNSPECIFIED", 1: "PLUGIN_TYPE_APM", 2: "PLUGIN_TYPE_STRATEGY", 3: "PLUGIN_TYPE_TARGET", } PluginType_value = map[string]int32{ "PLUGIN_TYPE_UNSPECIFIED": 0, "PLUGIN_TYPE_APM": 1, "PLUGIN_TYPE_STRATEGY": 2, "PLUGIN_TYPE_TARGET": 3, } )
Enum value maps for PluginType.
var File_plugins_base_proto_v1_base_proto protoreflect.FileDescriptor
Functions ¶
func RegisterBasePluginServiceServer ¶
func RegisterBasePluginServiceServer(s *grpc.Server, srv BasePluginServiceServer)
Types ¶
type BasePluginServiceClient ¶
type BasePluginServiceClient interface { PluginInfo(ctx context.Context, in *PluginInfoRequest, opts ...grpc.CallOption) (*PluginInfoResponse, error) SetConfig(ctx context.Context, in *SetConfigRequest, opts ...grpc.CallOption) (*SetConfigResponse, error) }
BasePluginServiceClient is the client API for BasePluginService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewBasePluginServiceClient ¶
func NewBasePluginServiceClient(cc grpc.ClientConnInterface) BasePluginServiceClient
type BasePluginServiceServer ¶
type BasePluginServiceServer interface { PluginInfo(context.Context, *PluginInfoRequest) (*PluginInfoResponse, error) SetConfig(context.Context, *SetConfigRequest) (*SetConfigResponse, error) }
BasePluginServiceServer is the server API for BasePluginService service.
type PluginInfoRequest ¶
type PluginInfoRequest struct {
// contains filtered or unexported fields
}
func (*PluginInfoRequest) Descriptor
deprecated
func (*PluginInfoRequest) Descriptor() ([]byte, []int)
Deprecated: Use PluginInfoRequest.ProtoReflect.Descriptor instead.
func (*PluginInfoRequest) ProtoMessage ¶
func (*PluginInfoRequest) ProtoMessage()
func (*PluginInfoRequest) ProtoReflect ¶
func (x *PluginInfoRequest) ProtoReflect() protoreflect.Message
func (*PluginInfoRequest) Reset ¶
func (x *PluginInfoRequest) Reset()
func (*PluginInfoRequest) String ¶
func (x *PluginInfoRequest) String() string
type PluginInfoResponse ¶
type PluginInfoResponse struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Type PluginType `` /* 127-byte string literal not displayed */ // contains filtered or unexported fields }
func (*PluginInfoResponse) Descriptor
deprecated
func (*PluginInfoResponse) Descriptor() ([]byte, []int)
Deprecated: Use PluginInfoResponse.ProtoReflect.Descriptor instead.
func (*PluginInfoResponse) GetName ¶
func (x *PluginInfoResponse) GetName() string
func (*PluginInfoResponse) GetType ¶
func (x *PluginInfoResponse) GetType() PluginType
func (*PluginInfoResponse) ProtoMessage ¶
func (*PluginInfoResponse) ProtoMessage()
func (*PluginInfoResponse) ProtoReflect ¶
func (x *PluginInfoResponse) ProtoReflect() protoreflect.Message
func (*PluginInfoResponse) Reset ¶
func (x *PluginInfoResponse) Reset()
func (*PluginInfoResponse) String ¶
func (x *PluginInfoResponse) String() string
type PluginType ¶
type PluginType int32
const ( PluginType_PLUGIN_TYPE_UNSPECIFIED PluginType = 0 PluginType_PLUGIN_TYPE_APM PluginType = 1 PluginType_PLUGIN_TYPE_STRATEGY PluginType = 2 PluginType_PLUGIN_TYPE_TARGET PluginType = 3 )
func (PluginType) Descriptor ¶
func (PluginType) Descriptor() protoreflect.EnumDescriptor
func (PluginType) Enum ¶
func (x PluginType) Enum() *PluginType
func (PluginType) EnumDescriptor
deprecated
func (PluginType) EnumDescriptor() ([]byte, []int)
Deprecated: Use PluginType.Descriptor instead.
func (PluginType) Number ¶
func (x PluginType) Number() protoreflect.EnumNumber
func (PluginType) String ¶
func (x PluginType) String() string
func (PluginType) Type ¶
func (PluginType) Type() protoreflect.EnumType
type SetConfigRequest ¶
type SetConfigRequest struct { Config map[string]string `` /* 153-byte string literal not displayed */ // contains filtered or unexported fields }
func (*SetConfigRequest) Descriptor
deprecated
func (*SetConfigRequest) Descriptor() ([]byte, []int)
Deprecated: Use SetConfigRequest.ProtoReflect.Descriptor instead.
func (*SetConfigRequest) GetConfig ¶
func (x *SetConfigRequest) GetConfig() map[string]string
func (*SetConfigRequest) ProtoMessage ¶
func (*SetConfigRequest) ProtoMessage()
func (*SetConfigRequest) ProtoReflect ¶
func (x *SetConfigRequest) ProtoReflect() protoreflect.Message
func (*SetConfigRequest) Reset ¶
func (x *SetConfigRequest) Reset()
func (*SetConfigRequest) String ¶
func (x *SetConfigRequest) String() string
type SetConfigResponse ¶
type SetConfigResponse struct {
// contains filtered or unexported fields
}
func (*SetConfigResponse) Descriptor
deprecated
func (*SetConfigResponse) Descriptor() ([]byte, []int)
Deprecated: Use SetConfigResponse.ProtoReflect.Descriptor instead.
func (*SetConfigResponse) ProtoMessage ¶
func (*SetConfigResponse) ProtoMessage()
func (*SetConfigResponse) ProtoReflect ¶
func (x *SetConfigResponse) ProtoReflect() protoreflect.Message
func (*SetConfigResponse) Reset ¶
func (x *SetConfigResponse) Reset()
func (*SetConfigResponse) String ¶
func (x *SetConfigResponse) String() string
type UnimplementedBasePluginServiceServer ¶
type UnimplementedBasePluginServiceServer struct { }
UnimplementedBasePluginServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedBasePluginServiceServer) PluginInfo ¶
func (*UnimplementedBasePluginServiceServer) PluginInfo(context.Context, *PluginInfoRequest) (*PluginInfoResponse, error)
func (*UnimplementedBasePluginServiceServer) SetConfig ¶
func (*UnimplementedBasePluginServiceServer) SetConfig(context.Context, *SetConfigRequest) (*SetConfigResponse, error)