core

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// context
	ContextHeaderXRequestID ContextKey = "X-Request-ID" // requestId key

	DefaultServiceName = "xservice-default" // default service name

	// env key
	EnvServiceName    = "XSERVICE_NAME"            // serviceName key
	EnvServiceVersion = "XSERVICE_VERSION"         // serviceVersion key
	EnvAdvertisedAddr = "XSERVICE_ADVERTISED_ADDR" // advertised addr key
	EnvEtcd           = "XSERVICE_ETCD"            // etc endpoint key
	EnvEtcdUser       = "XSERVICE_ETCD_USER"       // etcdUser key
	EnvEtcdPassword   = "XSERVICE_ETCD_PASSWORD"   // etcdPassword key

	// config key
	ConfigServiceAddr           = "http.address"            // config http address key
	ConfigServiceAdvertisedAddr = "http.advertised_address" // config http advertise address key

	ServiceConfigKeyPrefix   = "xservice/config"   // service config key prefix
	ServiceRegisterKeyPrefix = "xservice/register" // service register key prefix
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ContextKey

type ContextKey string

ContextKey for context key, string alias

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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