TencentTestConfig

package
v0.0.0-...-8fc61e2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetResourceHandler

func GetResourceHandler(handlerType string) (interface{}, error)

handlerType : resources폴더의 xxxHandler.go에서 Handler이전까지의 문자열 (예) ImageHandler.go -> "Image"

Types

type Config

type Config struct {
	Tencent struct {
		SecretId  string `yaml:"tencent_secret_id"`
		SecretKey string `yaml:"tencent_secret_key"`
		Region    string `yaml:"region"`
		Zone      string `yaml:"zone"`
	} `yaml:"tencent"`
}

환경 설정 파일

func ReadConfigFile

func ReadConfigFile() Config

환경 설정 파일 읽기 환경변수 CBSPIDER_PATH 설정 후 해당 폴더 하위에 /config/configTencent.yaml 파일 생성해야 함.

Jump to

Keyboard shortcuts

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