graceful_service

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 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
}

func NewGracefulService

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

func (GracefulService) Shutdown

func (p GracefulService) Shutdown()

func (GracefulService) Subscribe

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

func (GracefulService) Unsubscribe

func (p GracefulService) Unsubscribe(id int)

func (GracefulService) Wait

func (p GracefulService) Wait()

type GracefulServiceConfig

type GracefulServiceConfig struct {
}

func NewGracefulServiceConfig

func NewGracefulServiceConfig() *GracefulServiceConfig

type GracefulServicePool

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

func NewGracefulServicePool

func NewGracefulServicePool(cfg *GracefulServiceConfig) *GracefulServicePool

type IGracefulClient

type IGracefulClient interface {
	Shutdown()
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL