auth

package
v0.0.0-...-b9cf7ac Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Params

type Params struct {
	fx.In

	UserserviceCl userservicev1Cl.GRPCClient
	Store         store.Store
	Config        *config.AppConfig
}

type Usecase

type Usecase interface {
	SignUp(c *fiber.Ctx, username, password string) (user *models.User, err error)
	SignIn(c *fiber.Ctx, username, password string) (user *models.User, err error)
	SignOut(c *fiber.Ctx) (err error)
	Me(c *fiber.Ctx) (user *models.User, err error)
}

Usecase describes all the methods for this usecase

func NewUsecase

func NewUsecase(params Params) Usecase

NewUsecase is a constructor for usecase

Jump to

Keyboard shortcuts

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