Documentation
¶
Index ¶
- Variables
- func Display(cmd *cobra.Command, v any, prettyFormatter FormatFn) error
- func Execute(ctx context.Context)
- func GoFormat(w io.Writer, v any) error
- func JSONFormat(w io.Writer, v any) error
- func TOMLFormat(w io.Writer, v any) error
- func YAMLFormat(w io.Writer, v any) error
- type Config
- type FormatFn
- type RunEFunc
Constants ¶
This section is empty.
Variables ¶
View Source
var PaginationSizeDefault, PaginationPageDefault int32
Functions ¶
func Display ¶ added in v0.1.24
Display formats the given value 'v' using format specified as value for --format flag and writes to STDOUT. If --format=pretty/human, custom-formatter passed will be used.
func JSONFormat ¶ added in v0.1.24
JSONFormat outputs 'v' formatted as indented JSON.
func TOMLFormat ¶ added in v0.1.24
TOMLFormat outputs 'v' formatted as per TOML spec.
Types ¶
type Config ¶
type Config struct { Log logger.LogConfig `mapstructure:"log"` Syncer syncerConf `mapstructure:"syncer"` Service serveConfig `mapstructure:"service"` PGConnStr string `mapstructure:"pg_conn_str" default:"postgres://postgres@localhost:5432/entropy?sslmode=disable"` Telemetry telemetry.Config `mapstructure:"telemetry"` }
Config contains the application configuration.
Click to show internal directories.
Click to hide internal directories.