config

package
v0.0.0-...-964c2da Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2020 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Service = new(config)

Functions

This section is empty.

Types

type Config

type Config interface {
	GetServiceConfig(s service.Service) *ServiceConfig
}

type ServiceConfig

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

func (*ServiceConfig) AddSection

func (sc *ServiceConfig) AddSection(section, typ string) error

func (*ServiceConfig) Del

func (sc *ServiceConfig) Del(section, option string)

func (*ServiceConfig) DelSection

func (sc *ServiceConfig) DelSection(section string)

func (*ServiceConfig) Get

func (sc *ServiceConfig) Get(section, option string) ([]string, bool)

func (*ServiceConfig) GetBool

func (sc *ServiceConfig) GetBool(section, option string) (bool, bool)

func (*ServiceConfig) GetBoolDefault

func (sc *ServiceConfig) GetBoolDefault(section, option string, def bool) bool

func (*ServiceConfig) GetInt

func (sc *ServiceConfig) GetInt(section, option string) (int, bool, error)

func (*ServiceConfig) GetIntDefault

func (sc *ServiceConfig) GetIntDefault(section, option string, def int) (int, error)

func (*ServiceConfig) GetIntList

func (sc *ServiceConfig) GetIntList(section, option string) ([]int, bool, error)

func (*ServiceConfig) GetLast

func (sc *ServiceConfig) GetLast(section, option string) (string, bool)

func (*ServiceConfig) GetSections

func (sc *ServiceConfig) GetSections(secType string) ([]string, bool)

func (*ServiceConfig) GetStringDefault

func (sc *ServiceConfig) GetStringDefault(section, option string, def string) string

func (*ServiceConfig) Set

func (sc *ServiceConfig) Set(section, option string, values ...string) bool

Jump to

Keyboard shortcuts

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