config

package
v0.0.0-...-3458964 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CmdConfigParam

type CmdConfigParam struct {
	ConfigFilePath string // -e  配置文件路径
}

启动配置参数

type Config

type Config struct {
	Oss *Oss `yaml:"oss"`
}

yaml配置文件映射对象

func InitConfig

func InitConfig(configFilePath string) *Config

type Oss

type Oss struct {
	Endpoint   string `yaml:"endpoint"`
	AccessKey  string `yaml:"accessKey"`
	SecretKey  string `yaml:"secretKey"`
	BucketName string `yaml:"bucketName"`
	UseSSL     bool   `yaml:"useSSL"`
}

Jump to

Keyboard shortcuts

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