etc

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfigDirName added in v0.0.2

func GetConfigDirName() string

func GetConfigDirPath added in v0.0.2

func GetConfigDirPath() (string, error)

func GetConfigFileName added in v0.0.2

func GetConfigFileName() string

func GetConfigFilePath added in v0.0.2

func GetConfigFilePath() (string, error)

func PanicIfErrorExist

func PanicIfErrorExist(err error)

Types

type Config

type Config struct {
	Services []*ServiceConfig
}

func (*Config) FindServiceConfig added in v0.0.2

func (c *Config) FindServiceConfig(host string) (*ServiceConfig, bool)

func (*Config) FindServiceConfigs added in v0.0.2

func (c *Config) FindServiceConfigs(host string) *Config

func (*Config) ListServiceConfigHost added in v0.0.2

func (c *Config) ListServiceConfigHost() (hosts []string)

type HostType

type HostType int

type ServiceConfig

type ServiceConfig struct {
	Host     string
	Type     string
	Token    string `mapstructure:"oauth_token" yaml:"oauth_token"`
	Protocol string
}

Jump to

Keyboard shortcuts

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