Documentation ¶
Index ¶
- Variables
- func RegisterAuthServer(s *grpc.Server, srv AuthServer)
- type AuthClient
- type AuthServer
- type GenerateQRCodeRequest
- func (*GenerateQRCodeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GenerateQRCodeRequest) GetEmail() string
- func (*GenerateQRCodeRequest) ProtoMessage()
- func (x *GenerateQRCodeRequest) ProtoReflect() protoreflect.Message
- func (x *GenerateQRCodeRequest) Reset()
- func (x *GenerateQRCodeRequest) String() string
- type GenerateQRCodeResponse
- func (*GenerateQRCodeResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GenerateQRCodeResponse) GetImage() []byte
- func (x *GenerateQRCodeResponse) GetSecret() string
- func (*GenerateQRCodeResponse) ProtoMessage()
- func (x *GenerateQRCodeResponse) ProtoReflect() protoreflect.Message
- func (x *GenerateQRCodeResponse) Reset()
- func (x *GenerateQRCodeResponse) String() string
- type GenerateTokenRequest
- func (*GenerateTokenRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GenerateTokenRequest) GetAccessTokenDuration() int64
- func (x *GenerateTokenRequest) GetEmail() string
- func (x *GenerateTokenRequest) GetRefreshTokenDuration() int64
- func (*GenerateTokenRequest) ProtoMessage()
- func (x *GenerateTokenRequest) ProtoReflect() protoreflect.Message
- func (x *GenerateTokenRequest) Reset()
- func (x *GenerateTokenRequest) String() string
- type GenerateTokenResponse
- func (*GenerateTokenResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GenerateTokenResponse) GetToken() *Token
- func (*GenerateTokenResponse) ProtoMessage()
- func (x *GenerateTokenResponse) ProtoReflect() protoreflect.Message
- func (x *GenerateTokenResponse) Reset()
- func (x *GenerateTokenResponse) String() string
- type Token
- func (*Token) Descriptor() ([]byte, []int)deprecated
- func (x *Token) GetAccessToken() string
- func (x *Token) GetAccessTokenExpires() int64
- func (x *Token) GetAccessUuid() string
- func (x *Token) GetRefreshToken() string
- func (x *Token) GetRefreshTokenExpires() int64
- func (x *Token) GetRefreshUuid() string
- func (*Token) ProtoMessage()
- func (x *Token) ProtoReflect() protoreflect.Message
- func (x *Token) Reset()
- func (x *Token) String() string
- type UnimplementedAuthServer
- func (*UnimplementedAuthServer) GenerateQRCode(context.Context, *GenerateQRCodeRequest) (*GenerateQRCodeResponse, error)
- func (*UnimplementedAuthServer) GenerateToken(context.Context, *GenerateTokenRequest) (*GenerateTokenResponse, error)
- func (*UnimplementedAuthServer) ValidateAccessToken(context.Context, *ValidateAccessTokenRequest) (*ValidateAccessTokenResponse, error)
- func (*UnimplementedAuthServer) ValidateQRCode(context.Context, *ValidateQRCodeRequest) (*ValidateQRCodeResponse, error)
- func (*UnimplementedAuthServer) ValidateRefreshToken(context.Context, *ValidateRefreshTokenRequest) (*ValidateRefreshTokenResponse, error)
- type ValidateAccessTokenRequest
- func (*ValidateAccessTokenRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ValidateAccessTokenRequest) GetSignedToken() string
- func (*ValidateAccessTokenRequest) ProtoMessage()
- func (x *ValidateAccessTokenRequest) ProtoReflect() protoreflect.Message
- func (x *ValidateAccessTokenRequest) Reset()
- func (x *ValidateAccessTokenRequest) String() string
- type ValidateAccessTokenResponse
- func (*ValidateAccessTokenResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ValidateAccessTokenResponse) GetAccessUuid() string
- func (x *ValidateAccessTokenResponse) GetEmail() string
- func (*ValidateAccessTokenResponse) ProtoMessage()
- func (x *ValidateAccessTokenResponse) ProtoReflect() protoreflect.Message
- func (x *ValidateAccessTokenResponse) Reset()
- func (x *ValidateAccessTokenResponse) String() string
- type ValidateQRCodeRequest
- func (*ValidateQRCodeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ValidateQRCodeRequest) GetQrCode() string
- func (x *ValidateQRCodeRequest) GetQrSecret() string
- func (*ValidateQRCodeRequest) ProtoMessage()
- func (x *ValidateQRCodeRequest) ProtoReflect() protoreflect.Message
- func (x *ValidateQRCodeRequest) Reset()
- func (x *ValidateQRCodeRequest) String() string
- type ValidateQRCodeResponse
- func (*ValidateQRCodeResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ValidateQRCodeResponse) GetValidated() bool
- func (*ValidateQRCodeResponse) ProtoMessage()
- func (x *ValidateQRCodeResponse) ProtoReflect() protoreflect.Message
- func (x *ValidateQRCodeResponse) Reset()
- func (x *ValidateQRCodeResponse) String() string
- type ValidateRefreshTokenRequest
- func (*ValidateRefreshTokenRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ValidateRefreshTokenRequest) GetSignedToken() string
- func (*ValidateRefreshTokenRequest) ProtoMessage()
- func (x *ValidateRefreshTokenRequest) ProtoReflect() protoreflect.Message
- func (x *ValidateRefreshTokenRequest) Reset()
- func (x *ValidateRefreshTokenRequest) String() string
- type ValidateRefreshTokenResponse
- func (*ValidateRefreshTokenResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ValidateRefreshTokenResponse) GetEmail() string
- func (x *ValidateRefreshTokenResponse) GetRefreshUuid() string
- func (*ValidateRefreshTokenResponse) ProtoMessage()
- func (x *ValidateRefreshTokenResponse) ProtoReflect() protoreflect.Message
- func (x *ValidateRefreshTokenResponse) Reset()
- func (x *ValidateRefreshTokenResponse) String() string
Constants ¶
This section is empty.
Variables ¶
var File_auth_service_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAuthServer ¶
func RegisterAuthServer(s *grpc.Server, srv AuthServer)
Types ¶
type AuthClient ¶
type AuthClient interface { GenerateQRCode(ctx context.Context, in *GenerateQRCodeRequest, opts ...grpc.CallOption) (*GenerateQRCodeResponse, error) ValidateQRCode(ctx context.Context, in *ValidateQRCodeRequest, opts ...grpc.CallOption) (*ValidateQRCodeResponse, error) GenerateToken(ctx context.Context, in *GenerateTokenRequest, opts ...grpc.CallOption) (*GenerateTokenResponse, error) ValidateAccessToken(ctx context.Context, in *ValidateAccessTokenRequest, opts ...grpc.CallOption) (*ValidateAccessTokenResponse, error) ValidateRefreshToken(ctx context.Context, in *ValidateRefreshTokenRequest, opts ...grpc.CallOption) (*ValidateRefreshTokenResponse, error) }
AuthClient is the client API for Auth service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAuthClient ¶
func NewAuthClient(cc grpc.ClientConnInterface) AuthClient
type AuthServer ¶
type AuthServer interface { GenerateQRCode(context.Context, *GenerateQRCodeRequest) (*GenerateQRCodeResponse, error) ValidateQRCode(context.Context, *ValidateQRCodeRequest) (*ValidateQRCodeResponse, error) GenerateToken(context.Context, *GenerateTokenRequest) (*GenerateTokenResponse, error) ValidateAccessToken(context.Context, *ValidateAccessTokenRequest) (*ValidateAccessTokenResponse, error) ValidateRefreshToken(context.Context, *ValidateRefreshTokenRequest) (*ValidateRefreshTokenResponse, error) }
AuthServer is the server API for Auth service.
type GenerateQRCodeRequest ¶
type GenerateQRCodeRequest struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` // contains filtered or unexported fields }
func (*GenerateQRCodeRequest) Descriptor
deprecated
func (*GenerateQRCodeRequest) Descriptor() ([]byte, []int)
Deprecated: Use GenerateQRCodeRequest.ProtoReflect.Descriptor instead.
func (*GenerateQRCodeRequest) GetEmail ¶
func (x *GenerateQRCodeRequest) GetEmail() string
func (*GenerateQRCodeRequest) ProtoMessage ¶
func (*GenerateQRCodeRequest) ProtoMessage()
func (*GenerateQRCodeRequest) ProtoReflect ¶
func (x *GenerateQRCodeRequest) ProtoReflect() protoreflect.Message
func (*GenerateQRCodeRequest) Reset ¶
func (x *GenerateQRCodeRequest) Reset()
func (*GenerateQRCodeRequest) String ¶
func (x *GenerateQRCodeRequest) String() string
type GenerateQRCodeResponse ¶
type GenerateQRCodeResponse struct { Image []byte `protobuf:"bytes,1,opt,name=image,proto3" json:"image,omitempty"` Secret string `protobuf:"bytes,2,opt,name=secret,proto3" json:"secret,omitempty"` // contains filtered or unexported fields }
func (*GenerateQRCodeResponse) Descriptor
deprecated
func (*GenerateQRCodeResponse) Descriptor() ([]byte, []int)
Deprecated: Use GenerateQRCodeResponse.ProtoReflect.Descriptor instead.
func (*GenerateQRCodeResponse) GetImage ¶
func (x *GenerateQRCodeResponse) GetImage() []byte
func (*GenerateQRCodeResponse) GetSecret ¶
func (x *GenerateQRCodeResponse) GetSecret() string
func (*GenerateQRCodeResponse) ProtoMessage ¶
func (*GenerateQRCodeResponse) ProtoMessage()
func (*GenerateQRCodeResponse) ProtoReflect ¶
func (x *GenerateQRCodeResponse) ProtoReflect() protoreflect.Message
func (*GenerateQRCodeResponse) Reset ¶
func (x *GenerateQRCodeResponse) Reset()
func (*GenerateQRCodeResponse) String ¶
func (x *GenerateQRCodeResponse) String() string
type GenerateTokenRequest ¶
type GenerateTokenRequest struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` AccessTokenDuration int64 `protobuf:"varint,2,opt,name=accessTokenDuration,proto3" json:"accessTokenDuration,omitempty"` RefreshTokenDuration int64 `protobuf:"varint,3,opt,name=refreshTokenDuration,proto3" json:"refreshTokenDuration,omitempty"` // contains filtered or unexported fields }
func (*GenerateTokenRequest) Descriptor
deprecated
func (*GenerateTokenRequest) Descriptor() ([]byte, []int)
Deprecated: Use GenerateTokenRequest.ProtoReflect.Descriptor instead.
func (*GenerateTokenRequest) GetAccessTokenDuration ¶
func (x *GenerateTokenRequest) GetAccessTokenDuration() int64
func (*GenerateTokenRequest) GetEmail ¶
func (x *GenerateTokenRequest) GetEmail() string
func (*GenerateTokenRequest) GetRefreshTokenDuration ¶
func (x *GenerateTokenRequest) GetRefreshTokenDuration() int64
func (*GenerateTokenRequest) ProtoMessage ¶
func (*GenerateTokenRequest) ProtoMessage()
func (*GenerateTokenRequest) ProtoReflect ¶
func (x *GenerateTokenRequest) ProtoReflect() protoreflect.Message
func (*GenerateTokenRequest) Reset ¶
func (x *GenerateTokenRequest) Reset()
func (*GenerateTokenRequest) String ¶
func (x *GenerateTokenRequest) String() string
type GenerateTokenResponse ¶
type GenerateTokenResponse struct { Token *Token `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*GenerateTokenResponse) Descriptor
deprecated
func (*GenerateTokenResponse) Descriptor() ([]byte, []int)
Deprecated: Use GenerateTokenResponse.ProtoReflect.Descriptor instead.
func (*GenerateTokenResponse) GetToken ¶
func (x *GenerateTokenResponse) GetToken() *Token
func (*GenerateTokenResponse) ProtoMessage ¶
func (*GenerateTokenResponse) ProtoMessage()
func (*GenerateTokenResponse) ProtoReflect ¶
func (x *GenerateTokenResponse) ProtoReflect() protoreflect.Message
func (*GenerateTokenResponse) Reset ¶
func (x *GenerateTokenResponse) Reset()
func (*GenerateTokenResponse) String ¶
func (x *GenerateTokenResponse) String() string
type Token ¶
type Token struct { AccessToken string `protobuf:"bytes,1,opt,name=accessToken,proto3" json:"accessToken,omitempty"` AccessTokenExpires int64 `protobuf:"varint,2,opt,name=accessTokenExpires,proto3" json:"accessTokenExpires,omitempty"` AccessUuid string `protobuf:"bytes,3,opt,name=accessUuid,proto3" json:"accessUuid,omitempty"` RefreshToken string `protobuf:"bytes,4,opt,name=refreshToken,proto3" json:"refreshToken,omitempty"` RefreshTokenExpires int64 `protobuf:"varint,5,opt,name=refreshTokenExpires,proto3" json:"refreshTokenExpires,omitempty"` RefreshUuid string `protobuf:"bytes,6,opt,name=refreshUuid,proto3" json:"refreshUuid,omitempty"` // contains filtered or unexported fields }
func (*Token) Descriptor
deprecated
func (*Token) GetAccessToken ¶
func (*Token) GetAccessTokenExpires ¶
func (*Token) GetAccessUuid ¶
func (*Token) GetRefreshToken ¶
func (*Token) GetRefreshTokenExpires ¶
func (*Token) GetRefreshUuid ¶
func (*Token) ProtoMessage ¶
func (*Token) ProtoMessage()
func (*Token) ProtoReflect ¶
func (x *Token) ProtoReflect() protoreflect.Message
type UnimplementedAuthServer ¶
type UnimplementedAuthServer struct { }
UnimplementedAuthServer can be embedded to have forward compatible implementations.
func (*UnimplementedAuthServer) GenerateQRCode ¶
func (*UnimplementedAuthServer) GenerateQRCode(context.Context, *GenerateQRCodeRequest) (*GenerateQRCodeResponse, error)
func (*UnimplementedAuthServer) GenerateToken ¶
func (*UnimplementedAuthServer) GenerateToken(context.Context, *GenerateTokenRequest) (*GenerateTokenResponse, error)
func (*UnimplementedAuthServer) ValidateAccessToken ¶
func (*UnimplementedAuthServer) ValidateAccessToken(context.Context, *ValidateAccessTokenRequest) (*ValidateAccessTokenResponse, error)
func (*UnimplementedAuthServer) ValidateQRCode ¶
func (*UnimplementedAuthServer) ValidateQRCode(context.Context, *ValidateQRCodeRequest) (*ValidateQRCodeResponse, error)
func (*UnimplementedAuthServer) ValidateRefreshToken ¶
func (*UnimplementedAuthServer) ValidateRefreshToken(context.Context, *ValidateRefreshTokenRequest) (*ValidateRefreshTokenResponse, error)
type ValidateAccessTokenRequest ¶
type ValidateAccessTokenRequest struct { SignedToken string `protobuf:"bytes,1,opt,name=signedToken,proto3" json:"signedToken,omitempty"` // contains filtered or unexported fields }
func (*ValidateAccessTokenRequest) Descriptor
deprecated
func (*ValidateAccessTokenRequest) Descriptor() ([]byte, []int)
Deprecated: Use ValidateAccessTokenRequest.ProtoReflect.Descriptor instead.
func (*ValidateAccessTokenRequest) GetSignedToken ¶
func (x *ValidateAccessTokenRequest) GetSignedToken() string
func (*ValidateAccessTokenRequest) ProtoMessage ¶
func (*ValidateAccessTokenRequest) ProtoMessage()
func (*ValidateAccessTokenRequest) ProtoReflect ¶
func (x *ValidateAccessTokenRequest) ProtoReflect() protoreflect.Message
func (*ValidateAccessTokenRequest) Reset ¶
func (x *ValidateAccessTokenRequest) Reset()
func (*ValidateAccessTokenRequest) String ¶
func (x *ValidateAccessTokenRequest) String() string
type ValidateAccessTokenResponse ¶
type ValidateAccessTokenResponse struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` AccessUuid string `protobuf:"bytes,2,opt,name=accessUuid,proto3" json:"accessUuid,omitempty"` // contains filtered or unexported fields }
func (*ValidateAccessTokenResponse) Descriptor
deprecated
func (*ValidateAccessTokenResponse) Descriptor() ([]byte, []int)
Deprecated: Use ValidateAccessTokenResponse.ProtoReflect.Descriptor instead.
func (*ValidateAccessTokenResponse) GetAccessUuid ¶
func (x *ValidateAccessTokenResponse) GetAccessUuid() string
func (*ValidateAccessTokenResponse) GetEmail ¶
func (x *ValidateAccessTokenResponse) GetEmail() string
func (*ValidateAccessTokenResponse) ProtoMessage ¶
func (*ValidateAccessTokenResponse) ProtoMessage()
func (*ValidateAccessTokenResponse) ProtoReflect ¶
func (x *ValidateAccessTokenResponse) ProtoReflect() protoreflect.Message
func (*ValidateAccessTokenResponse) Reset ¶
func (x *ValidateAccessTokenResponse) Reset()
func (*ValidateAccessTokenResponse) String ¶
func (x *ValidateAccessTokenResponse) String() string
type ValidateQRCodeRequest ¶
type ValidateQRCodeRequest struct { QrCode string `protobuf:"bytes,1,opt,name=qrCode,proto3" json:"qrCode,omitempty"` QrSecret string `protobuf:"bytes,2,opt,name=qrSecret,proto3" json:"qrSecret,omitempty"` // contains filtered or unexported fields }
func (*ValidateQRCodeRequest) Descriptor
deprecated
func (*ValidateQRCodeRequest) Descriptor() ([]byte, []int)
Deprecated: Use ValidateQRCodeRequest.ProtoReflect.Descriptor instead.
func (*ValidateQRCodeRequest) GetQrCode ¶
func (x *ValidateQRCodeRequest) GetQrCode() string
func (*ValidateQRCodeRequest) GetQrSecret ¶
func (x *ValidateQRCodeRequest) GetQrSecret() string
func (*ValidateQRCodeRequest) ProtoMessage ¶
func (*ValidateQRCodeRequest) ProtoMessage()
func (*ValidateQRCodeRequest) ProtoReflect ¶
func (x *ValidateQRCodeRequest) ProtoReflect() protoreflect.Message
func (*ValidateQRCodeRequest) Reset ¶
func (x *ValidateQRCodeRequest) Reset()
func (*ValidateQRCodeRequest) String ¶
func (x *ValidateQRCodeRequest) String() string
type ValidateQRCodeResponse ¶
type ValidateQRCodeResponse struct { Validated bool `protobuf:"varint,1,opt,name=validated,proto3" json:"validated,omitempty"` // contains filtered or unexported fields }
func (*ValidateQRCodeResponse) Descriptor
deprecated
func (*ValidateQRCodeResponse) Descriptor() ([]byte, []int)
Deprecated: Use ValidateQRCodeResponse.ProtoReflect.Descriptor instead.
func (*ValidateQRCodeResponse) GetValidated ¶
func (x *ValidateQRCodeResponse) GetValidated() bool
func (*ValidateQRCodeResponse) ProtoMessage ¶
func (*ValidateQRCodeResponse) ProtoMessage()
func (*ValidateQRCodeResponse) ProtoReflect ¶
func (x *ValidateQRCodeResponse) ProtoReflect() protoreflect.Message
func (*ValidateQRCodeResponse) Reset ¶
func (x *ValidateQRCodeResponse) Reset()
func (*ValidateQRCodeResponse) String ¶
func (x *ValidateQRCodeResponse) String() string
type ValidateRefreshTokenRequest ¶
type ValidateRefreshTokenRequest struct { SignedToken string `protobuf:"bytes,1,opt,name=signedToken,proto3" json:"signedToken,omitempty"` // contains filtered or unexported fields }
func (*ValidateRefreshTokenRequest) Descriptor
deprecated
func (*ValidateRefreshTokenRequest) Descriptor() ([]byte, []int)
Deprecated: Use ValidateRefreshTokenRequest.ProtoReflect.Descriptor instead.
func (*ValidateRefreshTokenRequest) GetSignedToken ¶
func (x *ValidateRefreshTokenRequest) GetSignedToken() string
func (*ValidateRefreshTokenRequest) ProtoMessage ¶
func (*ValidateRefreshTokenRequest) ProtoMessage()
func (*ValidateRefreshTokenRequest) ProtoReflect ¶
func (x *ValidateRefreshTokenRequest) ProtoReflect() protoreflect.Message
func (*ValidateRefreshTokenRequest) Reset ¶
func (x *ValidateRefreshTokenRequest) Reset()
func (*ValidateRefreshTokenRequest) String ¶
func (x *ValidateRefreshTokenRequest) String() string
type ValidateRefreshTokenResponse ¶
type ValidateRefreshTokenResponse struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` RefreshUuid string `protobuf:"bytes,2,opt,name=refreshUuid,proto3" json:"refreshUuid,omitempty"` // contains filtered or unexported fields }
func (*ValidateRefreshTokenResponse) Descriptor
deprecated
func (*ValidateRefreshTokenResponse) Descriptor() ([]byte, []int)
Deprecated: Use ValidateRefreshTokenResponse.ProtoReflect.Descriptor instead.
func (*ValidateRefreshTokenResponse) GetEmail ¶
func (x *ValidateRefreshTokenResponse) GetEmail() string
func (*ValidateRefreshTokenResponse) GetRefreshUuid ¶
func (x *ValidateRefreshTokenResponse) GetRefreshUuid() string
func (*ValidateRefreshTokenResponse) ProtoMessage ¶
func (*ValidateRefreshTokenResponse) ProtoMessage()
func (*ValidateRefreshTokenResponse) ProtoReflect ¶
func (x *ValidateRefreshTokenResponse) ProtoReflect() protoreflect.Message
func (*ValidateRefreshTokenResponse) Reset ¶
func (x *ValidateRefreshTokenResponse) Reset()
func (*ValidateRefreshTokenResponse) String ¶
func (x *ValidateRefreshTokenResponse) String() string