config

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2019 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFlags

func AddFlags(flags *pflag.FlagSet)

AddFlags adds flags for Builder.

Types

type Flags

type Flags struct {
	Port           string
	BaseUIPath     string
	LogLevel       string
	ScopesFilePath string
	HydraAdminURL  string
	HydraPublicURL string
	PublicURL      string
	DatabaseURL    string
	SecretKey      string
	MailUser       string
	MailPassword   string
	MailHost       string
	MailPort       string
	ShutdownTime   time.Duration
}

Flags define the fields that will be passed via cmd

type WebBuilder

type WebBuilder struct {
	*Flags
	Self        *client.WhisperClient
	HydraHelper hydra.Api
	GrantScopes misc.GrantScopes
	Outbox      chan<- mail.Mail
	DB          *gorm.DB
}

WebBuilder defines the parametric information of a whisper server instance

func (*WebBuilder) Init added in v0.4.0

func (b *WebBuilder) Init(v *viper.Viper, outbox chan<- mail.Mail) *WebBuilder

Init initializes the web server builder with properties retrieved from Viper.

Jump to

Keyboard shortcuts

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