repository

package
v0.0.0-...-91c8016 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthMongoRepo

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

func NewAuthRepo

func NewAuthRepo(client *mongo.Client) *AuthMongoRepo

func (*AuthMongoRepo) GetUserAccountSecret

func (amr *AuthMongoRepo) GetUserAccountSecret(ctx context.Context) (result string, err error)

func (*AuthMongoRepo) GetUserPasswordSecret

func (amr *AuthMongoRepo) GetUserPasswordSecret(ctx context.Context) (result string, err error)

type TAuthSecret

type TAuthSecret struct {
	Name   string `json:"name" bson:"name"`
	Secret string `json:"secret" bson:"secret"`
}

type UserMongoRepo

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

func NewUserRepo

func NewUserRepo(client *mongo.Client) *UserMongoRepo

func (*UserMongoRepo) CreateUser

func (umr *UserMongoRepo) CreateUser(ctx context.Context, userPayload model.TCreateUserQuery) error

func (*UserMongoRepo) DeleteUser

func (umr *UserMongoRepo) DeleteUser(ctx context.Context, uid string) error

func (*UserMongoRepo) GetUser

func (umr *UserMongoRepo) GetUser(ctx context.Context, uid string) (result model.TGetUserResp, err error)

func (*UserMongoRepo) GetUserLoginInfo

func (umr *UserMongoRepo) GetUserLoginInfo(ctx context.Context, loginReq model.TLoginReq, userResult *model.TUser) (err error)

func (*UserMongoRepo) UpdateUser

func (umr *UserMongoRepo) UpdateUser(ctx context.Context, uid string, profile model.TUpdateUserReq) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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