config

package
v0.3.18 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadConfig added in v0.3.13

func LoadConfig() error

LoadConfig by default, config will load only once when the program is invoked, also the same for each plugin but for sdk mode, config should be reloaded each time when the sdk is called. so we provide this api and manually call this in sdk mode.

Types

type Config

type Config struct {
	Ref   map[string]*RefConfig `yaml:"ref"`
	Debug bool                  `yaml:"debug"`
}

type RawConfig

type RawConfig struct {
	Ref   map[string]interface{} `yaml:"ref"`
	Debug bool                   `yaml:"debug"`
}

type RefConfig

type RefConfig struct {
	Path       string   `yaml:"path"`
	Structs    []string `yaml:"structs,omitempty"`
	Enums      []string `yaml:"enums,omitempty"`
	Typedefs   []string `yaml:"typedefs,omitempty"`
	Consts     []string `yaml:"consts,omitempty"`
	Unions     []string `yaml:"unions,omitempty"`
	Exceptions []string `yaml:"exceptions,omitempty"`
}

func GetRef

func GetRef(name string) *RefConfig

func (*RefConfig) IsAllFieldsEmpty

func (r *RefConfig) IsAllFieldsEmpty() bool

func (*RefConfig) String

func (r *RefConfig) String() string

Jump to

Keyboard shortcuts

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