comm

package
v0.0.0-...-1c25654 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Comm_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "comm.Comm",
	HandlerType: (*CommServer)(nil),
	Methods:     []grpc.MethodDesc{},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "OpenComm",
			Handler:       _Comm_OpenComm_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
	},
	Metadata: "comm.proto",
}

Comm_ServiceDesc is the grpc.ServiceDesc for Comm service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterCommServer

func RegisterCommServer(s grpc.ServiceRegistrar, srv CommServer)

Types

type CommClient

type CommClient interface {
	OpenComm(ctx context.Context, opts ...grpc.CallOption) (Comm_OpenCommClient, error)
}

CommClient is the client API for Comm 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 NewCommClient

func NewCommClient(cc grpc.ClientConnInterface) CommClient

type CommServer

type CommServer interface {
	OpenComm(Comm_OpenCommServer) error
	// contains filtered or unexported methods
}

CommServer is the server API for Comm service. All implementations must embed UnimplementedCommServer for forward compatibility

type Comm_OpenCommClient

type Comm_OpenCommClient interface {
	Send(*Command) error
	Recv() (*Command, error)
	grpc.ClientStream
}

type Comm_OpenCommServer

type Comm_OpenCommServer interface {
	Send(*Command) error
	Recv() (*Command, error)
	grpc.ServerStream
}

type Command

type Command struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Arg  string `protobuf:"bytes,2,opt,name=arg,proto3" json:"arg,omitempty"`
	// contains filtered or unexported fields
}

func (*Command) Descriptor deprecated

func (*Command) Descriptor() ([]byte, []int)

Deprecated: Use Command.ProtoReflect.Descriptor instead.

func (*Command) GetArg

func (x *Command) GetArg() string

func (*Command) GetName

func (x *Command) GetName() string

func (*Command) ProtoMessage

func (*Command) ProtoMessage()

func (*Command) ProtoReflect

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

func (*Command) Reset

func (x *Command) Reset()

func (*Command) String

func (x *Command) String() string

type UnimplementedCommServer

type UnimplementedCommServer struct {
}

UnimplementedCommServer must be embedded to have forward compatible implementations.

func (UnimplementedCommServer) OpenComm

type UnsafeCommServer

type UnsafeCommServer interface {
	// contains filtered or unexported methods
}

UnsafeCommServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CommServer will result in compilation errors.

Jump to

Keyboard shortcuts

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