mock

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

Service is an in-memory implementation of tales.Manager for tests.

func NewService

func NewService(capacity int) *Service

NewService creates a fixed-capacity in-memory event log.

func (*Service) Close added in v0.0.3

func (s *Service) Close() error

func (*Service) Log

func (s *Service) Log(text string, actors ...uint32) error

func (*Service) Query

func (s *Service) Query(ctx context.Context, from, to time.Time, actors ...uint32) iter.Seq2[tales.Event, error]

func (*Service) Sync added in v0.2.0

func (s *Service) Sync(ctx context.Context) error

Jump to

Keyboard shortcuts

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