config

package
v1.1.3-pre6 Latest Latest
Warning

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

Go to latest
Published: May 27, 2016 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config interface {
	AuditLogChannelID() string
	SlackAuthToken() string
	SlackTeamName() string
	SlackUserID() string
	SlackSlashCommand() string
	UninvitableDomain() string
	UninvitableMessage() string
}

Config is an interface that provides configuration values.

func NewEnvConfig

func NewEnvConfig(
	app *cfenv.App,
	configServiceNameVar string,
	slackAuditLogChannelIDVar string,
	slackAuthTokenVar string,
	slackSlashCommandVar string,
	slackTeamNameVar string,
	slackUserIDVar string,
	uninvitableDomainMessageVar string,
	uninvitableDomainVar string,

	logger lager.Logger,
) Config

NewEnvConfig returns a new Config which will use environment variables as its source.

func NewLocalConfig

func NewLocalConfig(
	slackAuthToken string,
	slackSlashCommand string,
	slackTeamName string,
	slackUserID string,

	auditLogChannelID string,
	uninvitableDomain string,
	uninvitableMessage string,
) Config

NewLocalConfig returns a new Config which will use the provided values as its source.

Jump to

Keyboard shortcuts

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