client

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Code

func Code(key string) string

func CodeByProject

func CodeByProject(projectName string, key string) string

func SetCache

func SetCache(listBean ConfigListBean)

设置缓存列表 缓存:projectName,ConfigListBean

func Value

func Value(key string) string

func ValueByCode

func ValueByCode(code string, parentKey string) string

func ValueByCodeProject

func ValueByCodeProject(projectName string, code string, parentKey string) string

func ValueByProject

func ValueByProject(projectName string, key string) string

Types

type ConfigBean

type ConfigBean struct {
	// columns START
	Name      string `json:"name" gconv:"name,omitempty"`            // 名称
	Key       string `json:"key" gconv:"key,omitempty"`              // 键
	Value     string `json:"value" gconv:"value,omitempty"`          // 值
	Code      string `json:"code" gconv:"code,omitempty"`            // 编码
	ParentKey string `json:"parentKey" gconv:"parent_key,omitempty"` //
	Sort      int    `json:"sort" gconv:"sort,omitempty"`            // 排序号
	ProjectId int    `json:"projectId" gconv:"project_id,omitempty"` // 项目ID
}

func List

func List(parentKey string) []ConfigBean

func ListByProject

func ListByProject(projectName string, parentKey string) []ConfigBean

type ConfigListBean

type ConfigListBean struct {
	// columns START
	Name     string       `json:"name" gconv:"name,omitempty"`
	Version  string       `json:"version" gconv:"version,omitempty"`
	ListData []ConfigBean `json:"value" gconv:"value,omitempty"`
}

func GetCache

func GetCache(projectName ...string) ConfigListBean

获取缓存列表 缓存:projectName,ConfigListBean

Jump to

Keyboard shortcuts

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