pb

package
v0.0.0-...-f1d9293 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_login_proto protoreflect.FileDescriptor
View Source
var Login_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "douyin.core.login",
	HandlerType: (*LoginServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "login",
			Handler:    _Login_Login_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "login.proto",
}

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

Functions

func RegisterLoginServer

func RegisterLoginServer(s grpc.ServiceRegistrar, srv LoginServer)

Types

type DouyinUserLoginRequest

type DouyinUserLoginRequest struct {
	Username *string `protobuf:"bytes,1,req,name=username" json:"username,omitempty"` //登录用户名
	Password *string `protobuf:"bytes,2,req,name=password" json:"password,omitempty"` //登陆密码
	// contains filtered or unexported fields
}

func (*DouyinUserLoginRequest) Descriptor deprecated

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

Deprecated: Use DouyinUserLoginRequest.ProtoReflect.Descriptor instead.

func (*DouyinUserLoginRequest) GetPassword

func (x *DouyinUserLoginRequest) GetPassword() string

func (*DouyinUserLoginRequest) GetUsername

func (x *DouyinUserLoginRequest) GetUsername() string

func (*DouyinUserLoginRequest) ProtoMessage

func (*DouyinUserLoginRequest) ProtoMessage()

func (*DouyinUserLoginRequest) ProtoReflect

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

func (*DouyinUserLoginRequest) Reset

func (x *DouyinUserLoginRequest) Reset()

func (*DouyinUserLoginRequest) String

func (x *DouyinUserLoginRequest) String() string

type DouyinUserLoginResponse

type DouyinUserLoginResponse struct {
	StatusCode *int32  `protobuf:"varint,1,req,name=status_code,json=statusCode" json:"status_code,omitempty"` //状态码,0-成功,其他值-失败
	StatusMsg  *string `protobuf:"bytes,2,opt,name=status_msg,json=statusMsg" json:"status_msg,omitempty"`     //返回状态描述
	UserId     *int64  `protobuf:"varint,3,req,name=user_id,json=userId" json:"user_id,omitempty"`             //用户id
	Token      *string `protobuf:"bytes,4,req,name=token" json:"token,omitempty"`                              //用户鉴权token
	// contains filtered or unexported fields
}

func (*DouyinUserLoginResponse) Descriptor deprecated

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

Deprecated: Use DouyinUserLoginResponse.ProtoReflect.Descriptor instead.

func (*DouyinUserLoginResponse) GetStatusCode

func (x *DouyinUserLoginResponse) GetStatusCode() int32

func (*DouyinUserLoginResponse) GetStatusMsg

func (x *DouyinUserLoginResponse) GetStatusMsg() string

func (*DouyinUserLoginResponse) GetToken

func (x *DouyinUserLoginResponse) GetToken() string

func (*DouyinUserLoginResponse) GetUserId

func (x *DouyinUserLoginResponse) GetUserId() int64

func (*DouyinUserLoginResponse) ProtoMessage

func (*DouyinUserLoginResponse) ProtoMessage()

func (*DouyinUserLoginResponse) ProtoReflect

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

func (*DouyinUserLoginResponse) Reset

func (x *DouyinUserLoginResponse) Reset()

func (*DouyinUserLoginResponse) String

func (x *DouyinUserLoginResponse) String() string

type LoginClient

type LoginClient interface {
	Login(ctx context.Context, in *DouyinUserLoginRequest, opts ...grpc.CallOption) (*DouyinUserLoginResponse, error)
}

LoginClient is the client API for Login service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.golang.ir/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewLoginClient

func NewLoginClient(cc grpc.ClientConnInterface) LoginClient

type LoginServer

type LoginServer interface {
	Login(context.Context, *DouyinUserLoginRequest) (*DouyinUserLoginResponse, error)
	// contains filtered or unexported methods
}

LoginServer is the server API for Login service. All implementations must embed UnimplementedLoginServer for forward compatibility

type UnimplementedLoginServer

type UnimplementedLoginServer struct {
}

UnimplementedLoginServer must be embedded to have forward compatible implementations.

type UnsafeLoginServer

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

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

Jump to

Keyboard shortcuts

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