Documentation ¶
Overview ¶
Package flash is thin wrapper for fast key value database: bolt.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Flash ¶
type Flash interface { Set(bucketName, key string, value []byte) error Get(bucketName, key string) []byte Delete(bucketName, key string) error }
Flash is flash interface, between passing struct or interface: use interface
type RedStreak ¶
type RedStreak struct {
// contains filtered or unexported fields
}
RedStreak struct will keep the file db & bucket name
func NewFlash ¶
NewFlash will create new RedStreak pointer with dependency injection pattern for the sake of testable function
Click to show internal directories.
Click to hide internal directories.