goframe210

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

* @Descripttion: * @version: * @Author: lfzxs@qq.com * @Date: 2023-06-21 14:14:49 * @LastEditors: lfzxs@qq.com * @LastEditTime: 2023-06-21 17:25:28

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CfgAdapter

type CfgAdapter struct {
	ConfigSvr config.YamlConfig
}

func BuildDefault

func BuildDefault(fileName string, searchFolds ...string) (cfgadapter CfgAdapter, err error)

func (*CfgAdapter) Available

func (sf *CfgAdapter) Available(ctx context.Context, resource string) (ok bool)

func (*CfgAdapter) Data

func (sf *CfgAdapter) Data(ctx context.Context) (data map[string]interface{}, err error)

func (*CfgAdapter) Get

func (sf *CfgAdapter) Get(ctx context.Context, pattern string) (value interface{}, err error)

Jump to

Keyboard shortcuts

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