memory

package
v0.0.0-...-da73495 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Memory

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

Memory implements repository persisting participants in memory.

func New

func New() *Memory

New returns a new memory repository.

func (*Memory) Delete

func (m *Memory) Delete(id string) participant.Error

Delete removes and entry matching the provided id.

func (*Memory) Get

Get retrieves a participant from memory.

func (*Memory) GetAll

func (m *Memory) GetAll() ([]*participant.Participant, participant.Error)

GetAll retrieves all participants from memory.

func (*Memory) Save

Save persists a participant to memory.

Jump to

Keyboard shortcuts

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