config

package
v0.0.0-...-116099b Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConfigFileName = "/share/domofon/account.json"

Functions

func TouchConfig

func TouchConfig() error

Types

type Config

type Config struct {
	Token        string `json:"token"`
	RefreshToken string `json:"refresh"`
	Login        int    `json:"login"`
	Operator     int    `json:"operator"`
	Port         int    `json:"port"`
}

Config ...

func InitConfig

func InitConfig() *Config

InitConfig ...

func (*Config) WriteConfig

func (config *Config) WriteConfig() error

WriteConfig ...

Jump to

Keyboard shortcuts

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