Documentation
¶
Index ¶
- func InitLogger(logLevel string)
- func Migrate(ctx context.Context, cfg *config.Config, version string) error
- func MigrateDown(ctx context.Context, cfg *config.Config, version string) error
- func Serve(ctx context.Context, cfg config.ServerConfig, ...) error
- func Start(ctx context.Context, cfg *config.Config, version string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitLogger ¶ added in v0.7.0
func InitLogger(logLevel string)
InitLogger sets up the global slog logger with a JSON handler.
func MigrateDown ¶ added in v0.7.0
MigrateDown rolls back the last database migration.
func Serve ¶
func Serve( ctx context.Context, cfg config.ServerConfig, namespaceService handler.NamespaceService, assetService handler.AssetService, starService handler.StarService, discussionService handler.DiscussionService, tagService handler.TagService, tagTemplateService handler.TagTemplateService, userService handler.UserService, ) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.