action

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2021 License: Apache-2.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

View Source
const (
	KIPLocation      = "iplocation"
	KSendVerifyEmail = "sendverifyemail"
)

Variables

This section is empty.

Functions

func SendVerifyEmail

func SendVerifyEmail(payload *SendVerifyEmailPayload) error

Ask message services to send a verify email

Types

type IPLocationPayload

type IPLocationPayload struct {
	IpAddr string `json:"ipaddr"` // ip address to lookup
	Locale string `json:"locale"` // i18n locale
}

type IPLocationReply

type IPLocationReply struct {
	Continent string  `json:"continent"` // continent name
	Country   string  `json:"country"`   // country name
	City      string  `json:"city"`      // city name
	Longitude float64 `json:"longitude"` // longitude
	Latitude  float64 `json:"latitude"`  // latitude
	TimeZone  string  `json:"timezone"`  // time zone
}

func IPLocation

func IPLocation(payload *IPLocationPayload) (*IPLocationReply, error)

Ask message services to lookup ip location

type SendVerifyEmailPayload

type SendVerifyEmailPayload struct {
	Subject string `json:"subject"` // mail subject
	Userid  string `json:"userid"`  // recipient name
	To      string `json:"to"`      // recipient address
	Href    string `json:"href"`    // verify url
	Locale  string `json:"locale"`  // i18n locale
	Expire  string `json:"expire"`  // expire
}

Jump to

Keyboard shortcuts

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