Documentation
¶
Index ¶
- type Service
- func (s *Service) Close() error
- func (s *Service) Log(text string, actors ...uint32) error
- func (s *Service) Page(ctx context.Context, from, to time.Time, cursor tales.Cursor, limit int, ...) ([]tales.Event, tales.Cursor, error)
- func (s *Service) Scan(ctx context.Context, from, to time.Time, actors ...uint32) iter.Seq2[tales.Event, error]
- func (s *Service) Sync(ctx context.Context) error
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 ¶
NewService creates a fixed-capacity in-memory event log.
Click to show internal directories.
Click to hide internal directories.