client

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientConfig

type ClientConfig struct {
	URL           string   `yaml:"url,omitempty"` //URL to our service endpoint set by the user
	RealURL       *url.URL //RealURL to our service endpoint parsed from URL
	Debug         bool     `yaml:"debug_enabled,omitempty"`  //true if Debug is enabled
	Oauth2Enabled bool     `yaml:"oauth2_enabled,omitempty"` //true if oauth2 is enabled
	OauthURL      string   `yaml:"oauth2_url,omitempty"`     //the oauth2 endpoint to be used
	TokenURL      string   `yaml:"token_url,omitempty"`      //the oauth2 token info endpoint
	Username      string   `yaml:"username,omitempty"`       //user to authenticate with, to get a token
}

ClientConfig is the configuration from the client. Usually loaded from config files.

func New

func New() *ClientConfig

New gets the ClientConfiguration

Jump to

Keyboard shortcuts

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