Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Debug = true
)
Functions ¶
This section is empty.
Types ¶
type BaseConfig ¶
type Config ¶
type Config struct { Discovery *registry.Config RPCClient *RPCClientConfig RPCServer *RPCServerConfig Slot *SlotConfig Base *BaseConfig Metrics *MetricsConfig Prometheus *Prometheus }
Config config.
type MetricsConfig ¶
type Prometheus ¶
type Prometheus struct { Zone string Node string Name string Host string Module string ExitFlag bool Endpoints []string }
func (*Prometheus) Address ¶
func (this *Prometheus) Address() string
type RPCClientConfig ¶
type RPCClientConfig struct { Dial xtime.Duration Timeout xtime.Duration PermitWithoutStream bool InitialWindowSize int32 InitialConnWindowSize int32 BackoffMaxDelay xtime.Duration }
RPCClientConfig is RPC client config.
type RPCServerConfig ¶
type RPCServerConfig struct { APPID string Addr string Timeout xtime.Duration IdleTimeout xtime.Duration MaxLifeTime xtime.Duration ForceCloseWait xtime.Duration KeepAliveInterval xtime.Duration KeepAliveTimeout xtime.Duration MaxMessageSize int32 MaxConcurrentStreams int32 EnableOpenTracing bool }
RPCServer is RPC server config.
type SlotConfig ¶
Click to show internal directories.
Click to hide internal directories.