cache

package
v0.0.0-...-a06e19b Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataCache

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

func New

func New() *DataCache

func (*DataCache) Drop

func (c *DataCache) Drop()
func (c *DataCache) ForEachLink(cb func(key string, link *link.Link))

func (*DataCache) ForEachService

func (c *DataCache) ForEachService(cb func(key string, svc *service.Service))

func (*DataCache) UpsertLinksFromFlows

func (c *DataCache) UpsertLinksFromFlows(
	flows []*flow.Flow,
) []Result[*link.Link]

func (*DataCache) UpsertService

func (c *DataCache) UpsertService(newSvc *service.Service) events.EventKind
func (c *DataCache) UpsertServiceLink(newLink *link.Link) events.EventKind

func (*DataCache) UpsertServicesFromFlows

func (c *DataCache) UpsertServicesFromFlows(
	flows []*flow.Flow,
) []Result[*service.Service]

type Result

type Result[T any] struct {
	Entry     T
	EventKind events.EventKind
}

Jump to

Keyboard shortcuts

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