config

package
v1.15.7 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

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.Println(err)
	return
}
data, _ := json.MarshalIndent(sc, "", "\t")
log.Println(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]eosc.IWorker, 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