servicemap

package
v0.1.4-canary Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServiceMapEnabled  = "enabled"
	ServiceMapDisabled = "disabled"
	UnresolvedNodeName = "unresolved"
)

Variables

This section is empty.

Functions

func GetDefaultServiceMapInstance

func GetDefaultServiceMapInstance() *defaultServiceMap

func NewDefaultServiceMapGenerator

func NewDefaultServiceMapGenerator() *defaultServiceMap

Types

type ServiceMap

type ServiceMap interface {
	Enable()
	Disable()
	IsEnabled() bool
	GetStatus() ServiceMapStatus
	GetNodes() []ServiceMapNode
	GetEdges() []ServiceMapEdge
	GetEntriesProcessedCount() int
	GetNodesCount() int
	GetEdgesCount() int
	Reset()
}

type ServiceMapEdge

type ServiceMapEdge struct {
	Source      ServiceMapNode    `json:"source"`
	Destination ServiceMapNode    `json:"destination"`
	Count       int               `json:"count"`
	Protocol    *baseApi.Protocol `json:"protocol"`
}

type ServiceMapNode

type ServiceMapNode struct {
	Id       int          `json:"id"`
	Name     string       `json:"name"`
	Entry    *baseApi.TCP `json:"entry"`
	Count    int          `json:"count"`
	Resolved bool         `json:"resolved"`
}

type ServiceMapResponse

type ServiceMapResponse struct {
	Status ServiceMapStatus `json:"status"`
	Nodes  []ServiceMapNode `json:"nodes"`
	Edges  []ServiceMapEdge `json:"edges"`
}

type ServiceMapSink

type ServiceMapSink interface {
	NewTCPEntry(source *baseApi.TCP, destination *baseApi.TCP, protocol *baseApi.Protocol)
}

type ServiceMapStatus

type ServiceMapStatus struct {
	Status                string `json:"status"`
	EntriesProcessedCount int    `json:"entriesProcessedCount"`
	NodeCount             int    `json:"nodeCount"`
	EdgeCount             int    `json:"edgeCount"`
}

Jump to

Keyboard shortcuts

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