config

package
v0.0.0-...-97fc41f Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2020 License: GPL-3.0 Imports: 3 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 {
	Version       float64 `json:"version,omitempty"`
	DbURI         string  `json:"db_uri,omitempty"`
	DbUser        string  `json:"db_user,omitempty"`
	DbPass        string  `json:"db_pass,omitempty"`
	Port          int     `json:"port"`
	CertFile      string  `json:"cert_file"`
	KeyFile       string  `json:"key_file"`
	AlexaClientID string  `json:"alexa_client_id"`
	AlexaSecret   string  `json:"alexa_secret"`
	GRPCPort      int     `json:"grpc_port"`
}

Config holds variables for our server

func ReadConfig

func ReadConfig(r io.Reader) (*Config, error)

ReadConfig reads the config file encoded in JSON

Jump to

Keyboard shortcuts

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