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
Click to show internal directories.
Click to hide internal directories.