Discover Packages
github.com/noartem/godi-example
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: ? 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.
Opens a new window with list of known importers.
README
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
Expand ▾
Collapse ▴
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.