Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterSchema ¶
func RegisterSchema(serverName string, structPtr interface{}, opts ...server.RegisterOption)
RegisterSchema Register a API service to specific server by name You must register API first before Call Init
func Run ¶
func Run()
Run bring up the service,it will not return error,instead just waiting for os signal,and shutdown gracefully
func SetDefaultConsumerChains ¶
SetDefaultConsumerChains your custom chain map for Consumer,if there is no config, this default chain will take affect
func SetDefaultProviderChains ¶
SetDefaultProviderChains set your custom chain map for Provider,if there is no config, this default chain will take affect
Types ¶
Directories ¶
Path | Synopsis |
---|---|
benchmark
|
|
helpers/helloworld/protobuf
Package helloworld is a generated protocol buffer package.
|
Package helloworld is a generated protocol buffer package. |
client
|
|
highway/pb
Package highway is a generated protocol buffer package.
|
Package highway is a generated protocol buffer package. |
client
Package client is an interface for any protocol's client
|
Package client is an interface for any protocol's client |
lager
Package lager is the package for lager
|
Package lager is the package for lager |
loadbalancer
Package loadbalancer is client side load balancer
|
Package loadbalancer is client side load balancer |
metadata
Package metadata provides framework info registered to registry.
|
Package metadata provides framework info registered to registry. |
router
Package router expose API for user to get or set route rule
|
Package router expose API for user to get or set route rule |
server
Package server is a package for protocol of a micro service
|
Package server is a package for protocol of a micro service |
examples
|
|
schemas/employ
Package employ is a generated protocol buffer package.
|
Package employ is a generated protocol buffer package. |
schemas/helloworld
Package helloworld is a generated protocol buffer package.
|
Package helloworld is a generated protocol buffer package. |
healthz
|
|
client
Package client is a generated protocol buffer package.
|
Package client is a generated protocol buffer package. |
Package metrics bootstrap metrics reporter, and supply 2 metrics registry native prometheus registry and rcrowley/go-metrics registry system registry is the place where go-chassis feed metrics data to you can get system registry and report them to varies monitoring system
|
Package metrics bootstrap metrics reporter, and supply 2 metrics registry native prometheus registry and rcrowley/go-metrics registry system registry is the place where go-chassis feed metrics data to you can get system registry and report them to varies monitoring system |
pkg
|
|
Package security created on 2017/6/22
|
Package security created on 2017/6/22 |
plugins/plain
Package plain created on 2017/6/22
|
Package plain created on 2017/6/22 |
server
|
|
third_party
|
|
forked/afex/hystrix-go/hystrix
Package hystrix is a latency and fault tolerance library designed to isolate points of access to remote systems, services and 3rd party libraries, stop cascading failure and enable resilience in complex distributed systems where failure is inevitable.
|
Package hystrix is a latency and fault tolerance library designed to isolate points of access to remote systems, services and 3rd party libraries, stop cascading failure and enable resilience in complex distributed systems where failure is inevitable. |
forked/afex/hystrix-go/loadtest/service
Package main implements an http server which executes a hystrix command each request and sends metrics to a statsd instance to aid performance testing.
|
Package main implements an http server which executes a hystrix command each request and sends metrics to a statsd instance to aid performance testing. |
forked/afex/hystrix-go/plugins
Plugins allows users to operate on statistics recorded for each circuit operation.
|
Plugins allows users to operate on statistics recorded for each circuit operation. |
Click to show internal directories.
Click to hide internal directories.