mirror of
https://github.com/tobiasehlert/teslamateapi.git
synced 2026-02-27 09:54:18 +08:00
chore: move var declaration
This commit is contained in:
@@ -7,6 +7,11 @@ import (
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
var (
|
||||
// defining envToken that contains API_TOKEN value
|
||||
envToken string
|
||||
)
|
||||
|
||||
// initAuthToken func
|
||||
func initAuthToken() {
|
||||
// get token from environment variable API_TOKEN
|
||||
|
||||
@@ -10,6 +10,11 @@ import (
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
var (
|
||||
// list of allowed commands
|
||||
allowList []string
|
||||
)
|
||||
|
||||
// initCommandAllowList func
|
||||
func initCommandAllowList() {
|
||||
|
||||
|
||||
@@ -29,12 +29,6 @@ var (
|
||||
// defining db var
|
||||
db *sql.DB
|
||||
|
||||
// defining envToken that contains API_TOKEN value
|
||||
envToken string
|
||||
|
||||
// list of allowed commands
|
||||
allowList []string
|
||||
|
||||
// app-settings
|
||||
appUsersTimezone *time.Location
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user