core

package
v0.0.0-...-3a29b05 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2017 License: MIT Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommonSub

type CommonSub struct {
	Host string `toml:"host"`
}

type Config

type Config struct {
	Common   CommonSub   `toml:"common"`
	Database DatabaseSub `toml:"database"`
}

func NewConfig

func NewConfig() *Config

func (*Config) Load

func (c *Config) Load(path string) error

type Database

type Database struct {
	DB *sql.DB
}

func NewDatabase

func NewDatabase() *Database

func (*Database) Load

func (d *Database) Load(dsn string) error

type DatabaseSub

type DatabaseSub struct {
	Dsn string `toml:"dsn"`
}

Jump to

Keyboard shortcuts

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