incomingtrafficholder

package
v0.0.0-...-d201ddd Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IP

type IP string

type IncomingTrafficCallbackFunc

type IncomingTrafficCallbackFunc func(context.Context, []TimestampedIncomingTrafficIntent)

type IncomingTrafficIntent

type IncomingTrafficIntent struct {
	Server   model.OtterizeServiceIdentity `json:"client"`
	LastSeen time.Time
	IP       string
}

type IncomingTrafficIntentsHolder

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

func NewIncomingTrafficIntentsHolder

func NewIncomingTrafficIntentsHolder() *IncomingTrafficIntentsHolder

func (*IncomingTrafficIntentsHolder) AddIntent

func (*IncomingTrafficIntentsHolder) GetNewIntentsSinceLastGet

func (h *IncomingTrafficIntentsHolder) GetNewIntentsSinceLastGet() []TimestampedIncomingTrafficIntent

func (*IncomingTrafficIntentsHolder) PeriodicIntentsUpload

func (h *IncomingTrafficIntentsHolder) PeriodicIntentsUpload(ctx context.Context, interval time.Duration)

func (*IncomingTrafficIntentsHolder) RegisterNotifyIntents

func (h *IncomingTrafficIntentsHolder) RegisterNotifyIntents(callback IncomingTrafficCallbackFunc)

type IncomingTrafficKey

type IncomingTrafficKey struct {
	ServerName      string
	ServerNamespace string
	IP              string
}

type TimestampedIncomingTrafficIntent

type TimestampedIncomingTrafficIntent struct {
	Timestamp time.Time
	Intent    IncomingTrafficIntent
}

Jump to

Keyboard shortcuts

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