controllers

package
v0.0.0-...-ee596be Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Setup

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

Setup for controllers package

func NewController

func NewController(model *models.Conn, validator *validator.Validate) *Setup

Init the setup

func (*Setup) AuthUser

func (s *Setup) AuthUser(c *gin.Context)

func (*Setup) CreateUser

func (s *Setup) CreateUser(c *gin.Context)

func (*Setup) GenerateToken

func (s *Setup) GenerateToken(email string) (string, error)

Jump to

Keyboard shortcuts

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