example

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Code generated by minotaur-config-export. DO NOT EDIT.

Code generated by minotaur-config-export. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

View Source
var (
	// IndexConfig 有索引
	IndexConfigSign = "IndexConfig"
	IndexConfig     map[int]map[string]*IndexConfigDefine

	// EasyConfig 无索引
	EasyConfigSign = "EasyConfig"
	EasyConfig     *EasyConfigDefine
)

Functions

func DefaultLoad

func DefaultLoad(filepath string)

DefaultLoad 默认提供的配置加载函数

func GetFull added in v0.0.5

func GetFull() map[string]any

GetFull 获取所有配置的 map 集合

  • 通常用于前端配置通过后端接口获取的情况

func LoadConfig

func LoadConfig(handle func(filename string, config any) error)

func Refresh

func Refresh()

Refresh 将加载后的配置刷新到线上

Types

type EasyConfigDefine added in v0.0.4

type EasyConfigDefine struct {
	Id    int                      // 任务ID
	Info  *EasyConfigInfo          // 信息
	Other map[int]*EasyConfigOther // 信息2
}

EasyConfigDefine 无索引

func (*EasyConfigDefine) String added in v0.0.4

func (slf *EasyConfigDefine) String() string

type EasyConfigInfo

type EasyConfigInfo struct {
	Id   int
	Name string
	Info *EasyConfigInfoInfo
}

type EasyConfigInfoInfo

type EasyConfigInfoInfo struct {
	Lv  int
	Exp *EasyConfigInfoInfoExp
}

type EasyConfigInfoInfoExp

type EasyConfigInfoInfoExp struct {
	Mux   int
	Count int
}

type EasyConfigOther

type EasyConfigOther struct {
	Id   int
	Name string
}

type IndexConfigDefine added in v0.0.4

type IndexConfigDefine struct {
	Id    int                       // 任务ID
	Count string                    // 次数
	Info  *IndexConfigInfo          // 信息
	Other map[int]*IndexConfigOther // 信息2
}

IndexConfigDefine 有索引

func (*IndexConfigDefine) String added in v0.0.4

func (slf *IndexConfigDefine) String() string

type IndexConfigInfo

type IndexConfigInfo struct {
	Id   int
	Name string
	Info *IndexConfigInfoInfo
}

type IndexConfigInfoInfo

type IndexConfigInfoInfo struct {
	Lv  int
	Exp *IndexConfigInfoInfoExp
}

type IndexConfigInfoInfoExp

type IndexConfigInfoInfoExp struct {
	Mux   int
	Count int
}

type IndexConfigOther

type IndexConfigOther struct {
	Id   int
	Name string
}

Jump to

Keyboard shortcuts

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