handler

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

Types

type HandlerService

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

func (*HandlerService) Close

func (svc *HandlerService) Close() error

Close the service listener

func (*HandlerService) Name

func (svc *HandlerService) Name() string

func (*HandlerService) Start

func (svc *HandlerService) Start() error

Start handler service listener

type Store

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

func (*Store) Add

func (s *Store) Add(id string, handler handlerTY.Plugin)

Add a handler

func (*Store) CloseHandlers

func (s *Store) CloseHandlers()

func (*Store) Get

func (s *Store) Get(id string) handlerTY.Plugin

GetByID returns handler by id

func (*Store) ListIDs

func (s *Store) ListIDs() []string

func (*Store) Remove

func (s *Store) Remove(id string)

Remove a handler

Jump to

Keyboard shortcuts

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