config

package
v0.0.0-...-18998a6 Latest Latest
Warning

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

Go to latest
Published: May 11, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Logger

func Logger()

Logger - コンソールへのログ出力設定

func Router

func Router(reg *registry.Registry) *gin.Engine

Router - ルーティングの定義

func SetCors

func SetCors() gin.HandlerFunc

SetCors - CORSの設定

Types

type Environment

type Environment struct {
	Port                         string `envconfig:"PORT" default:"8080"`
	GoogleApplicationCredentials string `envconfig:"GOOGLE_APPLICATION_CREDENTIALS" required:"true"`
	GCPStorageBucketName         string `envconfig:"GCP_STORAGE_BUCKET_NAME" required:"true"`
}

Environment - 環境変数の構造体

func LoadEnvironment

func LoadEnvironment() (Environment, error)

LoadEnvironment - 環境変数を読み込み

Jump to

Keyboard shortcuts

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