account

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	Email        string                 `json:"email"`
	Registration *registration.Resource `json:"registration"`
	// contains filtered or unexported fields
}

Account 用户账户

func CreateAccount

func CreateAccount(email string, rootDir string) (*Account, *errors.Error)

CreateAccount 创建用户账户

func GetAccount

func GetAccount(rootDir string) (*Account, *errors.Error)

GetAccount 获取用户账户

func (*Account) GetEmail

func (acc *Account) GetEmail() string

GetEmail 获取邮箱

func (*Account) GetPrivateKey

func (acc *Account) GetPrivateKey() crypto.PrivateKey

GetPrivateKey 获取用户私钥

func (*Account) GetRegistration

func (acc *Account) GetRegistration() *registration.Resource

GetRegistration 获取注册源

func (*Account) Save

func (acc *Account) Save() *errors.Error

Save 保存用户信息

Jump to

Keyboard shortcuts

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