configs

package
v0.0.0-...-f382dc8 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2022 License: GPL-3.0 Imports: 5 Imported by: 0

README

/configs

Configuration file templates or default configs.

Put your confd or consul-template template files here.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppSpec

type AppSpec struct {
	AppID    string `yaml:"appid"`
	Version  string `yaml:"version"`
	OS       string `yaml:"os"`
	Language string `yaml:"language"`
	AppType  string `yaml:"apptype"`

	// 本地启动标志
	Local bool `yaml:"local"`
}

AppSpec contains description of the application deployment.

func ReadAppSpec

func ReadAppSpec(specFile string) (*AppSpec, error)

ReadAppSpec read application deployment description file.

type Config

type Config struct {
	AppName  string
	GrpcPort int
	HTTPPort int
	AppSpec  *AppSpec
}

Config app config info

func NewConfig

func NewConfig() *Config

NewConfig ...

func (*Config) Overview

func (cfg *Config) Overview() []byte

Overview show config overview.

Jump to

Keyboard shortcuts

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