Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var File_plugin_proto protoreflect.FileDescriptor
var Plugin_ServiceDesc = grpc.ServiceDesc{ ServiceName: "proto.Plugin", HandlerType: (*PluginServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "OnEnable", Handler: _Plugin_OnEnable_Handler, }, { MethodName: "OnDisable", Handler: _Plugin_OnDisable_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "plugin.proto", }
Plugin_ServiceDesc is the grpc.ServiceDesc for Plugin service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterPluginServer ¶
func RegisterPluginServer(s grpc.ServiceRegistrar, srv PluginServer)
Types ¶
type Empty ¶ added in v0.1.3
type Empty struct {
// contains filtered or unexported fields
}
func (*Empty) Descriptor
deprecated
added in
v0.1.3
func (*Empty) ProtoMessage ¶ added in v0.1.3
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶ added in v0.1.3
func (x *Empty) ProtoReflect() protoreflect.Message
type PluginClient ¶
type PluginClient interface {
OnEnable(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error)
OnDisable(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error)
}
PluginClient is the client API for Plugin service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewPluginClient ¶
func NewPluginClient(cc grpc.ClientConnInterface) PluginClient
type PluginServer ¶
type PluginServer interface {
OnEnable(context.Context, *Empty) (*Empty, error)
OnDisable(context.Context, *Empty) (*Empty, error)
// contains filtered or unexported methods
}
PluginServer is the server API for Plugin service. All implementations must embed UnimplementedPluginServer for forward compatibility
type UnimplementedPluginServer ¶
type UnimplementedPluginServer struct {
}
UnimplementedPluginServer must be embedded to have forward compatible implementations.
type UnsafePluginServer ¶
type UnsafePluginServer interface {
// contains filtered or unexported methods
}
UnsafePluginServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PluginServer will result in compilation errors.