config

package
v0.0.0-...-30169d8 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TunnelOptions = gonnel.Options{
		BinaryPath: os.Getenv("NGROK_PATH"),
	}

	Tunnel = gonnel.Tunnel{
		Proto:        gonnel.HTTP,
		Name:         "schoolbot",
		LocalAddress: ":" + os.Getenv("PORT"),
	}

	BotWebhook = &tb.Webhook{
		Listen: ":" + os.Getenv("PORT"),
		Endpoint: &tb.WebhookEndpoint{
			PublicURL: os.Getenv("PUBLIC_URL"),
		},
	}

	BotSettings = tb.Settings{
		Token:  os.Getenv("BOT_TOKEN"),
		Poller: &tb.LongPoller{Timeout: 15 * time.Second},
	}

	DBLogLevel neo4j.LogLevel = neo4j.INFO

	DB = func() func(config *neo4j.Config) {
		return func(config *neo4j.Config) {
			config.Encrypted = false
			config.Log = neo4j.ConsoleLogger(DBLogLevel)
		}
	}

	Session = neo4j.SessionConfig{
		AccessMode: neo4j.AccessModeWrite,
	}

	URI  = "bolt://" + os.Getenv("DB_HOST") + ":" + os.Getenv("DB_PORT")
	Auth = neo4j.BasicAuth(
		os.Getenv("DB_USERNAME"),
		os.Getenv("DB_PASSWORD"),
		"",
	)
)

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