protoGen

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DebugTalk_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "proto.DebugTalk",
	HandlerType: (*DebugTalkServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetNames",
			Handler:    _DebugTalk_GetNames_Handler,
		},
		{
			MethodName: "Call",
			Handler:    _DebugTalk_Call_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "proto/debugtalk.proto",
}

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

View Source
var File_proto_debugtalk_proto protoreflect.FileDescriptor

Functions

func RegisterDebugTalkServer

func RegisterDebugTalkServer(s grpc.ServiceRegistrar, srv DebugTalkServer)

Types

type CallRequest

type CallRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Args []byte `protobuf:"bytes,2,opt,name=args,proto3" json:"args,omitempty"` // []interface{}
	// contains filtered or unexported fields
}

func (*CallRequest) Descriptor deprecated

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

Deprecated: Use CallRequest.ProtoReflect.Descriptor instead.

func (*CallRequest) GetArgs

func (x *CallRequest) GetArgs() []byte

func (*CallRequest) GetName

func (x *CallRequest) GetName() string

func (*CallRequest) ProtoMessage

func (*CallRequest) ProtoMessage()

func (*CallRequest) ProtoReflect

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

func (*CallRequest) Reset

func (x *CallRequest) Reset()

func (*CallRequest) String

func (x *CallRequest) String() string

type CallResponse

type CallResponse struct {
	Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` // interface{}
	// contains filtered or unexported fields
}

func (*CallResponse) Descriptor deprecated

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

Deprecated: Use CallResponse.ProtoReflect.Descriptor instead.

func (*CallResponse) GetValue

func (x *CallResponse) GetValue() []byte

func (*CallResponse) ProtoMessage

func (*CallResponse) ProtoMessage()

func (*CallResponse) ProtoReflect

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

func (*CallResponse) Reset

func (x *CallResponse) Reset()

func (*CallResponse) String

func (x *CallResponse) String() string

type DebugTalkClient

type DebugTalkClient interface {
	GetNames(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*GetNamesResponse, error)
	Call(ctx context.Context, in *CallRequest, opts ...grpc.CallOption) (*CallResponse, error)
}

DebugTalkClient is the client API for DebugTalk 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 NewDebugTalkClient

func NewDebugTalkClient(cc grpc.ClientConnInterface) DebugTalkClient

type DebugTalkServer

type DebugTalkServer interface {
	GetNames(context.Context, *Empty) (*GetNamesResponse, error)
	Call(context.Context, *CallRequest) (*CallResponse, error)
	// contains filtered or unexported methods
}

DebugTalkServer is the server API for DebugTalk service. All implementations must embed UnimplementedDebugTalkServer for forward compatibility

type Empty

type Empty struct {
	// contains filtered or unexported fields
}

func (*Empty) Descriptor deprecated

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

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect

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

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) String

func (x *Empty) String() string

type GetNamesResponse

type GetNamesResponse struct {
	Names []string `protobuf:"bytes,1,rep,name=names,proto3" json:"names,omitempty"`
	// contains filtered or unexported fields
}

func (*GetNamesResponse) Descriptor deprecated

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

Deprecated: Use GetNamesResponse.ProtoReflect.Descriptor instead.

func (*GetNamesResponse) GetNames

func (x *GetNamesResponse) GetNames() []string

func (*GetNamesResponse) ProtoMessage

func (*GetNamesResponse) ProtoMessage()

func (*GetNamesResponse) ProtoReflect

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

func (*GetNamesResponse) Reset

func (x *GetNamesResponse) Reset()

func (*GetNamesResponse) String

func (x *GetNamesResponse) String() string

type UnimplementedDebugTalkServer

type UnimplementedDebugTalkServer struct {
}

UnimplementedDebugTalkServer must be embedded to have forward compatible implementations.

func (UnimplementedDebugTalkServer) Call

func (UnimplementedDebugTalkServer) GetNames

type UnsafeDebugTalkServer

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

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

Jump to

Keyboard shortcuts

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