configs

package
v0.0.0-...-5fd3f30 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2019 License: GPL-3.0 Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configs

type Configs struct {
	// contains filtered or unexported fields
}

func (*Configs) LoadFromFile

func (c *Configs) LoadFromFile(fileName string) error

LoadFromFile loading configs from file

func (*Configs) Settings

func (c *Configs) Settings() *PostSettings

Settings get configs pointer

type Configurable

type Configurable interface {
	LoadFromFile(fileName string) error
	Settings() *PostSettings
}

func NewConfigs

func NewConfigs() Configurable

NewConfigs make new struct

type DatabaseData

type DatabaseData struct {
	Ip     string
	User   string
	Passwd string
	Base   string
}

type PostSettings

type PostSettings struct {
	Server ServerData
	Db     DatabaseData
}

type ServerData

type ServerData struct {
	Ip   string
	Port int
}

Jump to

Keyboard shortcuts

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