user

package
v0.0.1-beta Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateUser

func CreateUser(user User)

func EditCurrentUserInfo

func EditCurrentUserInfo(user User)

func GetCurrentUserNameAndURL

func GetCurrentUserNameAndURL() []string

func RevokeAccessToken

func RevokeAccessToken()

func ViewCurrentUserInfo

func ViewCurrentUserInfo()

Types

type User

type User struct {
	// compulsory
	ShortName  string `json:"short_name"`
	AuthorName string `json:"author_name"`
	AuthorUrl  string `json:"author_url"`
	// optional
	AccessToken string `json:"access_token"`
	AuthUrl     string `json:"auth_url"`
	PageCount   int32  `json:"page_count"`
}

Jump to

Keyboard shortcuts

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