inmem

package
v0.0.0-...-a9b7c8c Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InMemory

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

InMemory implements timely Scheduler using in-memory primitives. This implementation can be used for simple single-node use-cases.

func (*InMemory) Del

func (mem *InMemory) Del(_ context.Context, id string) error

func (*InMemory) Get

func (mem *InMemory) Get(_ context.Context, id string) (*timely.Schedule, error)

func (*InMemory) List

func (mem *InMemory) List(ctx context.Context, offset, count int) ([]timely.Schedule, error)

func (*InMemory) Put

func (mem *InMemory) Put(_ context.Context, sc timely.Schedule, update bool) (*timely.Schedule, error)

func (*InMemory) Requests

func (mem *InMemory) Requests(ctx context.Context) (<-chan timely.Request, error)

Jump to

Keyboard shortcuts

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