keybase

package
v2.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2022 License: MIT Imports: 4 Imported by: 1 module, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAvatarURL

func GetAvatarURL(identity string) (string, error)

GetAvatarURL returns the avatar URL from the given identity. If no identity is found, it returns an empty string instead.

Types

type AccountDetails

type AccountDetails struct {
	ID       string           `json:"id"`
	Pictures *AccountPictures `json:"pictures"`
}

AccountDetails contains the data of a single account details

type AccountPictures

type AccountPictures struct {
	Primary *Picture `json:"primary"`
}

AccountPictures contains the info of an account's pictures

type IdentityQueryResponse

type IdentityQueryResponse struct {
	Status  QueryStatus      `json:"status"`
	Objects []AccountDetails `json:"them"`
}

IdentityQueryResponse represents the response to an identity query

type Picture

type Picture struct {
	URL string `json:"url"`
}

Picture contains the info of a single picture

type QueryStatus

type QueryStatus struct {
	Code    int64  `json:"code"`
	Name    string `json:"name"`
	ErrDesc string `json:"desc"`
}

QueryStatus contains the details of the status of a request

Jump to

Keyboard shortcuts

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