proto

package
v0.0.0-...-31e44ea Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_proto_user_proto protoreflect.FileDescriptor
View Source
var User_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "User",
	HandlerType: (*UserServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "RpcUserLogin",
			Handler:    _User_RpcUserLogin_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "proto/user.proto",
}

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

Functions

func RegisterUserServer

func RegisterUserServer(s grpc.ServiceRegistrar, srv UserServer)

Types

type Login

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

func (*Login) Descriptor deprecated

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

Deprecated: Use Login.ProtoReflect.Descriptor instead.

func (*Login) GetAccount

func (x *Login) GetAccount() string

func (*Login) GetPassword

func (x *Login) GetPassword() string

func (*Login) ProtoMessage

func (*Login) ProtoMessage()

func (*Login) ProtoReflect

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

func (*Login) Reset

func (x *Login) Reset()

func (*Login) String

func (x *Login) String() string

type LoginAck

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

func (*LoginAck) Descriptor deprecated

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

Deprecated: Use LoginAck.ProtoReflect.Descriptor instead.

func (*LoginAck) GetToken

func (x *LoginAck) GetToken() string

func (*LoginAck) ProtoMessage

func (*LoginAck) ProtoMessage()

func (*LoginAck) ProtoReflect

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

func (*LoginAck) Reset

func (x *LoginAck) Reset()

func (*LoginAck) String

func (x *LoginAck) String() string

type UnimplementedUserServer

type UnimplementedUserServer struct {
}

UnimplementedUserServer must be embedded to have forward compatible implementations.

func (UnimplementedUserServer) RpcUserLogin

type UnsafeUserServer

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

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

type UserClient

type UserClient interface {
	RpcUserLogin(ctx context.Context, in *Login, opts ...grpc.CallOption) (*LoginAck, error)
}

UserClient is the client API for User 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 NewUserClient

func NewUserClient(cc grpc.ClientConnInterface) UserClient

type UserServer

type UserServer interface {
	RpcUserLogin(context.Context, *Login) (*LoginAck, error)
	// contains filtered or unexported methods
}

UserServer is the server API for User service. All implementations must embed UnimplementedUserServer for forward compatibility

Jump to

Keyboard shortcuts

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