config

package
v0.0.0-...-539f2fd Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RewriteRGOConfig

func RewriteRGOConfig(key string, value interface{}) error

Types

type GoWork

type GoWork struct {
	Go  string     `json:"Go"`
	Use []UseEntry `json:"Use"`
}

type IDL

type IDL struct {
	ServiceName       string `yaml:"service_name" mapstructure:"service_name"`
	FormatServiceName string
	IDLPath           string `yaml:"idl_path" mapstructure:"idl_path"`
	RepoName          string `yaml:"repo_name" mapstructure:"repo_name"`
}

type IDLRepo

type IDLRepo struct {
	RepoName string `yaml:"repo_name" mapstructure:"repo_name"`
	GitUrl   string `yaml:"git_url" mapstructure:"git_url"`
	Branch   string `yaml:"branch" mapstructure:"branch"`
	Commit   string `yaml:"commit" mapstructure:"commit"`
}

type RGOClientTemplateData

type RGOClientTemplateData struct {
	RGOModuleName     string   // Name of the RGO module (e.g., rgo)
	ServiceName       string   // Name of the service (e.g., service.one)
	FormatServiceName string   // Formatted service name (e.g., service_one)
	Imports           []string // List of imports required for the client (e.g., context, github.com/cloudwego/kitex/client)
	*parser.Thrift
}

type RGOConfig

type RGOConfig struct {
	ProjectModule string    `yaml:"project_module" mapstructure:"project_module"`
	IDLRepos      []IDLRepo `yaml:"idl_repos" mapstructure:"idl_repos"`
	IDLs          []IDL     `yaml:"idls" mapstructure:"idls"`
}
var NullConfig *RGOConfig

func ReadConfig

func ReadConfig(path string) (*RGOConfig, error)

type UseEntry

type UseEntry struct {
	DiskPath string `json:"DiskPath"`
}

Jump to

Keyboard shortcuts

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