notifications

package
v0.0.0-...-7b61fee Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2020 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Overview

******************************************************************************

  • Copyright 2018 Dell Technologies Inc. *
  • Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
  • in compliance with the License. You may obtain a copy of the License at *
  • http://www.apache.org/licenses/LICENSE-2.0 *
  • Unless required by applicable law or agreed to in writing, software distributed under the License
  • is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
  • or implied. See the License for the specific language governing permissions and limitations under
  • the License. * ******************************************************************************

Index

Constants

This section is empty.

Variables

View Source
var (
	/* ----------------------- CONSTANTS ----------------------------*/
	ESCALATIONSUBSCRIPTIONSLUG = "ESCALATION"
	ESCALATIONPREFIX           = "escalated-"
	ESCALATEDCONTENTNOTICE     = "This notification is escalated by the transmission"

	/* ---------------- URL PARAM NAMES -----------------------*/
	START = "start"
	END   = "end"
	LIMIT = "limit"
)
View Source
var LoggingClient logger.LoggingClient

Functions

func Destruct

func Destruct()

func Init

func Init() bool

func LoadRestRoutes

func LoadRestRoutes() *mux.Router

func Retry

func Retry(useProfile string, timeout int, wait *sync.WaitGroup, ch chan error)

Types

type ConfigurationStruct

type ConfigurationStruct struct {
	Writable  WritableInfo
	Clients   map[string]config.ClientInfo
	Databases map[string]config.DatabaseInfo
	Logging   config.LoggingInfo
	Service   config.ServiceInfo
	Smtp      SmtpInfo
}
var Configuration *ConfigurationStruct

Global variables

type SmtpInfo

type SmtpInfo struct {
	Host     string
	Password string
	Port     int
	Sender   string
	Subject  string
}

type WritableInfo

type WritableInfo struct {
	ResendLimit int
	LogLevel    string
}

Directories

Path Synopsis
****************************************************************************** * Copyright 2018 Dell Technologies Inc.
****************************************************************************** * Copyright 2018 Dell Technologies Inc.

Jump to

Keyboard shortcuts

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