pairec_config

package
v2.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Pairec_Config_Scene_Name = "pairec_config_manage"
)

Functions

This section is empty.

Types

type PairecConfig

type PairecConfig struct{}

func (*PairecConfig) ParseData

func (js *PairecConfig) ParseData(data []byte) (config.Configer, error)

func (*PairecConfig) ParseFile

func (js *PairecConfig) ParseFile(configName string) (config.Configer, error)

* * ParseFile load config from pairec config server * configName the name of pairec config server parameter name

type PairecConfigContainer

type PairecConfigContainer struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func (*PairecConfigContainer) Bool

func (c *PairecConfigContainer) Bool(key string) (bool, error)

func (*PairecConfigContainer) Float64

func (c *PairecConfigContainer) Float64(key string) (float64, error)

func (*PairecConfigContainer) Get

func (c *PairecConfigContainer) Get(key string) (interface{}, error)

func (*PairecConfigContainer) Int

func (c *PairecConfigContainer) Int(key string) (int, error)

func (*PairecConfigContainer) Int64

func (c *PairecConfigContainer) Int64(key string) (int64, error)

func (*PairecConfigContainer) RawData

func (c *PairecConfigContainer) RawData() []byte

func (*PairecConfigContainer) Set

func (c *PairecConfigContainer) Set(key, val string) error

func (*PairecConfigContainer) String

func (c *PairecConfigContainer) String(key string) (string, error)

Jump to

Keyboard shortcuts

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