conf

package
v0.0.0-...-034af97 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	Threads struct {
		Source      string `mapstructure:"source" json:"source"`
		Destination string `mapstructure:"destination" json:"destination"`
		Host        string `mapstructure:"host" json:"host"`
		Port        int    `mapstructure:"port" json:"port"`
	}

	API struct {
		SiteURL     string `mapstructure:"site_url" json:"site_url"`
		Repository  string `mapstructure:"repository" json:"repository"`
		AccessToken string `mapstructure:"access_token" json:"access_token"`
		Host        string `mapstructure:"host" json:"host"`
		Port        int    `mapstructure:"port" json:"port"`
	} `mapstructure:"api" json:"api"`

	Logging struct {
		Level string `mapstructure:"level" json:"level"`
		File  string `mapstructure:"file" json:"file"`
	} `mapstructure:"logging" json:"logging"`

	JWT struct {
		Secret string `mapstructure:"secret" json:"secret"`
	} `mapstructure:"jwt" json:"jwt"`
}

func LoadConfig

func LoadConfig(cmd *cobra.Command) (*Configuration, error)

Jump to

Keyboard shortcuts

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