godi_example

package module
v0.0.0-...-2b407f8 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2020 License: MIT Imports: 1 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Godi-example - godi example RESTful app

Godi-example is example golang application using godi DI container noartem/godi.

This starter kit currently provides:

  • Fully featured RESTful endpoints for authentication
  • JWT authentication and session
  • Application configuration via config file (yaml)
  • Request marshaling and data validation
  • API Docs using SwaggerUI

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthToken

type AuthToken struct {
	Token        string `json:"token"`
	RefreshToken string `json:"refresh_token"`
}

AuthToken holds authentication token details with refresh token

type IApi

type IApi interface {
	Start() error
}

IApi application api

type IController

type IController interface {
	Register(e *echo.Echo) error
	Middlewares() []echo.MiddlewareFunc
}

IController api controller

type User

type User struct {
	ID       uint   `json:"id"`
	Name     string `json:"name"`
	Password string `json:"-"`
	Email    string `json:"email"`
}

Directories

Path Synopsis
cmd
api command
ent
pkg
api
Godi-example - example http server by github.com/noartem/godi
Godi-example - example http server by github.com/noartem/godi

Jump to

Keyboard shortcuts

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