Documentation
¶
Index ¶
- func NewConfig() *viper.Viper
- func NewLogger(option loggerOption) *zap.Logger
- func NewLoggerOption(conf *viper.Viper) loggerOption
- func NewPostgresql(option postgresqlOption) *gorm.DB
- func NewPostgresqlOption(conf *viper.Viper) postgresqlOption
- func NewRedisOption(conf *viper.Viper) redisoption
- func NewRedisPool(option redisoption) *redis.Client
- func NewServerOption(conf *viper.Viper) serverOption
- func Run(a *App, option serverOption)
- type App
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLoggerOption ¶
func NewPostgresql ¶
func NewPostgresqlOption ¶
func NewRedisOption ¶
func NewRedisPool ¶
func NewRedisPool(option redisoption) *redis.Client
func NewServerOption ¶
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer(routes []router.IRoute, middlewares []middleware.IMiddleware) *App
Click to show internal directories.
Click to hide internal directories.