config

package
v0.0.0-...-9de2c1c Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DB

func DB() string

DB returns the database connection string.

func HighlightStyle

func HighlightStyle() string

Syntax style for JSON output.

func IsProd

func IsProd() bool

IsProd returns whether we're running in production mode.

func NoColour

func NoColour() bool

Disable colour in the CLI.

func NodeID

func NodeID() int64

NodeID returns the node ID used for distributed snowflake generation.

func Redis

func Redis() string

Redis returns the redis connection string.

func RedisKeyspace

func RedisKeyspace() string

RedisKeyspace returns the keyspace for redis, eg. "meow" will prefix all redis keys with "meow:".

func Secret

func Secret() string

Secret returns the master secret, as a hex string. Do not use this key directly; use config/secrets to generate per-task derivative keys.

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