gen

package
v0.1.94 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UserService_GetUserByID_FullMethodName = "/users.userService/getUserByID"
)

Variables

View Source
var UserService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "users.userService",
	HandlerType: (*UserServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "getUserByID",
			Handler:    _UserService_GetUserByID_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "user.proto",
}

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

Functions

func RegisterUserServiceServer

func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)

Types

type GetUserByIDReq

type GetUserByIDReq struct {
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserByIDReq) Descriptor deprecated

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

Deprecated: Use GetUserByIDReq.ProtoReflect.Descriptor instead.

func (*GetUserByIDReq) GetId

func (x *GetUserByIDReq) GetId() int64

func (*GetUserByIDReq) ProtoMessage

func (*GetUserByIDReq) ProtoMessage()

func (*GetUserByIDReq) ProtoReflect

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

func (*GetUserByIDReq) Reset

func (x *GetUserByIDReq) Reset()

func (*GetUserByIDReq) String

func (x *GetUserByIDReq) String() string

type GetUserByIDResp

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

func (*GetUserByIDResp) Descriptor deprecated

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

Deprecated: Use GetUserByIDResp.ProtoReflect.Descriptor instead.

func (*GetUserByIDResp) GetName

func (x *GetUserByIDResp) GetName() string

func (*GetUserByIDResp) ProtoMessage

func (*GetUserByIDResp) ProtoMessage()

func (*GetUserByIDResp) ProtoReflect

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

func (*GetUserByIDResp) Reset

func (x *GetUserByIDResp) Reset()

func (*GetUserByIDResp) String

func (x *GetUserByIDResp) String() string

type UnimplementedUserServiceServer

type UnimplementedUserServiceServer struct {
}

UnimplementedUserServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedUserServiceServer) GetUserByID

type UnsafeUserServiceServer

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

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

type UserServiceClient

type UserServiceClient interface {
	GetUserByID(ctx context.Context, in *GetUserByIDReq, opts ...grpc.CallOption) (*GetUserByIDResp, error)
}

UserServiceClient is the client API for UserService 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 UserServiceServer

type UserServiceServer interface {
	GetUserByID(context.Context, *GetUserByIDReq) (*GetUserByIDResp, error)
	// contains filtered or unexported methods
}

UserServiceServer is the server API for UserService service. All implementations must embed UnimplementedUserServiceServer for forward compatibility

Jump to

Keyboard shortcuts

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