auth_service

package
v0.0.0-...-76f7c0c Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2021 License: MIT Imports: 8 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_auth_service_proto protoreflect.FileDescriptor

Functions

func RegisterAuthServer

func RegisterAuthServer(s *grpc.Server, srv AuthServer)

Types

type AuthClient

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

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) Descriptor() ([]byte, []int)

Deprecated: Use Token.ProtoReflect.Descriptor instead.

func (*Token) GetAccessToken

func (x *Token) GetAccessToken() string

func (*Token) GetAccessTokenExpires

func (x *Token) GetAccessTokenExpires() int64

func (*Token) GetAccessUuid

func (x *Token) GetAccessUuid() string

func (*Token) GetRefreshToken

func (x *Token) GetRefreshToken() string

func (*Token) GetRefreshTokenExpires

func (x *Token) GetRefreshTokenExpires() int64

func (*Token) GetRefreshUuid

func (x *Token) GetRefreshUuid() string

func (*Token) ProtoMessage

func (*Token) ProtoMessage()

func (*Token) ProtoReflect

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

func (*Token) Reset

func (x *Token) Reset()

func (*Token) String

func (x *Token) String() string

type UnimplementedAuthServer

type UnimplementedAuthServer struct {
}

UnimplementedAuthServer can be embedded to have forward compatible implementations.

func (*UnimplementedAuthServer) GenerateQRCode

func (*UnimplementedAuthServer) GenerateToken

func (*UnimplementedAuthServer) ValidateQRCode

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 (*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 (*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 (*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 (*ValidateRefreshTokenResponse) Reset

func (x *ValidateRefreshTokenResponse) Reset()

func (*ValidateRefreshTokenResponse) String

Jump to

Keyboard shortcuts

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