store

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2025 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Overview

Package store is the internal memory store for loaded configuration settings

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clear

func Clear()

Clear will clear store contents

func GetArray

func GetArray(key string) ([]string, bool)

GetArray will get an array value

func GetBool

func GetBool(key string) (bool, bool)

GetBool will get a bool value

func GetInt64

func GetInt64(key string) (int64, bool)

GetInt64 will get an int64 value

func GetString

func GetString(key string) (string, bool)

GetString will get a string value

func SetArray

func SetArray(key string, val []string)

SetArray will set an array value

func SetBool

func SetBool(key string, val bool)

SetBool will set a bool value

func SetInt64

func SetInt64(key string, val int64)

SetInt64 will set an int64 value

func SetString

func SetString(key, val string)

SetString will set a string value

Types

type KeyValue

type KeyValue struct {
	Key   string
	Value interface{}
}

KeyValue are values exportable for interrogation beyond the store

func List

func List(filter ...string) []KeyValue

List will get the key/value list of settings

Jump to

Keyboard shortcuts

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