cmd

package
v0.3.28 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2024 License: MIT Imports: 28 Imported by: 0

Documentation

Overview

Package cmd is all the available commands for the CLI application

Index

Constants

This section is empty.

Variables

View Source
var Version = "v0.3.28"

Version is set manually (also make:build overwrites this value from Github's latest tag)

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func RandomHex added in v0.0.10

func RandomHex(n int) (string, error)

RandomHex returns a random hex string and error

Types

type PaymailDetails added in v0.1.6

type PaymailDetails struct {
	Baemail       *baemail.Response              `json:"baemail"`
	Bitpic        string                         `json:"bitpic"`
	Bitpics       *bitpic.SearchResponse         `json:"bitpics"`
	Dimely        string                         `json:"dimely"`
	Handle        string                         `json:"handle"`
	PKI           *paymail.PKIResponse           `json:"pki"`
	PowPing       *powping.Response              `json:"powping"`
	Provider      *Provider                      `json:"provider"`
	PublicProfile *paymail.PublicProfileResponse `json:"public_profile"`
	Resolution    *paymail.ResolutionResponse    `json:"resolution"`
	Roundesk      *roundesk.Response             `json:"roundesk"`
}

PaymailDetails is all the info about one paymail address

func (*PaymailDetails) Display added in v0.1.6

func (p *PaymailDetails) Display()

Display all the paymail results for a given paymail search/resolution

func (*PaymailDetails) GetPublicInfo added in v0.1.6

func (p *PaymailDetails) GetPublicInfo(capabilities *paymail.CapabilitiesResponse) (err error)

GetPublicInfo will get all the public info for a given paymail

func (*PaymailDetails) Paymail added in v0.1.6

func (p *PaymailDetails) Paymail() string

Paymail returns the paymail address from the details struct

type Provider added in v0.1.6

type Provider struct {
	Domain string `json:"domain"`
	Link   string `json:"link"`
}

Provider is the paymail provider information

Jump to

Keyboard shortcuts

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