auth

package
v0.0.0-...-7418c02 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_proto_auth_user_proto protoreflect.FileDescriptor

Functions

func RegisterUserServiceServer

func RegisterUserServiceServer(s *grpc.Server, srv UserServiceServer)

Types

type UnimplementedUserServiceServer

type UnimplementedUserServiceServer struct {
}

UnimplementedUserServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedUserServiceServer) GetUserInfoByToken

type UserReq

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

func (*UserReq) Descriptor deprecated

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

Deprecated: Use UserReq.ProtoReflect.Descriptor instead.

func (*UserReq) GetId

func (x *UserReq) GetId() string

func (*UserReq) GetToken

func (x *UserReq) GetToken() string

func (*UserReq) ProtoMessage

func (*UserReq) ProtoMessage()

func (*UserReq) ProtoReflect

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

func (*UserReq) Reset

func (x *UserReq) Reset()

func (*UserReq) String

func (x *UserReq) String() string

type UserResp

type UserResp struct {
	Id       uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Account  string `protobuf:"bytes,2,opt,name=account,proto3" json:"account,omitempty"`
	Username string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"`
	Name     string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*UserResp) Descriptor deprecated

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

Deprecated: Use UserResp.ProtoReflect.Descriptor instead.

func (*UserResp) GetAccount

func (x *UserResp) GetAccount() string

func (*UserResp) GetId

func (x *UserResp) GetId() uint32

func (*UserResp) GetName

func (x *UserResp) GetName() string

func (*UserResp) GetUsername

func (x *UserResp) GetUsername() string

func (*UserResp) ProtoMessage

func (*UserResp) ProtoMessage()

func (*UserResp) ProtoReflect

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

func (*UserResp) Reset

func (x *UserResp) Reset()

func (*UserResp) String

func (x *UserResp) String() string

type UserServiceClient

type UserServiceClient interface {
	GetUserInfoByToken(ctx context.Context, in *UserReq, opts ...grpc.CallOption) (*UserResp, error)
}

UserServiceClient is the client API for UserService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type UserServiceServer

type UserServiceServer interface {
	GetUserInfoByToken(context.Context, *UserReq) (*UserResp, error)
}

UserServiceServer is the server API for UserService service.

Jump to

Keyboard shortcuts

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