routes

package
v0.0.0-...-892bc34 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	*mux.Router
}

func NewServer

func NewServer() *Server

This function is responsible for starting the server it will contain the instance of the struct Server and calling the routes server.routes()

Esta função é responsavel por iniciar o servidor nela irá conter a instância da struct Server

e a chamada das rotas server.routes()

func (*Server) Authenticate

func (server *Server) Authenticate()

Authenticate() is responsible for handling user authentication

All routes that exist or that will exist must be here, It is also part of the Server struct

Authenticate() é responsavel por administrar a autenticação do usuário

Todas rotas que exitem ou que irão existir devem ficar aqui, Ela tambem faz parte do Server struct

func (*Server) User

func (server *Server) User()

This function will manage user routes

Note that User is part of Server struct but there is no struct here this happens because User is part of package router and struct Server is part of package router

User() is package router and Server struct too

Note que Usuário faz parte de Server struct, mas não tem nenhum struct aqui isso acontece pelo fato de que o User faz parte do packege router e a struct Serve também faz parte do package router

Jump to

Keyboard shortcuts

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