Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppConfig ¶
type AppConfig struct { ID string Port int HealthCheckPath string HealthCheckTimeout string HealthCheckInterval string Version string }
AppConfig is application config
type ConsulConfig ¶
ConsulConfig is consul config
type EmptyError ¶
type EmptyError struct {
// contains filtered or unexported fields
}
EmptyError is empty upstream pool error
type Option ¶
type Option func(*Options)
Option is for setting options
func WithUpstream ¶
func WithUpstream(upstreamCfg UpstreamConfig) Option
WithUpstream sets upstream config
type Options ¶
type Options struct { Logger log.Logger App AppConfig Consul ConsulConfig Upstream UpstreamConfig }
Options is soa options
type SOA ¶
type SOA struct { Options // inherited options ConsulClient *consulapi.Client Service *consulapi.AgentServiceRegistration // contains filtered or unexported fields }
SOA is for soa service registration and discovery
type UpstreamConfig ¶
UpstreamConfig is upstream config
Click to show internal directories.
Click to hide internal directories.