Documentation
¶
Index ¶
- type AuthRepo
- type AuthRepoCtx
- func (a *AuthRepoCtx) Check(req *proto.CheckTokenRequest) *proto.CheckTokenResponse
- func (a *AuthRepoCtx) CheckPassword(encPW, pw string) bool
- func (a *AuthRepoCtx) Create(req *proto.CreateUserRequest) *proto.CreateUserResponse
- func (a *AuthRepoCtx) EncPassword(pw string) (string, error)
- func (a *AuthRepoCtx) Login(req *proto.LoginRequest) *proto.LoginResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthRepo ¶
type AuthRepo interface { Create(req *proto.CreateUserRequest) *proto.CreateUserResponse Login(req *proto.LoginRequest) *proto.LoginResponse Check(req *proto.CheckTokenRequest) *proto.CheckTokenResponse }
type AuthRepoCtx ¶
func NewAuthRepo ¶
func NewAuthRepo(c *common.Common, sto *storage.Storage) *AuthRepoCtx
func (*AuthRepoCtx) Check ¶
func (a *AuthRepoCtx) Check(req *proto.CheckTokenRequest) *proto.CheckTokenResponse
func (*AuthRepoCtx) CheckPassword ¶
func (a *AuthRepoCtx) CheckPassword(encPW, pw string) bool
func (*AuthRepoCtx) Create ¶
func (a *AuthRepoCtx) Create(req *proto.CreateUserRequest) *proto.CreateUserResponse
func (*AuthRepoCtx) EncPassword ¶
func (a *AuthRepoCtx) EncPassword(pw string) (string, error)
func (*AuthRepoCtx) Login ¶
func (a *AuthRepoCtx) Login(req *proto.LoginRequest) *proto.LoginResponse
Click to show internal directories.
Click to hide internal directories.