Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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.
Click to show internal directories.
Click to hide internal directories.