keybase

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2022 License: MIT Imports: 4 Imported by: 1

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