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()
}
Click to show internal directories.
Click to hide internal directories.