pb

package
v0.0.0-...-3faac0c Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_service_proto protoreflect.FileDescriptor
View Source
var Svc_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "pb.Svc",
	HandlerType: (*SvcServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "DoService",
			Handler:    _Svc_DoService_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "service.proto",
}

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

Functions

func RegisterSvcServer

func RegisterSvcServer(s grpc.ServiceRegistrar, srv SvcServer)

Types

type SvcClient

type SvcClient interface {
	DoService(ctx context.Context, in *SvcRequest, opts ...grpc.CallOption) (*SvcResponse, error)
}

SvcClient is the client API for Svc 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 NewSvcClient

func NewSvcClient(cc grpc.ClientConnInterface) SvcClient

type SvcRequest

type SvcRequest struct {
	ReqText string `protobuf:"bytes,1,opt,name=req_text,json=reqText,proto3" json:"req_text,omitempty"`
	// contains filtered or unexported fields
}

func (*SvcRequest) Descriptor deprecated

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

Deprecated: Use SvcRequest.ProtoReflect.Descriptor instead.

func (*SvcRequest) GetReqText

func (x *SvcRequest) GetReqText() string

func (*SvcRequest) ProtoMessage

func (*SvcRequest) ProtoMessage()

func (*SvcRequest) ProtoReflect

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

func (*SvcRequest) Reset

func (x *SvcRequest) Reset()

func (*SvcRequest) String

func (x *SvcRequest) String() string

type SvcResponse

type SvcResponse struct {
	RespText string `protobuf:"bytes,1,opt,name=resp_text,json=respText,proto3" json:"resp_text,omitempty"`
	// contains filtered or unexported fields
}

func (*SvcResponse) Descriptor deprecated

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

Deprecated: Use SvcResponse.ProtoReflect.Descriptor instead.

func (*SvcResponse) GetRespText

func (x *SvcResponse) GetRespText() string

func (*SvcResponse) ProtoMessage

func (*SvcResponse) ProtoMessage()

func (*SvcResponse) ProtoReflect

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

func (*SvcResponse) Reset

func (x *SvcResponse) Reset()

func (*SvcResponse) String

func (x *SvcResponse) String() string

type SvcServer

type SvcServer interface {
	DoService(context.Context, *SvcRequest) (*SvcResponse, error)
	// contains filtered or unexported methods
}

SvcServer is the server API for Svc service. All implementations must embed UnimplementedSvcServer for forward compatibility

type UnimplementedSvcServer

type UnimplementedSvcServer struct {
}

UnimplementedSvcServer must be embedded to have forward compatible implementations.

func (UnimplementedSvcServer) DoService

type UnsafeSvcServer

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

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

Jump to

Keyboard shortcuts

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