replay

package
v0.1.1-rc1 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2015 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Dir string `toml:"dir"`
}

func NewConfig

func NewConfig() Config

func (Config) Validate

func (c Config) Validate() error

type RecordingInfo

type RecordingInfo struct {
	ID      string
	Type    kapacitor.TaskType
	Size    int64
	Created time.Time
}

type Service

type Service struct {
	TaskStore interface {
		Load(name string) (*kapacitor.Task, error)
	}
	HTTPDService interface {
		AddRoutes([]httpd.Route) error
		DelRoutes([]httpd.Route)
	}
	InfluxDBService interface {
		NewClient() (*client.Client, error)
	}
	TaskMaster interface {
		NewFork(name string, dbrps []kapacitor.DBRP) *kapacitor.Edge
		DelFork(name string)
		New() *kapacitor.TaskMaster
	}
	// contains filtered or unexported fields
}

Handles recording, starting, and waiting on replays

func NewService

func NewService(conf Config, l *log.Logger) *Service

Create a new replay master.

func (*Service) Close

func (r *Service) Close() error

func (*Service) Delete

func (r *Service) Delete(id string)

func (*Service) FindBatchRecording

func (r *Service) FindBatchRecording(id string) ([]io.ReadCloser, error)

func (*Service) FindStreamRecording

func (r *Service) FindStreamRecording(id string) (io.ReadCloser, error)

func (*Service) GetRecordings

func (r *Service) GetRecordings(rids []string) ([]RecordingInfo, error)

func (*Service) Open

func (r *Service) Open() error

Jump to

Keyboard shortcuts

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