pb

package
v1.4.9 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2023 License: GPL-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Auth_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "auth.Auth",
	HandlerType: (*AuthServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "signIn",
			Handler:    _Auth_SignIn_Handler,
		},
		{
			MethodName: "setPassword",
			Handler:    _Auth_SetPassword_Handler,
		},
		{
			MethodName: "sendVerifyCode",
			Handler:    _Auth_SendVerifyCode_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "authentication.proto",
}

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

View Source
var File_authentication_proto protoreflect.FileDescriptor

Functions

func RegisterAuthServer

func RegisterAuthServer(s grpc.ServiceRegistrar, srv AuthServer)

Types

type AuthClient

type AuthClient interface {
	SignIn(ctx context.Context, in *SignInReq, opts ...grpc.CallOption) (*SignInResp, error)
	SetPassword(ctx context.Context, in *SetPasswordReq, opts ...grpc.CallOption) (*SetPasswordResp, error)
	SendVerifyCode(ctx context.Context, in *SendVerifyCodeReq, opts ...grpc.CallOption) (*SendVerifyCodeResp, error)
}

AuthClient is the client API for Auth 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 NewAuthClient

func NewAuthClient(cc grpc.ClientConnInterface) AuthClient

type AuthServer

type AuthServer interface {
	SignIn(context.Context, *SignInReq) (*SignInResp, error)
	SetPassword(context.Context, *SetPasswordReq) (*SetPasswordResp, error)
	SendVerifyCode(context.Context, *SendVerifyCodeReq) (*SendVerifyCodeResp, error)
	// contains filtered or unexported methods
}

AuthServer is the server API for Auth service. All implementations must embed UnimplementedAuthServer for forward compatibility

type SendVerifyCodeReq

type SendVerifyCodeReq struct {
	AuthType string `protobuf:"bytes,1,opt,name=authType,proto3" json:"authType,omitempty"`
	AuthId   string `protobuf:"bytes,2,opt,name=authId,proto3" json:"authId,omitempty"`
	// contains filtered or unexported fields
}

func (*SendVerifyCodeReq) Descriptor deprecated

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

Deprecated: Use SendVerifyCodeReq.ProtoReflect.Descriptor instead.

func (*SendVerifyCodeReq) GetAuthId

func (x *SendVerifyCodeReq) GetAuthId() string

func (*SendVerifyCodeReq) GetAuthType

func (x *SendVerifyCodeReq) GetAuthType() string

func (*SendVerifyCodeReq) ProtoMessage

func (*SendVerifyCodeReq) ProtoMessage()

func (*SendVerifyCodeReq) ProtoReflect

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

func (*SendVerifyCodeReq) Reset

func (x *SendVerifyCodeReq) Reset()

func (*SendVerifyCodeReq) String

func (x *SendVerifyCodeReq) String() string

type SendVerifyCodeResp

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

func (*SendVerifyCodeResp) Descriptor deprecated

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

Deprecated: Use SendVerifyCodeResp.ProtoReflect.Descriptor instead.

func (*SendVerifyCodeResp) ProtoMessage

func (*SendVerifyCodeResp) ProtoMessage()

func (*SendVerifyCodeResp) ProtoReflect

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

func (*SendVerifyCodeResp) Reset

func (x *SendVerifyCodeResp) Reset()

func (*SendVerifyCodeResp) String

func (x *SendVerifyCodeResp) String() string

type SetPasswordReq

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

func (*SetPasswordReq) Descriptor deprecated

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

Deprecated: Use SetPasswordReq.ProtoReflect.Descriptor instead.

func (*SetPasswordReq) GetPassword

func (x *SetPasswordReq) GetPassword() string

func (*SetPasswordReq) GetUserId

func (x *SetPasswordReq) GetUserId() string

func (*SetPasswordReq) ProtoMessage

func (*SetPasswordReq) ProtoMessage()

func (*SetPasswordReq) ProtoReflect

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

func (*SetPasswordReq) Reset

func (x *SetPasswordReq) Reset()

func (*SetPasswordReq) String

func (x *SetPasswordReq) String() string

type SetPasswordResp

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

func (*SetPasswordResp) Descriptor deprecated

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

Deprecated: Use SetPasswordResp.ProtoReflect.Descriptor instead.

func (*SetPasswordResp) ProtoMessage

func (*SetPasswordResp) ProtoMessage()

func (*SetPasswordResp) ProtoReflect

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

func (*SetPasswordResp) Reset

func (x *SetPasswordResp) Reset()

func (*SetPasswordResp) String

func (x *SetPasswordResp) String() string

type SignInReq

type SignInReq struct {
	AuthType string   `protobuf:"bytes,1,opt,name=authType,proto3" json:"authType,omitempty"`
	AuthId   string   `protobuf:"bytes,2,opt,name=authId,proto3" json:"authId,omitempty"`
	Password string   `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
	Params   []string `protobuf:"bytes,4,rep,name=params,proto3" json:"params,omitempty"`
	// contains filtered or unexported fields
}

func (*SignInReq) Descriptor deprecated

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

Deprecated: Use SignInReq.ProtoReflect.Descriptor instead.

func (*SignInReq) GetAuthId

func (x *SignInReq) GetAuthId() string

func (*SignInReq) GetAuthType

func (x *SignInReq) GetAuthType() string

func (*SignInReq) GetParams

func (x *SignInReq) GetParams() []string

func (*SignInReq) GetPassword

func (x *SignInReq) GetPassword() string

func (*SignInReq) ProtoMessage

func (*SignInReq) ProtoMessage()

func (*SignInReq) ProtoReflect

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

func (*SignInReq) Reset

func (x *SignInReq) Reset()

func (*SignInReq) String

func (x *SignInReq) String() string

type SignInResp

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

func (*SignInResp) Descriptor deprecated

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

Deprecated: Use SignInResp.ProtoReflect.Descriptor instead.

func (*SignInResp) GetUserId

func (x *SignInResp) GetUserId() string

func (*SignInResp) ProtoMessage

func (*SignInResp) ProtoMessage()

func (*SignInResp) ProtoReflect

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

func (*SignInResp) Reset

func (x *SignInResp) Reset()

func (*SignInResp) String

func (x *SignInResp) String() string

type UnimplementedAuthServer

type UnimplementedAuthServer struct {
}

UnimplementedAuthServer must be embedded to have forward compatible implementations.

func (UnimplementedAuthServer) SendVerifyCode

func (UnimplementedAuthServer) SetPassword

func (UnimplementedAuthServer) SignIn

type UnsafeAuthServer

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

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

Jump to

Keyboard shortcuts

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