slackbotbackground

package module
v0.0.0-...-10dc7e0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2020 License: MPL-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WHITELIST_IP_SLASH_COMMAND            = "/whitelist_ip"
	STAGING_WHITELIST_IP_SLASH_COMMAND    = "/staging_whitelist_ip"
	WHITELIST_EMAIL_SLASH_COMMAND         = "/whitelist_email"
	STAGING_WHITELIST_EMAIL_SLASH_COMMAND = "/staging_whitelist_email"

	SECOPS_911_COMMAND         = "/secops911"
	STAGING_SECOPS_911_COMMAND = "/staging_secops911"

	DEFAULT_EXPIRATION_DURATION = time.Hour * 24
	DURATION_DOC                = "FoxsecBot uses Go's time.ParseDuration internally " +
		"with some custom checks. Examples: '72h' or '2h45m'. " +
		"Valid time units are 'm' and 'h'. If you omit a duration, " +
		"the default (24 hours) is used. If your duration is under " +
		"5 minutes, it is increased to 5 minutes. If you do not want the " +
		"whitelisted IP to expire, put 'never' as the expiration. This " +
		"will make the expiration duration roughly ten years from now."

	FOURTEEN_DAYS_AGO = time.Hour * 24 * 14
)

Variables

View Source
var ROUGHLY_TEN_YEARS_FROM_NOW = time.Hour * 24 * 30 * 12 * 10

Functions

func InitConfig

func InitConfig()

func SlackbotBackground

func SlackbotBackground(ctx context.Context, psmsg pubsub.Message) error

Types

type Globals

type Globals struct {
	// contains filtered or unexported fields
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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