records

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2025 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Deletable

type Deletable interface {
}

type Records

type Records[T Deletable] struct {
	// contains filtered or unexported fields
}

func (*Records[T]) Add

func (b *Records[T]) Add(record T)

func (*Records[T]) GetLatestRecord

func (b *Records[T]) GetLatestRecord() (T, error)

func (*Records[T]) Length

func (b *Records[T]) Length() int

func (*Records[T]) List

func (b *Records[T]) List(callback func(values []T))

type StampedObjects

type StampedObjects[T interface{}] struct {
	List      []T
	Timestamp time.Time
}

func NewStampedObjects

func NewStampedObjects[T interface{}]() StampedObjects[T]

func (*StampedObjects[T]) Add

func (b *StampedObjects[T]) Add(obj T)

Jump to

Keyboard shortcuts

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