listener

package
v1.0.1-rc1 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetListenerServiceFactory

func SetListenerServiceFactory(protocol model.ProtocolType, newRegFunc func(lc *model.Listener, bs *model.Bootstrap) (ListenerService, error))

SetListenerServiceFactory will store the listenerService factory by name

Types

type BaseListenerService

type BaseListenerService struct {
	Config      *model.Listener
	FilterChain *filterchain.NetworkFilterChain
}

type ListenerGracefulShutdownConfig

type ListenerGracefulShutdownConfig struct {
	ActiveCount   int32
	RejectRequest bool
}

func (*ListenerGracefulShutdownConfig) AddActiveCount

func (lgsc *ListenerGracefulShutdownConfig) AddActiveCount(num int32)

type ListenerService

type ListenerService interface {
	// Start the listener service
	Start() error
	// Close the listener service forcefully
	Close() error
	// ShutDown gracefully shuts down the listener.
	ShutDown(interface{}) error
	// Refresh config
	Refresh(model.Listener) error
}

func CreateListenerService

func CreateListenerService(lc *model.Listener, bs *model.Bootstrap) (ListenerService, error)

CreateListenerService create listener service

Directories

Path Synopsis
inspired by dubbogo/remoting/getty
inspired by dubbogo/remoting/getty

Jump to

Keyboard shortcuts

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