Documentation ¶
Overview ¶
Package classifyqueue provides a classification queue.
This package is a work in progress and makes no API stability promises.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dispatcher ¶
type Dispatcher func([]*tlsutil.ConnectionData, []tlsutil.ClassifyResponse)
Dispatcher function for process classification responses.
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager implements an async classification service.
func New ¶
func New(c tlsutil.Classifier, opt ...Option) *Manager
New returns a new classify manager.
func (*Manager) PushConnection ¶
func (m *Manager) PushConnection(req *tlsutil.ConnectionData) error
PushConnection add a new connection in the classification queue.
func (*Manager) SetConnectionDispatcher ¶
func (m *Manager) SetConnectionDispatcher(d Dispatcher)
SetConnectionDispatcher to dispatch connection classify responses.
type Option ¶
type Option func(*options)
Option encapsules options for manager.
func SetInterval ¶
SetInterval option allows change interval.
func SetQueueSize ¶
SetQueueSize option allows change classification queue size.
Click to show internal directories.
Click to hide internal directories.