store

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrParse = errors.New("序列化账号错误")
View Source
var ErrReadFile = errors.New("读取账号文件错误")
View Source
var ErrWriteFile = errors.New("写入账号文件错误")
View Source
var RootPath string

Functions

func LoadAccount

func LoadAccount() (account model.Account, err error)

func SetAccount

func SetAccount(username, password, server string) (err error)

写入账号信息到文件 统一错误

func SetInfo

func SetInfo(token, ip string) (err error)

保存token

Types

This section is empty.

Jump to

Keyboard shortcuts

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