Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EurekaClient ¶
type EurekaClient interface { // Register the current application with Eureka and setup client side health checks // if enabled (default). // // If await is true then this call will block until either retries have been exhausted or an successful // registration. Register(await bool) error // Unregister the current application from Eureka. This is auto triggered during normal exiting or sigterm // but in some rare cases may be handled manually. Unregister() // GetInstance fetches the current application instance for the specified application name // and id GetInstance(name, id string) (*model.Instance, error) // GetCurrentInstance fetches the current application instance that has registered within // the current lifecycle GetCurrentInstance() (*model.Instance, error) // GetApplication returns the information about an application by its name. This also includes // information about all the available instances. GetApplication(name string) (*model.Application, error) // GetApplications fetches all applications and returns a map keyed by the application // name and a value of the application containing all available instances GetApplications() (map[string]*model.Application, error) }
func NewClient ¶
func NewClient(cfg *model.EurekaConfig) EurekaClient
type MaxAttemptBackoff ¶
type MaxAttemptBackoff struct { Interval time.Duration Attempts int // contains filtered or unexported fields }
func NewMaxAttemptBackoff ¶
func NewMaxAttemptBackoff(interval time.Duration, attempts int) *MaxAttemptBackoff
func (*MaxAttemptBackoff) NextBackOff ¶
func (b *MaxAttemptBackoff) NextBackOff() time.Duration
func (*MaxAttemptBackoff) Reset ¶
func (b *MaxAttemptBackoff) Reset()
type ShutdownChan ¶
type ShutdownChan chan bool
Click to show internal directories.
Click to hide internal directories.