Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterSchema ¶
func RegisterSchema(protocol string, structPtr interface{}, opts ...serverOption.RegisterOption)
RegisterSchema Register a API service to specific protocol 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 |
---|---|
client
|
|
highway/pb
Package highway is a generated protocol buffer package.
|
Package highway is a generated protocol buffer package. |
codec
Package codec is an interface for encoding messages
|
Package codec is an interface for encoding messages |
lager
Package lager is the package for lager
|
Package lager is the package for lager |
loadbalance
Package loadbalance is a way to load balance service nodes
|
Package loadbalance is a way to load balance service nodes |
util/metadata
Package metadata is a way of defining message headers
|
Package metadata is a way of defining message headers |
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. |
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. |
forked/go-micro/client
Package client is an interface for any protocol's client
|
Package client is an interface for any protocol's client |
forked/go-micro/selector
Package loadbalance is a way to load balance service nodes
|
Package loadbalance is a way to load balance service nodes |
forked/go-micro/server
Package server is an interface for a micro server
|
Package server is an interface for a micro server |
forked/kubernetes/pkg/util/sets
Package sets has auto-generated set types.
|
Package sets has auto-generated set types. |
forked/kubernetes/pkg/util/sets/types
Package types just provides input types to the set generator.
|
Package types just provides input types to the set generator. |
forked/valyala/fasthttp
Package fasthttp provides fast HTTP server and client API.
|
Package fasthttp provides fast HTTP server and client API. |
forked/valyala/fasthttp/examples/fileserver
Example static file server.
|
Example static file server. |
forked/valyala/fasthttp/expvarhandler
Package expvarhandler provides fasthttp-compatible request handler serving expvars.
|
Package expvarhandler provides fasthttp-compatible request handler serving expvars. |
forked/valyala/fasthttp/fasthttpadaptor
Package fasthttpadaptor provides helper functions for converting net/http request handlers to fasthttp request handlers.
|
Package fasthttpadaptor provides helper functions for converting net/http request handlers to fasthttp request handlers. |
forked/valyala/fasthttp/fasthttputil
Package fasthttputil provides utility functions for fasthttp.
|
Package fasthttputil provides utility functions for fasthttp. |
forked/valyala/fasthttp/reuseport
Package reuseport provides TCP net.Listener with SO_REUSEPORT support.
|
Package reuseport provides TCP net.Listener with SO_REUSEPORT support. |
transport
|
|
tcp
Package tcp provides a TCP transport Package tcp provides a TCP transport
|
Package tcp provides a TCP transport Package tcp provides a TCP transport |
util
|
|
Click to show internal directories.
Click to hide internal directories.