system

package
v0.0.0-...-c8afd98 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 16, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const SystemPluginID = "system"

Variables

View Source
var File_pkg_plugins_apis_system_system_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use BrokerID.ProtoReflect.Descriptor instead.

func (*BrokerID) GetId

func (x *BrokerID) GetId() uint32

func (*BrokerID) ProtoMessage

func (*BrokerID) ProtoMessage()

func (*BrokerID) ProtoReflect

func (x *BrokerID) ProtoReflect() protoreflect.Message

func (*BrokerID) Reset

func (x *BrokerID) Reset()

func (*BrokerID) String

func (x *BrokerID) String() string

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL