saver

package
v0.0.0-...-23b1354 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package saver flushes presentations by the time.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Saver

type Saver interface {
	Init(ctx context.Context)
	Save(ctx context.Context, presentation model.Presentation) error
	Close()
}

Saver is the interface that wraps the methods which save presentations asynchronous.

func NewSaver

func NewSaver(capacity uint, duration time.Duration, alarm alarm.Alarm, flusher flusher.Flusher) Saver

NewSaver returns the Saver interface

Jump to

Keyboard shortcuts

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