config

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2022 License: Apache-2.0 Imports: 5 Imported by: 14

Documentation

Overview

Example
type MyConfig struct {
	Id     string    `json:"id" require:"" readonly:"true"`
	Target RequireId `json:"target" skill:"service.service.IService"`
}
sc, err := schema.Generate(reflect.TypeOf(MyConfig{}), nil)
if err != nil {
	log.Debug(err)
	return
}
data, _ := json.MarshalIndent(sc, "", "\t")
log.Debug(string(data))
Output:

""

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckConfig

func CheckConfig(v interface{}, workers eosc.IWorkers) (map[RequireId]interface{}, error)

func TypeName

func TypeName(t reflect.Type) string

func TypeNameOf

func TypeNameOf(v interface{}) string

Types

type RequireId

type RequireId = eosc.RequireId

Jump to

Keyboard shortcuts

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