storage

package
v0.0.0-...-cbd3e2b Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2016 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFile

func NewFile(file string) (flamingo.Storage, error)

NewFile creates a new storage that will be saved to a disk file. This storage truncates the file every time it saves. Be sure to not use multiple instances of a file storage on the same file. Instead, reuse the same Storage across multiple clients. Read operations are very cheap, since they are done in-memory and kept up to date with the writes. Write operations are slower, though, because every time a save operation is performed, it will truncate the file and write all again.

func NewMemory

func NewMemory() flamingo.Storage

NewMemory creates a new in-memory storage for bots and conversations.

Types

This section is empty.

Jump to

Keyboard shortcuts

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