constants

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2020 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Overview

Package constants provides list of standard messages.

Index

Constants

View Source
const (
	DbUser     = "root"
	DbPassword = "local"
	DbHost     = "localhost"
	DbPort     = "27017"
	Database   = "test"
)

Database credentials

View Source
const (
	MailUsername = "tgolang786@gmail.com"
	MailPassword = "thekalaamantra"
	MailServer   = "smtp.gmail.com"
	MailPort     = 587
)

Email Server Credentials

View Source
const (
	NilTpl               = "Template pointer is not initialised."
	NilMongoClient       = "DB Client is not initialised."
	DatabaseNotConnected = "Unable to connect database."
	CollectionNotFound   = "Collection not found."
	NilMongoHelper       = "Mongo helper is not initialised."
	InvalidString        = "Enter a string value."
	InvalidInteger       = "Enter an integer value."
	InvalidName          = "Name must be at least 5 characters."
	InvalidPassword      = "Password must be at least 8 characters."
	InvalidEmail         = "Invalid email address."
)

Error messages

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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