{"modulePath":"github.com/GoCodeAlone/go-plugin","version":"v1.7.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package plugin\n\n## Constants\n\n```go\nconst (\n\tGRPCBroker_StartStream_FullMethodName = \"/plugin.GRPCBroker/StartStream\"\n)\n```\n\n```go\nconst (\n\tGRPCController_Shutdown_FullMethodName = \"/plugin.GRPCController/Shutdown\"\n)\n```\n\n```go\nconst (\n\tGRPCStdio_StreamStdio_FullMethodName = \"/plugin.GRPCStdio/StreamStdio\"\n)\n```\n\n## Variables\n\n```go\nvar (\n\tStdioData_Channel_name = map[int32]string{\n\t\t0: \"INVALID\",\n\t\t1: \"STDOUT\",\n\t\t2: \"STDERR\",\n\t}\n\tStdioData_Channel_value = map[string]int32{\n\t\t\"INVALID\": 0,\n\t\t\"STDOUT\":  1,\n\t\t\"STDERR\":  2,\n\t}\n)\n```\nEnum value maps for StdioData\\_Channel.\n\n```go\nvar File_internal_plugin_grpc_broker_proto protoreflect.FileDescriptor\n```\n\n```go\nvar File_internal_plugin_grpc_controller_proto protoreflect.FileDescriptor\n```\n\n```go\nvar File_internal_plugin_grpc_stdio_proto protoreflect.FileDescriptor\n```\n\n```go\nvar GRPCBroker_ServiceDesc = grpc.ServiceDesc{\n\tServiceName: \"plugin.GRPCBroker\",\n\tHandlerType: (*GRPCBrokerServer)(nil),\n\tMethods:     []grpc.MethodDesc{},\n\tStreams: []grpc.StreamDesc{\n\t\t{\n\t\t\tStreamName:    \"StartStream\",\n\t\t\tHandler:       _GRPCBroker_StartStream_Handler,\n\t\t\tServerStreams: true,\n\t\t\tClientStreams: true,\n\t\t},\n\t},\n\tMetadata: \"internal/plugin/grpc_broker.proto\",\n}\n```\nGRPCBroker\\_ServiceDesc is the grpc.ServiceDesc for GRPCBroker service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)\n\n```go\nvar GRPCController_ServiceDesc = grpc.ServiceDesc{\n\tServiceName: \"plugin.GRPCController\",\n\tHandlerType: (*GRPCControllerServer)(nil),\n\tMethods: []grpc.MethodDesc{\n\t\t{\n\t\t\tMethodName: \"Shutdown\",\n\t\t\tHandler:    _GRPCController_Shutdown_Handler,\n\t\t},\n\t},\n\tStreams:  []grpc.StreamDesc{},\n\tMetadata: \"internal/plugin/grpc_controller.proto\",\n}\n```\nGRPCController\\_ServiceDesc is the grpc.ServiceDesc for GRPCController service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)\n\n```go\nvar GRPCStdio_ServiceDesc = grpc.ServiceDesc{\n\tServiceName: \"plugin.GRPCStdio\",\n\tHandlerType: (*GRPCStdioServer)(nil),\n\tMethods:     []grpc.MethodDesc{},\n\tStreams: []grpc.StreamDesc{\n\t\t{\n\t\t\tStreamName:    \"StreamStdio\",\n\t\t\tHandler:       _GRPCStdio_StreamStdio_Handler,\n\t\t\tServerStreams: true,\n\t\t},\n\t},\n\tMetadata: \"internal/plugin/grpc_stdio.proto\",\n}\n```\nGRPCStdio\\_ServiceDesc is the grpc.ServiceDesc for GRPCStdio service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)\n\n## Functions\n\n```go\nfunc RegisterGRPCBrokerServer(s grpc.ServiceRegistrar, srv GRPCBrokerServer)\n```\n\n```go\nfunc RegisterGRPCControllerServer(s grpc.ServiceRegistrar, srv GRPCControllerServer)\n```\n\n```go\nfunc RegisterGRPCStdioServer(s grpc.ServiceRegistrar, srv GRPCStdioServer)\n```\n\n## Types\n\n```go\ntype ConnInfo struct {\n\tServiceId uint32          `protobuf:\"varint,1,opt,name=service_id,json=serviceId,proto3\" json:\"service_id,omitempty\"`\n\tNetwork   string          `protobuf:\"bytes,2,opt,name=network,proto3\" json:\"network,omitempty\"`\n\tAddress   string          `protobuf:\"bytes,3,opt,name=address,proto3\" json:\"address,omitempty\"`\n\tKnock     *ConnInfo_Knock `protobuf:\"bytes,4,opt,name=knock,proto3\" json:\"knock,omitempty\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (*ConnInfo) Descriptor() ([]byte, []int)\n```\nDeprecated: Use ConnInfo.ProtoReflect.Descriptor instead.\n\n```go\nfunc (x *ConnInfo) GetAddress() string\n```\n\n```go\nfunc (x *ConnInfo) GetKnock() *ConnInfo_Knock\n```\n\n```go\nfunc (x *ConnInfo) GetNetwork() string\n```\n\n```go\nfunc (x *ConnInfo) GetServiceId() uint32\n```\n\n```go\nfunc (*ConnInfo) ProtoMessage()\n```\n\n```go\nfunc (x *ConnInfo) ProtoReflect() protoreflect.Message\n```\n\n```go\nfunc (x *ConnInfo) Reset()\n```\n\n```go\nfunc (x *ConnInfo) String() string\n```\n\n```go\ntype ConnInfo_Knock struct {\n\tKnock bool   `protobuf:\"varint,1,opt,name=knock,proto3\" json:\"knock,omitempty\"`\n\tAck   bool   `protobuf:\"varint,2,opt,name=ack,proto3\" json:\"ack,omitempty\"`\n\tError string `protobuf:\"bytes,3,opt,name=error,proto3\" json:\"error,omitempty\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (*ConnInfo_Knock) Descriptor() ([]byte, []int)\n```\nDeprecated: Use ConnInfo\\_Knock.ProtoReflect.Descriptor instead.\n\n```go\nfunc (x *ConnInfo_Knock) GetAck() bool\n```\n\n```go\nfunc (x *ConnInfo_Knock) GetError() string\n```\n\n```go\nfunc (x *ConnInfo_Knock) GetKnock() bool\n```\n\n```go\nfunc (*ConnInfo_Knock) ProtoMessage()\n```\n\n```go\nfunc (x *ConnInfo_Knock) ProtoReflect() protoreflect.Message\n```\n\n```go\nfunc (x *ConnInfo_Knock) Reset()\n```\n\n```go\nfunc (x *ConnInfo_Knock) String() string\n```\n\n```go\ntype Empty struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (*Empty) Descriptor() ([]byte, []int)\n```\nDeprecated: Use Empty.ProtoReflect.Descriptor instead.\n\n```go\nfunc (*Empty) ProtoMessage()\n```\n\n```go\nfunc (x *Empty) ProtoReflect() protoreflect.Message\n```\n\n```go\nfunc (x *Empty) Reset()\n```\n\n```go\nfunc (x *Empty) String() string\n```\n\n```go\ntype GRPCBrokerClient interface {\n\tStartStream(ctx context.Context, opts ...grpc.CallOption) (GRPCBroker_StartStreamClient, error)\n}\n```\nGRPCBrokerClient is the client API for GRPCBroker service.\n\nFor semantics around ctx use and closing/ending streaming RPCs, please refer to [https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream](https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream).\n\n```go\nfunc NewGRPCBrokerClient(cc grpc.ClientConnInterface) GRPCBrokerClient\n```\n\n```go\ntype GRPCBrokerServer interface {\n\tStartStream(GRPCBroker_StartStreamServer) error\n}\n```\nGRPCBrokerServer is the server API for GRPCBroker service. All implementations should embed UnimplementedGRPCBrokerServer for forward compatibility\n\n```go\ntype GRPCBroker_StartStreamClient interface {\n\tSend(*ConnInfo) error\n\tRecv() (*ConnInfo, error)\n\tgrpc.ClientStream\n}\n```\n\n```go\ntype GRPCBroker_StartStreamServer interface {\n\tSend(*ConnInfo) error\n\tRecv() (*ConnInfo, error)\n\tgrpc.ServerStream\n}\n```\n\n```go\ntype GRPCControllerClient interface {\n\tShutdown(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error)\n}\n```\nGRPCControllerClient is the client API for GRPCController service.\n\nFor semantics around ctx use and closing/ending streaming RPCs, please refer to [https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream](https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream).\n\n```go\nfunc NewGRPCControllerClient(cc grpc.ClientConnInterface) GRPCControllerClient\n```\n\n```go\ntype GRPCControllerServer interface {\n\tShutdown(context.Context, *Empty) (*Empty, error)\n}\n```\nGRPCControllerServer is the server API for GRPCController service. All implementations should embed UnimplementedGRPCControllerServer for forward compatibility\n\n```go\ntype GRPCStdioClient interface {\n\t// StreamStdio returns a stream that contains all the stdout/stderr.\n\t// This RPC endpoint must only be called ONCE. Once stdio data is consumed\n\t// it is not sent again.\n\t//\n\t// Callers should connect early to prevent blocking on the plugin process.\n\tStreamStdio(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (GRPCStdio_StreamStdioClient, error)\n}\n```\nGRPCStdioClient is the client API for GRPCStdio service.\n\nFor semantics around ctx use and closing/ending streaming RPCs, please refer to [https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream](https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream).\n\n```go\nfunc NewGRPCStdioClient(cc grpc.ClientConnInterface) GRPCStdioClient\n```\n\n```go\ntype GRPCStdioServer interface {\n\t// StreamStdio returns a stream that contains all the stdout/stderr.\n\t// This RPC endpoint must only be called ONCE. Once stdio data is consumed\n\t// it is not sent again.\n\t//\n\t// Callers should connect early to prevent blocking on the plugin process.\n\tStreamStdio(*emptypb.Empty, GRPCStdio_StreamStdioServer) error\n}\n```\nGRPCStdioServer is the server API for GRPCStdio service. All implementations should embed UnimplementedGRPCStdioServer for forward compatibility\n\n```go\ntype GRPCStdio_StreamStdioClient interface {\n\tRecv() (*StdioData, error)\n\tgrpc.ClientStream\n}\n```\n\n```go\ntype GRPCStdio_StreamStdioServer interface {\n\tSend(*StdioData) error\n\tgrpc.ServerStream\n}\n```\n\n```go\ntype StdioData struct {\n\tChannel StdioData_Channel `protobuf:\"varint,1,opt,name=channel,proto3,enum=plugin.StdioData_Channel\" json:\"channel,omitempty\"`\n\tData    []byte            `protobuf:\"bytes,2,opt,name=data,proto3\" json:\"data,omitempty\"`\n\t// contains filtered or unexported fields\n}\n```\nStdioData is a single chunk of stdout or stderr data that is streamed from GRPCStdio.\n\n```go\nfunc (*StdioData) Descriptor() ([]byte, []int)\n```\nDeprecated: Use StdioData.ProtoReflect.Descriptor instead.\n\n```go\nfunc (x *StdioData) GetChannel() StdioData_Channel\n```\n\n```go\nfunc (x *StdioData) GetData() []byte\n```\n\n```go\nfunc (*StdioData) ProtoMessage()\n```\n\n```go\nfunc (x *StdioData) ProtoReflect() protoreflect.Message\n```\n\n```go\nfunc (x *StdioData) Reset()\n```\n\n```go\nfunc (x *StdioData) String() string\n```\n\n```go\ntype StdioData_Channel int32\n```\n\n```go\nconst (\n\tStdioData_INVALID StdioData_Channel = 0\n\tStdioData_STDOUT  StdioData_Channel = 1\n\tStdioData_STDERR  StdioData_Channel = 2\n)\n```\n\n```go\nfunc (StdioData_Channel) Descriptor() protoreflect.EnumDescriptor\n```\n\n```go\nfunc (x StdioData_Channel) Enum() *StdioData_Channel\n```\n\n```go\nfunc (StdioData_Channel) EnumDescriptor() ([]byte, []int)\n```\nDeprecated: Use StdioData\\_Channel.Descriptor instead.\n\n```go\nfunc (x StdioData_Channel) Number() protoreflect.EnumNumber\n```\n\n```go\nfunc (x StdioData_Channel) String() string\n```\n\n```go\nfunc (StdioData_Channel) Type() protoreflect.EnumType\n```\n\n```go\ntype UnimplementedGRPCBrokerServer struct {\n}\n```\nUnimplementedGRPCBrokerServer should be embedded to have forward compatible implementations.\n\n```go\nfunc (UnimplementedGRPCBrokerServer) StartStream(GRPCBroker_StartStreamServer) error\n```\n\n```go\ntype UnimplementedGRPCControllerServer struct {\n}\n```\nUnimplementedGRPCControllerServer should be embedded to have forward compatible implementations.\n\n```go\nfunc (UnimplementedGRPCControllerServer) Shutdown(context.Context, *Empty) (*Empty, error)\n```\n\n```go\ntype UnimplementedGRPCStdioServer struct {\n}\n```\nUnimplementedGRPCStdioServer should be embedded to have forward compatible implementations.\n\n```go\nfunc (UnimplementedGRPCStdioServer) StreamStdio(*emptypb.Empty, GRPCStdio_StreamStdioServer) error\n```\n\n```go\ntype UnsafeGRPCBrokerServer interface {\n\t// contains filtered or unexported methods\n}\n```\nUnsafeGRPCBrokerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to GRPCBrokerServer will result in compilation errors.\n\n```go\ntype UnsafeGRPCControllerServer interface {\n\t// contains filtered or unexported methods\n}\n```\nUnsafeGRPCControllerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to GRPCControllerServer will result in compilation errors.\n\n```go\ntype UnsafeGRPCStdioServer interface {\n\t// contains filtered or unexported methods\n}\n```\nUnsafeGRPCStdioServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to GRPCStdioServer will result in compilation errors.\n\n","path":"github.com/GoCodeAlone/go-plugin/internal/plugin","name":"plugin","synopsis":"","isRedistributable":true}
