store

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FilesystemMessageProvider

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

func NewFilesystemMessageProvider

func NewFilesystemMessageProvider(directory string) (FilesystemMessageProvider, error)

func (FilesystemMessageProvider) DeleteMessage

func (f FilesystemMessageProvider) DeleteMessage(messageId string) (err error)

func (FilesystemMessageProvider) LoadMessages

func (f FilesystemMessageProvider) LoadMessages() (messages []backends.Message, err error)

func (FilesystemMessageProvider) StoreMessage

func (f FilesystemMessageProvider) StoreMessage(id string, content string) error

type InMemoryMessageProvider

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

func NewInMemoryMessageProvider

func NewInMemoryMessageProvider() InMemoryMessageProvider

func (InMemoryMessageProvider) DeleteMessage

func (p InMemoryMessageProvider) DeleteMessage(messageId string) (err error)

func (InMemoryMessageProvider) LoadMessages

func (p InMemoryMessageProvider) LoadMessages() (messages []backends.Message, err error)

func (InMemoryMessageProvider) StoreMessage

func (p InMemoryMessageProvider) StoreMessage(id string, content string) error

Jump to

Keyboard shortcuts

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