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 (*Memory) Delete ¶
func (m *Memory) Delete(id string) participant.Error
Delete removes and entry matching the provided id.
func (*Memory) Get ¶
func (m *Memory) Get(id string) (*participant.Participant, participant.Error)
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 ¶
func (m *Memory) Save(p participant.Participant) (*participant.Participant, participant.Error)
Save persists a participant to memory.
Click to show internal directories.
Click to hide internal directories.