boltbrowserweb

package module
v0.0.0-...-49e7fa3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 20, 2018 License: MIT Imports: 5 Imported by: 0

README

This fork is an attempt to provide embedding static assets as requested in https://github.com/evnix/boltdbweb/issues/9.

boltdbweb

A simple web based boltdb GUI Admin panel.

Installation
go get github.com/gin-gonic/gin
go get github.com/boltdb/bolt/...
go get github.com/evnix/boltdbweb
cd $GOPATH/src/github.com/evnix/boltdbweb
go build boltdbweb.go

Optional

sudo mv boltdbweb /usr/bin 
Usage
boltdbweb --db-name=<DBfilename>[required] --port=<port>[optional] --static-path=<static-path>[optional]
  • --db-name: The file name of the DB.
    • NOTE: If 'file.db' does not exist. it will be created as a BoltDB file.
  • --port: Port for listening on... (Default: 8080)
Example
boltdbweb --db-name=test.db --port=8089 

Goto: http://localhost:8089

Screenshots:

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BoltDBUI

type BoltDBUI struct {
	Assets packr.Box
	// contains filtered or unexported fields
}

func New

func New(db *bolt.DB) (BoltDBUI, error)

func (BoltDBUI) Buckets

func (b BoltDBUI) Buckets(c *gin.Context)

func (BoltDBUI) CreateBucket

func (b BoltDBUI) CreateBucket(c *gin.Context)

func (BoltDBUI) DeleteBucket

func (b BoltDBUI) DeleteBucket(c *gin.Context)

func (BoltDBUI) DeleteKey

func (b BoltDBUI) DeleteKey(c *gin.Context)

func (BoltDBUI) Get

func (b BoltDBUI) Get(c *gin.Context)

func (BoltDBUI) Index

func (b BoltDBUI) Index(c *gin.Context)

func (BoltDBUI) PrefixScan

func (b BoltDBUI) PrefixScan(c *gin.Context)

func (BoltDBUI) Put

func (b BoltDBUI) Put(c *gin.Context)

type Result

type Result struct {
	Result string
	M      map[string]string
}

Directories

Path Synopsis
cmd
boltdbweb
boltdbweb is a webserver base GUI for interacting with BoltDB databases.
boltdbweb is a webserver base GUI for interacting with BoltDB databases.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL