config

package
v0.0.0-...-98ec3a1 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultPath = "./configs/config.yml"

DefaultPath default file path

Functions

This section is empty.

Types

type Config

type Config struct {
	Port        string         `yaml:"port"`
	Model       string         `yaml:"model"`
	InternalNet client.Config  `yaml:"internalNet"`
	Log         logger.Config  `yaml:"log"`
	Mysql       mysql.Config   `yaml:"mysql"`
	Docker      Docker         `yaml:"docker"`
	Redis       redis.Config   `yaml:"redis"`
	Elastic     elastic.Config `yaml:"elastic"`
	Graph       struct {
		Runs  []string   `yaml:"runs,omitempty" json:"runs"`
		Steps [][]string `yaml:"steps,omitempty" json:"steps"`
	} `yaml:"graph,omitempty"`

	BuildImages map[string]string `yaml:"build-images"`
	Templates   []*Template       `yaml:"templates"`
}

Config config info

func NewConfig

func NewConfig(path string) (*Config, error)

NewConfig new

type Docker

type Docker struct {
	NameSpace string `yaml:"namespace"`
}

Docker docker

type Template

type Template struct {
	FullName string `yaml:"full_name"`
	Branch   string `yaml:"branch"`
	Commit   string `yaml:"commit"`
	Content  string `yaml:"content"`
}

Jump to

Keyboard shortcuts

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