settings

package
v0.21.3 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2024 License: MIT Imports: 0 Imported by: 3

Documentation

Overview

Package settings provides a way to store and retrieve settings for resources.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Setting

type Setting map[string]interface{}

func (*Setting) Get

func (s *Setting) Get(key string) interface{}

Get returns the value of a key in the Setting Deprecated: use GetBool, GetString, or GetInt instead

func (*Setting) GetBool added in v0.17.0

func (s *Setting) GetBool(key string) bool

GetBool returns the boolean value of a key in the Setting

func (*Setting) GetInt added in v0.17.0

func (s *Setting) GetInt(key string) int

GetInt returns the integer value of a key in the Setting

func (*Setting) GetString added in v0.17.0

func (s *Setting) GetString(key string) string

GetString returns the string value of a key in the Setting

func (*Setting) Set

func (s *Setting) Set(key string, value interface{})

Set sets a key value pair in the Setting

type Settings

type Settings map[string]*Setting

func (*Settings) Get

func (s *Settings) Get(key string) *Setting

func (*Settings) Set

func (s *Settings) Set(key string, value *Setting)

Jump to

Keyboard shortcuts

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