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 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 }
Click to show internal directories.
Click to hide internal directories.