Documentation ¶ Index ¶ Constants type Config type Plugin func New() *Plugin func (p *Plugin) Boot(conf interface{}, dependencies ...interface{}) plugins.Plugin func (p *Plugin) Close() error func (p *Plugin) DB() *bolt.DB func (p *Plugin) IsEnabled() bool func (p *Plugin) Name() string func (p *Plugin) Open(file string) *bolt.DB func (p *Plugin) Start() error Constants ¶ View Source const Name = "boltdb" Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Config ¶ type Config struct { Enable bool `env:"BOLTDB_ENABLE" default:"false" yaml:"enable"` File string `env:"BOLTDB_FILE" default:"db.db" yaml:"file"` } type Plugin ¶ type Plugin struct { // contains filtered or unexported fields } func New ¶ func New() *Plugin func (*Plugin) Boot ¶ func (p *Plugin) Boot(conf interface{}, dependencies ...interface{}) plugins.Plugin func (*Plugin) Close ¶ func (p *Plugin) Close() error func (*Plugin) DB ¶ func (p *Plugin) DB() *bolt.DB func (*Plugin) IsEnabled ¶ func (p *Plugin) IsEnabled() bool func (*Plugin) Name ¶ func (p *Plugin) Name() string func (*Plugin) Open ¶ func (p *Plugin) Open(file string) *bolt.DB func (*Plugin) Start ¶ func (p *Plugin) Start() error Source Files ¶ View all Source files plugin.go Click to show internal directories. Click to hide internal directories.