controller

package
v0.0.0-...-7d85c2f Latest Latest
Warning

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

Go to latest
Published: Oct 7, 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 Auth

type Auth struct {
	Authenticator *user.Authenticator
}

Auth controller struct

func CreateAuthController

func CreateAuthController(authenticator *user.Authenticator) *Auth

CreateAuthController controller for /auth/

func (Auth) Auth

func (a Auth) Auth(c *gin.Context)

Auth action for [post] /auth/

type User

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

User controller struct

func CreateUserController

func CreateUserController(userRepository repository.User, creator *user.Creator) *User

CreateUserController controller for /users/

func (User) Create

func (u User) Create(c *gin.Context)

Create action for [post] /users/

func (User) List

func (u User) List(c *gin.Context)

List action for [get] /users/

func (User) One

func (u User) One(c *gin.Context)

One action for [get] /users/:id

Jump to

Keyboard shortcuts

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