db

package
v0.0.0-...-7134969 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SaveAuthData

func SaveAuthData(data AuthData)

SaveAuthData - save authentication data to auth.json file data : input value

Types

type AuthData

type AuthData struct {
	Login    string `json:"login"`
	Password string `json:"password"`
	Server   string `json:"server"`
}

AuthData - structure which describe authentication data which user entered Login : login of user Password : password of user Server : IMAP server which was chosen by user

func GetAuthData

func GetAuthData() AuthData

GetAuthData open file 'auth.json' if exist and return data from it if not exit create it and put void auth data

Jump to

Keyboard shortcuts

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