perio

package
v1.2.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	EVENT_CHANNEL_LEN = 512
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

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

type EventType

type EventType uint8
const (
	TYPE_PERIO_ADD EventType = iota + 1
	TYPE_PERIO_DEL
	TYPE_PERIO_TIMEOUT
	TYPE_SERVER_CLOSE
)

func (EventType) String

func (t EventType) String() string

type PERIOGroup

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

type Server

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

func OpenServer

func OpenServer(wg *sync.WaitGroup) (*Server, error)

func (*Server) AddPeriodReportTimer

func (s *Server) AddPeriodReportTimer(lSeid uint64, urrid uint32, period time.Duration)

func (*Server) Close

func (s *Server) Close()

func (*Server) DelPeriodReportTimer

func (s *Server) DelPeriodReportTimer(lSeid uint64, urrid uint32)

func (*Server) Handle

func (s *Server) Handle(
	handler report.Handler,
	queryURR func(map[uint64][]uint32) (map[uint64][]report.USAReport, error),
)

func (*Server) Serve

func (s *Server) Serve(wg *sync.WaitGroup)

Jump to

Keyboard shortcuts

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