config

package
v0.0.0-...-d5107d6 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2016 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Auth

func Auth(ac string) bool

func Init

func Init(fileName string, port int64) error

func Port

func Port() int64

Types

type API

type API struct {
	AuthKey string `json:"authkey"`
}

------------------------------- API -------------------------------

type Config

type Config struct {
	Loaded bool
	Server Server `json:"server"`
	API    API    `json:"api"`
}

------------------------------- Config -------------------------------

var (
	C Config
)

func (*Config) Display

func (x *Config) Display() string

type Server

type Server struct {
	Port int64 `json:"port"`
}

------------------------------- Server -------------------------------

Jump to

Keyboard shortcuts

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