app

package
v0.0.0-...-04092ee Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2023 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Access

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

func NewAccess

func NewAccess(m Master) *Access

func (*Access) OnFrame

func (p *Access) OnFrame(client libol.SocketClient, frame *libol.FrameMessage) error

func (*Access) Stats

func (p *Access) Stats() (success, failed int)

type Master

type Master interface {
	UUID() string
	Protocol() string
	OffClient(client libol.SocketClient)
	ReadTap(device network.Taper, readAt func(f *libol.FrameMessage) error)
	NewTap(tenant string) (network.Taper, error)
}

type Neighbors

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

func NewNeighbors

func NewNeighbors(m Master) *Neighbors

func (*Neighbors) AddNeighbor

func (e *Neighbors) AddNeighbor(new *models.Neighbor, client libol.SocketClient)

func (*Neighbors) DelNeighbor

func (e *Neighbors) DelNeighbor(ipAddr net.IP)

func (*Neighbors) OnClientClose

func (e *Neighbors) OnClientClose(client libol.SocketClient)

func (*Neighbors) OnFrame

func (e *Neighbors) OnFrame(client libol.SocketClient, frame *libol.FrameMessage) error

type Online

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

func NewOnline

func NewOnline(m Master) *Online

func (*Online) AddLine

func (o *Online) AddLine(line *models.Line)

func (*Online) OnFrame

func (o *Online) OnFrame(client libol.SocketClient, frame *libol.FrameMessage) error

type Request

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

func NewRequest

func NewRequest(m Master) *Request

func (*Request) OnFrame

func (r *Request) OnFrame(client libol.SocketClient, frame *libol.FrameMessage) error

Jump to

Keyboard shortcuts

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