Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Driver ¶
type Driver interface { Initialize() error Terminate() error ListIDs() ([]string, error) Get(id string) (*shared.Paste, error) Save(paste *shared.Paste) error Delete(id string) error Cleanup() (int, error) }
Driver represents a storage driver
var Current Driver
Current holds the current storage driver
Click to show internal directories.
Click to hide internal directories.