Documentation ¶
Index ¶
Constants ¶
View Source
const ( // BrowserScreenIndex is the index BrowserScreenIndex = iota // AboutScreenIndex The idx number for the 'About' Screen AboutScreenIndex // ExitScreenIndex The idx number for Exiting ExitScreenIndex )
Variables ¶
View Source
var AppArgs struct { DBOpenTimeout time.Duration ReadOnly bool NoValue bool }
View Source
var CurrentFilename string
View Source
var DB *bolt.DB
View Source
var DatabaseFiles []string
View Source
var ProgramName = "boltbrowser"
View Source
var VersionNum = 2.0
Functions ¶
Types ¶
type AboutScreen ¶
type AboutScreen int
AboutScreen is just a basic 'int' type that we can extend to make this screen
type BoltBucket ¶
type BoltBucket struct {
// contains filtered or unexported fields
}
BoltBucket is just a struct representation of a Bucket in the Bolt DB
func (*BoltBucket) GetPath ¶
func (b *BoltBucket) GetPath() []string
GetPath returns the database path leading to this BoltBucket
type BoltDB ¶
type BoltDB struct {
// contains filtered or unexported fields
}
BoltDB A Database, basically a collection of buckets
var MemBolt *BoltDB
func (*BoltDB) RefreshDatabase ¶
type BoltPair ¶
type BoltPair struct {
// contains filtered or unexported fields
}
BoltPair is just a struct representation of a Pair in the Bolt DB
type BoltType ¶
type BoltType int
BoltType is just for tracking what type of db item we're looking at
type BrowserScreen ¶
type BrowserScreen struct {
// contains filtered or unexported fields
}
BrowserScreen holds all that's going on :D
type Command ¶
type Command struct {
// contains filtered or unexported fields
}
Command is a struct for associating descriptions to keys
type Screen ¶
type Screen interface {
// contains filtered or unexported methods
}
Screen is a basic structure for all of the applications screens
type Style ¶
type Style struct {
// contains filtered or unexported fields
}
Style Defines the colors for the terminal display, basically
func DefaultStyle ¶
func DefaultStyle() Style
Source Files ¶
Click to show internal directories.
Click to hide internal directories.