config

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2021 License: GPL-2.0, GPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

	GoBigdis is a persistent database that implements the Redis server protocol.
    Copyright (C) 2021  Riccardo Berto

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.

Index

Constants

View Source
const CacheDepth = 3

CacheDepth is a const var just for documentation purposes. It avoids adding "3" as a condition for for-cycles, so the cycles' purpose is somewhat clearer. It is not supposed to be ever changed as it's a hard-coded feature.

View Source
const VERSION = "1"

Variables

View Source
var Config config

Functions

func Init

func Init(configFile, dbRoot, host string, port int)

Init bootstraps the config from the config file and warms up the DB dir

Types

This section is empty.

Jump to

Keyboard shortcuts

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