cfg

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2020 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAPIConfig

func GetAPIConfig() models.APIConfig

GetAPIConfig returns only the API config for the application

func GetAPPConfig

func GetAPPConfig() models.APPConfig

GetAPPConfig returns only the APP config

func GetConfig

func GetConfig() models.Config

GetConfig returns the entire config for the application

func ResetAPPConfig added in v0.2.0

func ResetAPPConfig()

ResetAPPConfig reset the entire AppConfig and return to the initial state

func Setup

func Setup()

Setup prepare and create the config file for the application

func UpdateAppConfig

func UpdateAppConfig(a models.APPConfig)

UpdateAppConfig receives an AppConfig and save it in the config.yml file

func UpdateLoginDate added in v0.2.0

func UpdateLoginDate()

UpdateLoginDate update the current login date with time.Now() in UTC It also saves the last login with the value of current login before updating it

Types

This section is empty.

Jump to

Keyboard shortcuts

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