Version: v0.0.0-...-cbd3e2b Latest Latest

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




This section is empty.


This section is empty.


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.


This section is empty.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL