internal

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Version   string
	GitCommit string
	GitBranch string
)

These variables are populated at build time to find where the variables are...use go tool nm ./app | grep app REFERENCE: https://www.digitalocean.com/community/tutorials/using-ldflags-to-set-version-information-for-go-applications

Functions

func Main

func Main(pwd string, args []string, envs map[string]string, chSignalInt chan os.Signal) error

Main will execute the general business logic for the example all environmental components are provided as arguments

Types

type Configuration

type Configuration struct {
	*oauth2.Config
	Issuer      string
	RedirectUri string
	Address     string
	Port        string
}

Configuration is a combination of the configuration needed to execute the example code; it contains configuratio nfor the web server and the Okta/OAuth configuration

func NewConfiguration

func NewConfiguration() *Configuration

NewConfiguration can be used to create a new instance of Configuration with the internal pointers created

func (*Configuration) Default

func (c *Configuration) Default()

Default will populate the internal pointers with default values

func (*Configuration) FromEnvs

func (c *Configuration) FromEnvs(envs map[string]string)

FromEnvs will populate a set number of values within configuration from environmental variables

Jump to

Keyboard shortcuts

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