appcontext

package
v0.0.0-...-a23bd61 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2020 License: BSD-2-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppContext

type AppContext struct {
	// Configuration data that is not held in the configuration database.
	Config Config

	ConfigDB  *configdb.ConfigDB
	Userstore core.UserStore

	// The interface to the underlying datastore.
	DataStore core.Datastore

	ElasticSearch *elasticsearch.ElasticSearch

	ReportService core.ReportService

	GeoIpService *geoip.GeoIpService

	Features map[core.Feature]bool

	// A default time range to send to a client. Mainly useful for oneshot
	// server mode where we want to set a better time range.
	DefaultTimeRange string

	// Tell the client to ignore any locally stored configuration of the
	// default time range.
	ForceDefaultTimeRange bool
}

func (*AppContext) SetFeature

func (c *AppContext) SetFeature(feature core.Feature)

type Config

type Config struct {
	Http struct {
		TlsEnabled     bool
		TlsCertificate string
		TlsKey         string
		ReverseProxy   bool
		RequestLogging bool
	}

	LetsEncryptHostname string

	Authentication struct {
		Required bool

		// Username or Usernamepassword.
		Type string

		LoginMessage string
	}
}

Jump to

Keyboard shortcuts

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