config

package
v0.0.0-...-7240e86 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Setup

func Setup(path string) error

Setup setup config

Types

type Config

type Config struct {
	Flow struct {
		Queue struct {
			Store string `yaml:"store"`
			Topic string `yaml:"topic"`
		} `yaml:"queue"`
		Scheduler struct {
			Type     string `yaml:"type"`
			Interval int    `yaml:"interval"`
		} `yaml:"scheduler"`
		Selector string `yaml:"selector"`
		Protocol string `yaml:"protocol"`
	} `yaml:"flow"`
	Catalog struct {
		ServerName string `yaml:"server_name"`
	} `yaml:"catalog"`
	EventMesh struct {
		Host string `yaml:"host"`
		Env  string `yaml:"env"`
		IDC  string `yaml:"idc"`
		GRPC struct {
			Port int `yaml:"port"`
		} `yaml:"grpc"`
		Sys           string `yaml:"sys"`
		UserName      string `yaml:"username"`
		Password      string `yaml:"password"`
		ProducerGroup string `yaml:"producer_group"`
		ConsumerGroup string `yaml:"consumer_group"`
		TTL           int    `yaml:"ttl"`
	} `yaml:"eventmesh"`
	Metrics struct {
		EndpointPort string `yaml:"endpoint_port"`
	} `yaml:"metrics"`
}

func Get

func Get() *Config

Get get config

Jump to

Keyboard shortcuts

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