Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Initialize ¶
Types ¶
type ServiceSetting ¶
type ServiceSetting struct {
// contains filtered or unexported fields
}
var Global *ServiceSetting
func (*ServiceSetting) GetAllSetting ¶
func (s *ServiceSetting) GetAllSetting() (map[string]record, error)
func (*ServiceSetting) LoadRedisData ¶
func (s *ServiceSetting) LoadRedisData(ctx context.Context) error
LoadRedisData 加载 redis 配置, 通过redis标签读取key,从 HGetAll 的 map 找到数据值, 通过反射将对应的成员中的属性 Value 复制为 redis的值
func (*ServiceSetting) ParseTag ¶
func (s *ServiceSetting) ParseTag() error
ParseTag 通过反射读取tag中包含的信息
func (*ServiceSetting) UpdateRecord ¶
func (s *ServiceSetting) UpdateRecord(ctx context.Context, data fieldInterface) error
Click to show internal directories.
Click to hide internal directories.