package
module
Version:
v0.0.0-...-2b407f8
Opens a new window with list of versions in this module.
Published: Sep 11, 2020
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
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
¶
type AuthToken struct {
Token string `json:"token"`
RefreshToken string `json:"refresh_token"`
}
AuthToken holds authentication token details with refresh token
type IApi interface {
Start() error
}
IApi application api
IController api controller
type User struct {
ID uint `json:"id"`
Name string `json:"name"`
Password string `json:"-"`
Email string `json:"email"`
}
Source Files
¶
Directories
¶
cmd
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
api
Godi-example - example http server by github.com/noartem/godi
|
Godi-example - example http server by github.com/noartem/godi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Click to show internal directories.
Click to hide internal directories.