common

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

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

Go to latest
Published: Feb 15, 2018 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Provider = "Provider"
	Consumer = "Consumer"
)

constant for provider and consumer

View Source
const (
	Env = "ServiceComb_ENV"

	EnvNodeIP     = "HOSTING_SERVER_IP"
	EnvInstance   = "instance_description.environment"
	EnvSchemaRoot = "SCHEMA_ROOT"
	EnvProjectID  = "CSE_PROJECT_ID"
)

constant for microservice environment parameters

View Source
const (
	EnvValueDev  = "development"
	EnvValueProd = "production"
)

constant for environment stage

View Source
const (
	SslCipherPluginKey = "cipherPlugin"
	SslVerifyPeerKey   = "verifyPeer"
	SslCipherSuitsKey  = "cipherSuits"
	SslProtocolKey     = "protocol"
	SslCaFileKey       = "caFile"
	SslCertFileKey     = "certFile"
	SslKeyFileKey      = "keyFile"
	SslCertPwdFileKey  = "certPwdFile"
	AKSKCustomCipher   = "cse.credentials.akskCustomCipher"
)

constant for secure socket layer parameters

View Source
const (
	ProtocolRest    = "rest"
	ProtocolHighway = "highway"
	LBSessionID     = "ServiceCombLB"
)

constant for protocol types

View Source
const (
	DefaultApp     = "default"
	DefaultVersion = "0.0.1"
	LatestVersion  = "latest"
	AllVersion     = "0+"
)

constant for default application name and version

View Source
const (
	HTTPS             = "https"
	JSON              = "application/json"
	Create            = "CREATE"
	Update            = "UPDATE"
	Delete            = "DELETE"
	Size              = "size"
	Client            = "client"
	File              = "File"
	SessionID         = "sessionid"
	ContentTypeJSON   = "application/json"
	DefaultTenant     = "default"
	DefaultChainName  = "default"
	RollingPolicySize = "size"
	FileRegistry      = "File"
	DefaultUserName   = "default"
	DefaultDomainName = "default"
	DefaultProvider   = "default"
)

constant used

View Source
const BuildinTagApp = "app"

BuildinTagApp build tag for the application

View Source
const BuildinTagVersion = "version"

BuildinTagVersion build tag version

View Source
const CallerKey = "caller"

CallerKey caller key

View Source
const DefaultKey = "default"

DefaultKey default key

View Source
const DefaultValue = "default"

DefaultValue default value

View Source
const (
	// HeaderSourceName is constant for header source name
	HeaderSourceName = "x-cse-src-microservice"
)
View Source
const (
	TransportTCP = "tcp"
)

constant for transport tcp

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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