configBase

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

无锁模式的配置信息读写

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigBase

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

func CreateConfig

func CreateConfig() *ConfigBase

创建一个配置对象

func (*ConfigBase) Commit

func (c *ConfigBase) Commit()

提交更新

func (*ConfigBase) Update

func (c *ConfigBase) Update(name string, value interface{})

更新配置项

func (*ConfigBase) Value

func (c *ConfigBase) Value(name string) (interface{}, bool)

读配置项

Jump to

Keyboard shortcuts

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