baemail

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: 4 Imported by: 0

Documentation

Overview

Package baemail interfaces with Deggen's Baemail Read more at: https://baemail.me/

Index

Constants

This section is empty.

Variables

View Source
var (
	Network   = baemailURL       // override the default network
	UserAgent = defaultUserAgent // override the default user agent
)

Override the package defaults

Functions

func Compose

func Compose(alias, domain string) (url string)

Compose will return an url for composing a baemail Specs: https://baemail.me/compose?to=user%40domain

Types

type Response

type Response struct {
	ComposeURL string          `json:"compose_url"` // Compose email url
	Found      bool            `json:"found"`       // Flag if the profile was found
	StatusCode int             `json:"status_code"` // Status code returned on the request
	Tracing    resty.TraceInfo `json:"-"`           // Trace information if enabled on the request
}

Response is the standard fields returned on all responses

func HasProfile

func HasProfile(alias, domain string, tracing bool) (response *Response, err error)

HasProfile will check if a profile exists for the given paymail address Specs: (no docs)

Jump to

Keyboard shortcuts

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