journal

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package journal emits IP and PATH related event messages to NATS. The journal may be used for healing IPAM and/or auditing connection activity.

Index

Constants

View Source
const ActionClose = "close"

ActionClose indicates that the event captured is a connection close.

View Source
const ActionRequest = "request"

ActionRequest indicates that the event seen is a connection request. The connection requests may also be a keep alive.

Variables

This section is empty.

Functions

func NewServer

func NewServer(journalID string, stanConn stan.Conn) (networkservice.NetworkServiceServer, error)

NewServer creates a new journaling server with the name journalID using provided streaming NATS connection

Types

type Entry

type Entry struct {
	Time         time.Time
	Sources      []string
	Destinations []string
	Action       string
	Path         *networkservice.Path
}

Entry is populated and serialized to NATS.

Jump to

Keyboard shortcuts

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