Documentation ¶
Index ¶
Constants ¶
const SystemPluginID = "system"
Variables ¶
var File_pkg_plugins_apis_system_system_proto protoreflect.FileDescriptor
var System_ServiceDesc = grpc.ServiceDesc{ ServiceName: "system.System", HandlerType: (*SystemServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "UseManagementAPI", Handler: _System_UseManagementAPI_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "pkg/plugins/apis/system/system.proto", }
System_ServiceDesc is the grpc.ServiceDesc for System service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func NewPlugin ¶
func NewPlugin(client SystemPluginClient) plugin.Plugin
func RegisterSystemServer ¶
func RegisterSystemServer(s grpc.ServiceRegistrar, srv SystemServer)
Types ¶
type BrokerID ¶
type BrokerID struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*BrokerID) Descriptor
deprecated
func (*BrokerID) ProtoMessage ¶
func (*BrokerID) ProtoMessage()
func (*BrokerID) ProtoReflect ¶
func (x *BrokerID) ProtoReflect() protoreflect.Message
type SystemClient ¶
type SystemClient interface {
UseManagementAPI(ctx context.Context, in *BrokerID, opts ...grpc.CallOption) (*emptypb.Empty, error)
}
SystemClient is the client API for System 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 NewSystemClient ¶
func NewSystemClient(cc grpc.ClientConnInterface) SystemClient
type SystemPluginClient ¶
type SystemPluginClient interface {
UseManagementAPI(api management.ManagementClient)
}
type SystemPluginServer ¶
type SystemPluginServer interface {
ServeManagementAPI(api management.ManagementServer)
}
type SystemServer ¶
type SystemServer interface { UseManagementAPI(context.Context, *BrokerID) (*emptypb.Empty, error) // contains filtered or unexported methods }
SystemServer is the server API for System service. All implementations must embed UnimplementedSystemServer for forward compatibility
type UnimplementedSystemServer ¶
type UnimplementedSystemServer struct { }
UnimplementedSystemServer must be embedded to have forward compatible implementations.
func (UnimplementedSystemServer) UseManagementAPI ¶
type UnsafeSystemServer ¶
type UnsafeSystemServer interface {
// contains filtered or unexported methods
}
UnsafeSystemServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SystemServer will result in compilation errors.