config

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

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

Go to latest
Published: Mar 13, 2024 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Port                        string `json:"port"`
	ClientId                    string `json:"clientId"`
	ClientSecret                string `json:"clientSecret"`
	RedirectUri                 string `json:"redirectUri"`
	IntuitAccountingAPIHost     string `json:"intuitAccountingAPIHost"`
	DiscoveryAPIHost            string `json:"discoveryAPIHost"`
	C2QBScope                   string `json:"c2qbScope"`
	SIWIScope                   string `json:"siwiScope"`
	GetAppNowScope              string `json:"getAppNowScope"`
	IntuitAuthorizationEndpoint string
}

structure for configs

var OAuthConfig Config = LoadConfiguration("config.json")

declare global variable and read from config

func LoadConfiguration

func LoadConfiguration(file string) Config

* Method to load properties from config.json

Jump to

Keyboard shortcuts

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