graceful_service

package
Version: v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 11, 2020 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GracefulService

type GracefulService struct {
	// contains filtered or unexported fields
}

GracefulService ...

func NewGracefulService

func NewGracefulService(cfg *GracefulServiceConfig,
	hub *GracefulServicePool) (graceful *GracefulService)

NewGracefulService ...

func (GracefulService) Shutdown

func (p GracefulService) Shutdown()

Shutdown ...

func (GracefulService) Subscribe

func (p GracefulService) Subscribe(client IGracefulClient) (id int)

Subscribe ...

func (GracefulService) Unsubscribe

func (p GracefulService) Unsubscribe(id int)

Unsubscribe ...

func (GracefulService) Wait

func (p GracefulService) Wait()

Wait ...

type GracefulServiceConfig

type GracefulServiceConfig struct {
}

GracefulServiceConfig ...

func NewGracefulServiceConfig

func NewGracefulServiceConfig() *GracefulServiceConfig

NewGracefulServiceConfig ...

type GracefulServicePool

type GracefulServicePool struct {
	// contains filtered or unexported fields
}

GracefulServicePool ...

func NewGracefulServicePool

func NewGracefulServicePool(cfg *GracefulServiceConfig) *GracefulServicePool

NewGracefulServicePool ...

type IGracefulClient

type IGracefulClient interface {
	Shutdown()
}

IGracefulClient ...

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL