Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = fx.Module( "core", fx.Options( fx.Provide( NewStargazerConfig, NewStargazerDB, NewStargazerLogger, NewStargazerServer, ), ), )
Functions ¶
This section is empty.
Types ¶
type FiberLogger ¶
type FiberLogger struct {
*StargazerLogger
}
type FxLogger ¶
type FxLogger struct {
*StargazerLogger
}
type StargazerConfig ¶
func NewStargazerConfig ¶
func NewStargazerConfig() StargazerConfig
type StargazerDB ¶
func NewStargazerDB ¶
func NewStargazerDB(config StargazerConfig, logger StargazerLogger) StargazerDB
type StargazerLogger ¶
type StargazerLogger struct {
*zap.SugaredLogger
}
func NewStargazerLogger ¶
func NewStargazerLogger() StargazerLogger
func (*StargazerLogger) GetFxLogger ¶
func (l *StargazerLogger) GetFxLogger() fxevent.Logger
GetFxLogger gets logger for go-fx
type StargazerServer ¶
type StargazerServer struct { App *fiber.App Api fiber.Router }
func NewStargazerServer ¶
func NewStargazerServer(config StargazerConfig, sl StargazerLogger) StargazerServer
Click to show internal directories.
Click to hide internal directories.