cmd

package
v0.6.7 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MainCmd = &cobra.Command{
	Use:   "cashshuffle",
	Short: "CashShuffle server.",
	Long:  `CashShuffle server.`,
	Run: func(cmd *cobra.Command, args []string) {
		errChan := performCommand(cmd, args)
		handleServerErrors(errChan)
	},
}

MainCmd is the main command for Cobra.

Functions

This section is empty.

Types

type Config

type Config struct {
	DisplayVersion   bool   `json:"-"`
	Port             int    `json:"port,string"`
	StatsPort        int    `json:"stats_port,string"`
	WebSocketPort    int    `json:"websocket_port,string"`
	Cert             string `json:"cert"`
	Key              string `json:"key"`
	PoolSize         int    `json:"pool_size,string"`
	Debug            bool   `json:"debug,string"`
	AutoCert         string `json:"auto_cert"`
	BindIP           string `json:"bind_ip"`
	Tor              bool   `json:"tor,string"`
	TorBindIP        string `json:"tor_bind_ip"`
	TorPort          int    `json:"tor_port,string"`
	TorStatsPort     int    `json:"tor_stats_port,string"`
	TorWebSocketPort int    `json:"tor_websocket_port,string"`
}

Config stores all the application configuration.

func (*Config) Load

func (c *Config) Load() error

Load reads the configuration from ~/.cashshuffle/config and loads it into the Config struct. The config is in UCL format.

Jump to

Keyboard shortcuts

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