v1

package
v0.0.0-...-5023f9f Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var UserServer_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "shop.v1.UserServer",
	HandlerType: (*UserServerServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetUserInfo",
			Handler:    _UserServer_GetUserInfo_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "shop.proto",
}

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

Functions

func RegisterUserServerServer

func RegisterUserServerServer(s grpc.ServiceRegistrar, srv UserServerServer)

Types

type GetUserInfoRequest

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

func (*GetUserInfoRequest) Descriptor deprecated

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

Deprecated: Use GetUserInfoRequest.ProtoReflect.Descriptor instead.

func (*GetUserInfoRequest) ProtoMessage

func (*GetUserInfoRequest) ProtoMessage()

func (*GetUserInfoRequest) ProtoReflect

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

func (*GetUserInfoRequest) Reset

func (x *GetUserInfoRequest) Reset()

func (*GetUserInfoRequest) String

func (x *GetUserInfoRequest) String() string

type GetUserInfoResponse

type GetUserInfoResponse struct {
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	City     string `protobuf:"bytes,2,opt,name=city,proto3" json:"city,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserInfoResponse) Descriptor deprecated

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

Deprecated: Use GetUserInfoResponse.ProtoReflect.Descriptor instead.

func (*GetUserInfoResponse) GetCity

func (x *GetUserInfoResponse) GetCity() string

func (*GetUserInfoResponse) GetUsername

func (x *GetUserInfoResponse) GetUsername() string

func (*GetUserInfoResponse) ProtoMessage

func (*GetUserInfoResponse) ProtoMessage()

func (*GetUserInfoResponse) ProtoReflect

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

func (*GetUserInfoResponse) Reset

func (x *GetUserInfoResponse) Reset()

func (*GetUserInfoResponse) String

func (x *GetUserInfoResponse) String() string

type UnimplementedUserServerServer

type UnimplementedUserServerServer struct {
}

UnimplementedUserServerServer must be embedded to have forward compatible implementations.

func (UnimplementedUserServerServer) GetUserInfo

type UnsafeUserServerServer

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

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

type UserServerClient

type UserServerClient interface {
	GetUserInfo(ctx context.Context, in *GetUserInfoRequest, opts ...grpc.CallOption) (*GetUserInfoResponse, error)
}

UserServerClient is the client API for UserServer 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 NewUserServerClient

func NewUserServerClient(cc grpc.ClientConnInterface) UserServerClient

type UserServerServer

type UserServerServer interface {
	GetUserInfo(context.Context, *GetUserInfoRequest) (*GetUserInfoResponse, error)
	// contains filtered or unexported methods
}

UserServerServer is the server API for UserServer service. All implementations must embed UnimplementedUserServerServer for forward compatibility

Jump to

Keyboard shortcuts

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