meta

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: May 23, 2022 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CicMeta

type CicMeta struct {
	// contains filtered or unexported fields
}

func NewCicMeta

func NewCicMeta(metaEndpoint string) *CicMeta

func (*CicMeta) GetCustomMetadata

func (c *CicMeta) GetCustomMetadata(address string) (CustomResponse, error)

func (*CicMeta) GetPersonMetadata

func (c *CicMeta) GetPersonMetadata(address string) (PersonResponse, error)

func (*CicMeta) GetPhonePointer

func (c *CicMeta) GetPhonePointer(phone string) (string, error)

func (*CicMeta) GetPreferencesMetadata

func (c *CicMeta) GetPreferencesMetadata(address string) (PreferencesResponse, error)

type CustomResponse

type CustomResponse struct {
	Tags []string `json:"tags"`
}

type DateOfBirth

type DateOfBirth struct {
	Year int `json:"year"`
}

type Location

type Location struct {
	AreaName string `json:"area_name"`
}

type PersonResponse

type PersonResponse struct {
	DateRegistered int         `json:"date_registered"`
	VCard          string      `json:"vcard"`
	Gender         string      `json:"gender"`
	Location       Location    `json:"location"`
	Products       []string    `json:"products"`
	DateOfBirth    DateOfBirth `json:"date_of_birth"`
}

type PreferencesResponse

type PreferencesResponse struct {
	PreferredLanguage string `json:"preferred_language"`
}

Jump to

Keyboard shortcuts

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