foxsecslackbot

package module
v0.0.0-...-854a65b Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2019 License: MPL-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EMAIL_CHAR_SET                     = "UTF-8"
	WHITELIST_IP_SLASH_COMMAND         = "/whitelist_ip"
	STAGING_WHITELIST_IP_SLASH_COMMAND = "/staging_whitelist_ip"
	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."
)

Variables

View Source
var (
	KEYNAME                 string
	PROJECT_ID              string
	FOXSEC_SLACK_CHANNEL_ID string
	DB                      *common.DBClient
)

Functions

func FoxsecSlackBot

func FoxsecSlackBot(w http.ResponseWriter, r *http.Request)

func InitConfig

func InitConfig()

func InteractionCallbackParse

func InteractionCallbackParse(reqBody []byte) (*slack.InteractionCallback, error)

Types

type Config

type Config 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