TestConfig

package
v0.5.12 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2022 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)

환경변수 : GOOGLE_APPLICATION_CREDENTIALS - 인증용 .json 파일의 위치 handlerType : resources폴더의 xxxHandler.go에서 Handler이전까지의 문자열 (예) ImageHandler.go -> "Image"

Types

type Config

type Config struct {
	Type         string `json:"type"`
	ProjectID    string `json:"project_id"`
	PrivateKeyID string `json:"private_key_id"`
	PrivateKey   string `json:"private_key"`
	ClientEmail  string `json:"client_email"`
	ClientID     string `json:"client_id"`
	AuthURI      string `json:"auth_uri"`
	TokenURI     string `json:"token_uri"`
	AuthProvider string `json:"auth_provider_x509_cert_url"`
}

GCP에서 다운로드한 JSON파일 포멧

Jump to

Keyboard shortcuts

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