config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2018 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetGoogleApiClient

func GetGoogleApiClient(appConfig AppConfig) (*http.Client, error)

func GetRingCentralApiClient

func GetRingCentralApiClient(appConfig AppConfig) (*rc.APIClient, error)

func GetSheetsMap

func GetSheetsMap(googClient *http.Client, appConfig AppConfig) (sheetsmap.SheetsMap, error)

Types

type AppConfig

type AppConfig struct {
	RingCentralTokenJSON  string `env:"RINGCENTRAL_TOKEN_JSON"`
	RingCentralServerURL  string `env:"RINGCENTRAL_SERVER_URL"`
	RingCentralWebhookURL string `env:"RINGCENTRAL_WEBHOOK_URL"`
	RingCentralBotId      string `env:"RINGCENTRAL_BOT_ID"`
	GoogleSvcAccountJWT   string `env:"GOOGLE_SERVICE_ACCOUNT_JWT"`
	GoogleSpreadsheetId   string `env:"GOOGLE_SPREADSHEET_ID"`
	GoogleSheetIndex      int64  `env:"GOOGLE_SHEET_INDEX"`
}

Jump to

Keyboard shortcuts

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