config

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Type    apps.DeployType
	RootURL string `mapstructure:"root_url"`
	Secret  string
}

App config for Mattermost app

type Options

type Options struct {
	Debug         bool
	App           App
	ListenAddress string `mapstructure:"address"`
	IsLocal       bool   `mapstructure:"local"`
	Environment   string
}

Options config to set to run the app.

func Load

func Load(logger utils.Logger) (Options, error)

Load will load the necessary config

func (*Options) Validate

func (o *Options) Validate() error

Jump to

Keyboard shortcuts

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