user

package
v0.0.0-...-0765a50 Latest Latest
Warning

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

Go to latest
Published: May 14, 2017 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Logout

func Logout()

Logout is called when user need to be disconnected

Types

type User

type User struct {
	KeyFingerprint     string            `json:"key_fingerprint"`
	DisplayName        string            `json:"display_name"`
	Signup             time.Time         `json:"signup"`
	LoginFirst         time.Time         `json:"login_first"`
	LoginLast          time.Time         `json:"login_last"`
	PublicKeyDerBase64 string            `json:"public_key_der_b64"`
	Contacts           []contact.Contact `json:"contacts"`
}

User represent the informations we get from the API

var Logged *User

Logged store the current logged user

func Login

func Login(u *User) (loggedUser *User, err error)

Login is called when the login api call succeed

Jump to

Keyboard shortcuts

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