logstorage

package
v0.0.0-...-b8d72a6 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 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 Log

type Log struct {
	Prefix    string
	Message   string
	Timestamp time.Time
}

type Receiver

type Receiver chan Log

type Store

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

func New

func New() Store

func (*Store) Append

func (s *Store) Append(stream string, ts time.Time, prefix, message string)

func (*Store) Subscribe

func (s *Store) Subscribe(ctx context.Context, ch Receiver, stream string, start time.Time, follow bool)

Jump to

Keyboard shortcuts

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