conf

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AppPort                                   = "3000"
	AppHost                                   = "http://127.0.0.1"
	HealthCheckRoute                          = "/healthcheck"
	HerokuIntegrationSalesforceAuthPath       = "/invocations/authentication"
	HerokuIntegrationDataActionTargetAuthPath = "/data_action_targets/authenticate"
	YamlFileName                              = "heroku-integration-service-mesh.yaml"
)

Heroku Integration authentication API paths

Variables

View Source
var VERSION = "v0.12.6"

VERSION is the app-global version string, which should be substituted with a real value during build. Follows semantic versioning: MAJOR.MINOR.PATCH

Functions

This section is empty.

Types

type App

type App struct {
	Port string `yaml:"port"`
	Host string `yaml:"host"`
}

type Authentication

type Authentication struct {
	BypassRoutes []string `yaml:"bypassRoutes"`
}

type Config

type Config struct {
	HerokuInvocationToken                     string
	HerokuIntegrationUrl                      string
	HerokuInvocationSalesforceAuthPath        string
	HerokuIntegrationDataActionTargetAuthPath string
	PrivatePort                               string
	PublicPort                                string
	ShouldBypassAllRoutes                     bool
	Version                                   string
	YamlConfig                                *YamlConfig
}

func GetConfig

func GetConfig() *Config

func GetConfigWithYamlFile

func GetConfigWithYamlFile() *Config

func (*Config) Flags

func (c *Config) Flags() []cli.Flag

type HealthCheck

type HealthCheck struct {
	Enable string `yaml:"enable"`
	Route  string `yaml:"route"`
}

type Mesh

type Mesh struct {
	Authentication Authentication `yaml:"authentication"`
	HealthCheck    HealthCheck    `yaml:"healthcheck"`
}

type YamlConfig

type YamlConfig struct {
	App  App  `yaml:"app"`
	Mesh Mesh `yaml:"mesh"`
}

func InitYamlConfig

func InitYamlConfig(yamlFileName string) (*YamlConfig, error)

Jump to

Keyboard shortcuts

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