app

package
v0.0.0-...-e0434a4 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2019 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Main

func Main()

func NewServerFromFlags

func NewServerFromFlags(fs *flag.FlagSet, arguments []string) (*util.HTTPServer, error)

Types

type Options

type Options struct {
	ASAPClientConfig pkiutil.ASAP

	ServerConfig options.ServerConfig `json:"serverConfig"`

	Providers Providers        `json:"providers"`
	Location  options.Location `json:"location"`
}

func (*Options) DefaultAndValidate

func (o *Options) DefaultAndValidate() []error

type Providers

type Providers struct {
	ServiceCentralURL *url.URL // we use custom json marshalling to read it
	RPSURL            *url.URL
	MicrosServerURL   *url.URL
}

func (*Providers) UnmarshalJSON

func (p *Providers) UnmarshalJSON(data []byte) error

UnmarshalJSON unmarshals our untyped config file into a typed struct including URLs

Jump to

Keyboard shortcuts

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