cli

package
v0.0.0-...-d97f614 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LogSource = true

LogSource ensures that source code position gets logged along with log record. TODO: Set to false or remove in production release.

Functions

func InitDB

func InitDB() (*sql.DB, error)

InitDB sets up database connection, or returns error in case of failure.

func InitSlog

func InitSlog(w io.Writer, level slog.Level)

InitSlog sets up a structured JSON slog.Logger as default.

func Main

func Main() error

Main is the entrypoint of the fairshare server CLI.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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