app

package
v0.0.0-...-976ea1f Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2020 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildContainer

func BuildContainer() (*dig.Container, func())

BuildContainer 创建依赖注入容器

func Init

func Init(ctx context.Context, opts ...Option) func()

Init 初始化应用

func InitHTTPServer

func InitHTTPServer(ctx context.Context, container *dig.Container) func()

InitHTTPServer 初始化http服务

func InitLogger

func InitLogger() (func(), error)

InitLogger 初始化日志

func InitStore

func InitStore(container *dig.Container) (func(), error)

InitStore 初始化存储

func InitWeb

func InitWeb(container *dig.Container) *gin.Engine

InitWeb 初始化web引擎

Types

type Option

type Option func(*options)

Option 定义配置项

func SetConfigFile

func SetConfigFile(s string) Option

SetConfigFile 设定配置文件

func SetVersion

func SetVersion(s string) Option

SetVersion 设定版本号

Directories

Path Synopsis
bll
Package routers 生成swagger文档 文档规则请参考:https://github.com/swaggo/swag#declarative-comments-format 使用方式: go get -u github.com/swaggo/swag/cmd/swag swag init -g ./internal/app/routers/swagger.go -o ./docs/swagger
Package routers 生成swagger文档 文档规则请参考:https://github.com/swaggo/swag#declarative-comments-format 使用方式: go get -u github.com/swaggo/swag/cmd/swag swag init -g ./internal/app/routers/swagger.go -o ./docs/swagger
api

Jump to

Keyboard shortcuts

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