dispatcher

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2021 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(name string, creator DispatcherCreator)

Types

type Dispatcher

type Dispatcher interface {
	Listen() (err error)
	// buf is a buffer to store decrypted text
	Auth(buf []byte, data []byte, userContext *config.UserContext) (hit *config.Server, content []byte)
	UpdateGroup(group *config.Group)
	Close() (err error)
}

func New

func New(name string, group *config.Group) (Dispatcher, bool)

type DispatcherCreator

type DispatcherCreator func(group *config.Group) Dispatcher

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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