controllers

package
v0.0.0-...-6dd8d72 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandlers

func NewHandlers(r *Repository)

NewHandlers sets the handler repository.

Types

type Repository

type Repository struct {
	App *config.AppConfig
	DB  database.DatabaseRepo
}

Repository represents the handler repository to share the app configuration.

var Repo *Repository

Repo is the repository to share the app configuration.

func NewRepo

NewRepo returns a new instance of a repository for the mongo driver.

func (*Repository) GetOwnUser

func (m *Repository) GetOwnUser(c *gin.Context)

func (*Repository) Login

func (m *Repository) Login(c *gin.Context)

func (*Repository) StatusHandler

func (m *Repository) StatusHandler(c *gin.Context)

Jump to

Keyboard shortcuts

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