config

package
v0.0.0-...-ed11b55 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ApiWaButton string = os.Getenv("URLAPIWABUTTON")
View Source
var Cors = cors.Config{
	AllowOrigins:     strings.Join(origins[:], ","),
	AllowMethods:     "GET,HEAD,OPTIONS,POST,PUT",
	AllowHeaders:     "Origin, X-Requested-With, Content-Type, Accept, Authorization, Access-Control-Request-Headers, token, Access-Control-Allow-Origin, Access-Control-Allow-Header, Authorization, Bearer",
	ExposeHeaders:    "Content-Length",
	AllowCredentials: true,
}
View Source
var Internalhost string = os.Getenv("INTERNALHOST") + ":" + os.Getenv("PORT")
View Source
var Iteung = fiber.Config{
	Prefork:       true,
	CaseSensitive: true,
	StrictRouting: true,
	ServerHeader:  "Iteung",
	AppName:       "Message Router",
}
View Source
var PrivateKey string = os.Getenv("PRIVATEKEY")
View Source
var PublicKey string = os.Getenv("PUBLICKEY")
View Source
var Stringmaria = "root:@tcp(127.0.0.1:3306)/transaksi_pembelian"

Functions

func CreateMariaGormConnection

func CreateMariaGormConnection(dbConfig string) *gorm.DB

Types

This section is empty.

Jump to

Keyboard shortcuts

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