config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCustomConfigPrefix

func NewCustomConfigPrefix(s string) string

NewCustomConfigPrefix returns a string which start with "SERVICE_CUSTOM"

Types

type ServiceConfig

type ServiceConfig struct {
	ServiceID      string
	ServiceName    string
	ServiceENV     ServiceENV
	ServiceVersion string
	ServiceTags    []string

	TraceHost string
	TracePort int

	LoggerNetwork  string
	LoggerADDR     string
	LoggerPriority syslog.Priority
}

ServiceConfig is used to describe configs

func NewServiceConfig

func NewServiceConfig() *ServiceConfig

NewServiceConfig returns a ServiceConfig

type ServiceENV

type ServiceENV string

ServiceENV string

const (
	// ServiceENVTesting used for testing env
	ServiceENVTesting ServiceENV = "testing"
	// ServiceENVDev used for dev env
	ServiceENVDev ServiceENV = "dev"
	// ServiceENVStaging used for staging env
	ServiceENVStaging ServiceENV = "staging"
	// ServiceENVProd used for prod env
	ServiceENVProd ServiceENV = "production"
)

type ServiceVersion

type ServiceVersion string

ServiceVersion string

Jump to

Keyboard shortcuts

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