config

package
v0.0.0-...-1239505 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: GPL-2.0 Imports: 1 Imported by: 0

Documentation

Overview

SPDX-License-Identifier: GPL-2.0-only

Index

Constants

View Source
const (
	ProcessModuleStatus     = "process module status"
	ProcessProtectionMode   = "process protection mode"
	ProcessCmdDefaultStatus = "process cmd default status"
	FileModuleStatus        = "file module status"
	NetModuleStatus         = "net module status"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// contains filtered or unexported fields
}

func New

func New(db *sql.DB) (c *Config, err error)

func (*Config) GetInteger

func (c *Config) GetInteger(key string) (value int, err error)

func (*Config) GetReal

func (c *Config) GetReal(key string) (value float64, err error)

func (*Config) GetText

func (c *Config) GetText(key string) (value string, err error)

func (*Config) SetInteger

func (c *Config) SetInteger(key string, value int) (err error)

func (*Config) SetReal

func (c *Config) SetReal(key string, value float64) (err error)

func (*Config) SetText

func (c *Config) SetText(key string, value string) (err error)

Jump to

Keyboard shortcuts

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