ms

package
v0.0.0-...-2bbd757 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	MicroService_SayHello_FullMethodName = "/ms.MicroService/SayHello"
)

Variables

View Source
var MicroService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "ms.MicroService",
	HandlerType: (*MicroServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "SayHello",
			Handler:    _MicroService_SayHello_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "ms.proto",
}

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

Functions

func RegisterMicroServiceServer

func RegisterMicroServiceServer(s grpc.ServiceRegistrar, srv MicroServiceServer)

Types

type MicroServiceClient

type MicroServiceClient interface {
	SayHello(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Reply, error)
}

MicroServiceClient is the client API for MicroService 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.

type MicroServiceServer

type MicroServiceServer interface {
	SayHello(context.Context, *Request) (*Reply, error)
	// contains filtered or unexported methods
}

MicroServiceServer is the server API for MicroService service. All implementations must embed UnimplementedMicroServiceServer for forward compatibility

type Reply

type Reply struct {
	Code int64   `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	V3   *uint64 `protobuf:"varint,2,opt,name=v3,proto3,oneof" json:"v3,omitempty"`
	// contains filtered or unexported fields
}

func (*Reply) Descriptor deprecated

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

Deprecated: Use Reply.ProtoReflect.Descriptor instead.

func (*Reply) GetCode

func (x *Reply) GetCode() int64

func (*Reply) GetV3

func (x *Reply) GetV3() uint64

func (*Reply) ProtoMessage

func (*Reply) ProtoMessage()

func (*Reply) ProtoReflect

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

func (*Reply) Reset

func (x *Reply) Reset()

func (*Reply) String

func (x *Reply) String() string

type Request

type Request struct {
	V1 [][]byte `protobuf:"bytes,1,rep,name=v1,proto3" json:"v1,omitempty"`
	V2 []string `protobuf:"bytes,2,rep,name=v2,proto3" json:"v2,omitempty"`
	V3 *int64   `protobuf:"varint,3,opt,name=v3,proto3,oneof" json:"v3,omitempty"`
	// contains filtered or unexported fields
}

func (*Request) Descriptor deprecated

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

Deprecated: Use Request.ProtoReflect.Descriptor instead.

func (*Request) GetV1

func (x *Request) GetV1() [][]byte

func (*Request) GetV2

func (x *Request) GetV2() []string

func (*Request) GetV3

func (x *Request) GetV3() int64

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) ProtoReflect

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

func (*Request) Reset

func (x *Request) Reset()

func (*Request) String

func (x *Request) String() string

type UnimplementedMicroServiceServer

type UnimplementedMicroServiceServer struct {
}

UnimplementedMicroServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedMicroServiceServer) SayHello

type UnsafeMicroServiceServer

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

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

Jump to

Keyboard shortcuts

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