activity

package
v1.28.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2025 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 Logger

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

Logger is an in-memory, thread-safe, capped-size activity logger.

func NewLogger

func NewLogger(maxSize int) *Logger

NewLogger creates a new activity logger with the specified max size.

func (*Logger) Add

func (l *Logger) Add(action, target, status, message string)

Add adds a new activity event.

func (*Logger) Get

func (l *Logger) Get() []core.ActivityEvent

Get returns a copy of all current activity events.

Jump to

Keyboard shortcuts

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