controller

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HandlerChain

type HandlerChain interface {
	Op(op string) bool
	Do(req *types.Request) (bool, *types.Response)
}

type ManagerController

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

func NewManagerController

func NewManagerController(opts ...ManagerControllerOption) *ManagerController

func (*ManagerController) Close

func (m *ManagerController) Close()

Close

func (*ManagerController) Register

func (m *ManagerController) Register(mux *http.ServeMux)

func (*ManagerController) Start

func (m *ManagerController) Start(stop chan struct{}) error

Start start manager service

type ManagerControllerOption

type ManagerControllerOption func(m *ManagerController)

func WithHandlerChains

func WithHandlerChains(handler ...HandlerChain) ManagerControllerOption

type RichHandlerChain

type RichHandlerChain interface {
	HandlerChain
	Open() error
	Close() error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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