g

package
v0.0.0-...-4e448a7 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2016 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VERSION                 = "0.1"
	SIZE_BUCKET             = "_sz_"
	FIELDS_BUCKET           = "_f_"
	FVALUE_BUCKET_PREFIX    = "_v_"
	TERM_DOCS_BUCKET_PREFIX = "_t_"
	TERM_FIELDS_BUCKET      = "_tf_"
)
View Source
const (
	COMMIT = "6605a88"
)

Variables

View Source
var (
	ConfigFile string
)
View Source
var KVDB *bolt.DB

Functions

func BytesToInt64

func BytesToInt64(buf []byte) int64

func CloseDB

func CloseDB()

func Int64ToBytes

func Int64ToBytes(i int64) []byte

func OpenDB

func OpenDB()

func ParseConfig

func ParseConfig(cfg string)

func StringSliceIntersect

func StringSliceIntersect(a, b []string) []string

Types

type File

type File struct {
	Filename string
	Body     []byte
}

type GlobalConfig

type GlobalConfig struct {
	Pid   string      `json:"pid"`
	Debug bool        `json:"debug"`
	Http  *HttpConfig `json:"http"`
}

func Config

func Config() *GlobalConfig

type HttpConfig

type HttpConfig struct {
	Enabled bool   `json:"enabled"`
	Listen  string `json:"listen"`
}

Jump to

Keyboard shortcuts

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