Documentation ¶
Index ¶
- func CloseDataSource(datasource *data.DataSource)
- func LoadDataSource(ctx context.Context, dataConf *conf.DataConf) (*data.DataSource, error)
- func LogBanner(buildInfo conf.BuildInfo, logConf *conf.LogConf, logger *logrus.Logger, ...) error
- func NewDockerClient(ctx context.Context) (*client.Client, error)
- func NewGRPCServer(grpcConf *conf.GrpcConf, logger kratoslog.Logger) *grpc.Server
- func NewHttpServer(cfg *conf.WilsonConf, lang *locale.Locale, logger *logrus.Logger) (*gin.Engine, *http.Server)
- func NewLocale(cfg *locale.Conf) (*locale.Locale, error)
- func NewLogger(logConf *conf.LogConf) (*log.Logger, error)
- func NewSteamClient(cfg *conf.DstConf) (*steamapi.Client, error)
- type HttpServer
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloseDataSource ¶
func CloseDataSource(datasource *data.DataSource)
func LoadDataSource ¶
func NewDockerClient ¶
NewDockerClient returns a DockerClient from local environment
func NewGRPCServer ¶
NewGRPCServer initializes a new grpc server with kratos framework
func NewHttpServer ¶
func NewHttpServer(cfg *conf.WilsonConf, lang *locale.Locale, logger *logrus.Logger) (*gin.Engine, *http.Server)
NewHttpServer initializes http server configuration
Types ¶
type HttpServer ¶
type HttpServer struct { Logger *log.Logger Locale *locale.Locale // contains filtered or unexported fields }
func NewHTTPApp ¶
func NewHTTPApp(options ...Options) (*HttpServer, error)
func (*HttpServer) Run ¶
func (a *HttpServer) Run() error
func (*HttpServer) Shutdown ¶
func (a *HttpServer) Shutdown()
Click to show internal directories.
Click to hide internal directories.