Documentation ¶
Index ¶
- Variables
- func NewConfig(v *viper.Viper) (c *configpb.Configuration, err error)
- func NewEnv(ctx context.Context, config *configpb.Configuration) (_ *_env, err error)
- func NewFileCleaner(ctx context.Context, config *configpb.Configuration) (_ *_fileCleaner, err error)
- func NewGC(ctx context.Context, config *configpb.Configuration) (_ *_gc, err error)
- func NewLog(ctx context.Context, cfg *configpb.Configuration) (_ *_log, err error)
- func NewWebServer(ctx context.Context, cfg *configpb.Configuration) (ws *webserver.WebServer, err error)
- func RunServer(ctx context.Context) (*_RunningServer, func(), error)
Constants ¶
This section is empty.
Variables ¶
View Source
var Application = wire.NewSet( NewConfig, )
Application 人脸驱动服务应用层
View Source
var WebHandler = wire.NewSet( golang.WebHandler, Application, )
WebHandler is a Wire provider set that includes all Services interface implementations. 人脸驱动服务接口层
Functions ¶
func NewConfig ¶
func NewConfig(v *viper.Viper) (c *configpb.Configuration, err error)
NewConfig 根据全局配置加载服务配置选项
func NewEnv ¶
func NewEnv(ctx context.Context, config *configpb.Configuration) (_ *_env, err error)
NewEnv 根据服务设置环境变量
func NewFileCleaner ¶
func NewFileCleaner(ctx context.Context, config *configpb.Configuration) (_ *_fileCleaner, err error)
func NewWebServer ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.