auth

package
v0.0.0-...-23038bb Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Middleware

type Middleware interface {
	AuthGuard() gin.HandlerFunc
}

func NewMiddleware

func NewMiddleware(repo Repository) Middleware

type Repository

type Repository interface {
	CheckIsUserExist(id string) error
}

func NewRepository

func NewRepository(db *sql.DB) Repository

Jump to

Keyboard shortcuts

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