config

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	DB DB
}

func Load

func Load() (*Config, error)

type DB

type DB struct {
	Project            string `envconfig:"GOOGLE_CLOUD_PROJECT"`
	Instance           string `envconfig:"DB_SPANNER_INSTANCE"`
	Database           string `envconfig:"DB_SPANNER_DATABASE"`
	Channels           int    `default:"4" split_words:"true"`
	SessionsPerChannel int    `default:"100" split_words:"true"`
	Debug              bool   `default:"false"`
	Stats              bool   `default:"false"`
}

func (DB) Format

func (c DB) Format() string

Jump to

Keyboard shortcuts

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