package
1.4.0
Repository: https://github.com/leon-yc/ggs.git
Documentation: pkg.go.dev

# Functions

FromContext return the headers which should be send to provider through transport.
GetXGGSContext get x-ggs-context from req.header.
NewContext transforms a metadata to context object.
SetXGGSContext set value into x-ggs-context.
WithContext sets the KV and returns the context object.

# Constants

constant for secure socket layer parameters.
constant for default application name and version.
BuildinLabelVersion build label for version.
BuildinTagApp build tag for the application.
BuildinTagVersion build tag version.
CallerKey caller key.
constant used.
constant for provider and consumer.
constant used.
constant environment keys service center, config center, monitor server addresses.
constant environment keys service center, config center, monitor server addresses.
constant environment keys service center, config center, monitor server addresses.
constant for default application name and version.
constant used.
constant used.
constant for default application name and version.
默认的健康检测接口.
DefaultKey default key.
constant for default application name and version.
默认的metrics接口.
constant used.
const default config for config-center.
constant for default application name and version.
constant used.
constant used.
DefaultValue default value.
constant for default application name and version.
constant used.
constant for micro service environment parameters.
constant environment keys service center, config center, monitor server addresses.
constant for micro service environment parameters.
constant environment keys service center, config center, monitor server addresses.
constant for micro service environment parameters.
constant for micro service environment parameters.
constant for micro service environment parameters.
constant for microservice environment.
constant for microservice environment.
constant used.
constant used.
constant used.
HeaderSourceName is constant for header source name.
HeaderXCseContent is constant for header , get some json msg about HeaderSourceName like {"k":"v"}.
HeaderSourceName is constant for header service name for sidecar.
constant used.
constant used.
constant used.
constant for default application name and version.
constant for protocol types.
configuration placeholders.
constant for protocol types.
constant for protocol types.
constant for protocol types.
constant for provider and consumer.
RestMethod is the http method for restful protocol.
自动判断。(如果url.Host含有".",则判为SLB/ipport,否则,判为服务发现).
指定采用SLB或ipport.
指定采用服务发现.
指定采用sidecar.
ScopeApp means service is not able to access to another app's service.
ScopeFull means service is able to access to another app's service.
env connect with "." like service_description.name and service_description.version which can not be used in k8s.
SessionNameSpaceDefaultValue default session namespace value.
SessionNameSpaceKey metadata session namespace key.
SidecarAddress is constant for sidecar agent address.
constant for secure socket layer parameters.
constant for secure socket layer parameters.
constant for secure socket layer parameters.
constant for secure socket layer parameters.
constant for secure socket layer parameters.
constant for secure socket layer parameters.
constant for secure socket layer parameters.
constant for secure socket layer parameters.
constant for default application name and version.
constant used.
constant used.
env connect with "." like service_description.name and service_description.version which can not be used in k8s.

# Structs

ContextHeaderKey is the unified key of header value in contextall protocol integrated with go chassis must set protocol header into context in this context key.