Documentation
¶
Index ¶
Constants ¶
View Source
const ( URL = "https://www.minds.com/api/v2/entities/?urns=urn%%3Aactivity%%3A%s&as_activities=0&export_user_counts=false" MATCH_TEMPLATE = "^Sig: (.*)$" )
Variables ¶
View Source
var (
POST_STRUCT = map[string]string{
"default": "🎭 Verifying my Minds ID @%s for NextID.\n\nSig: %%SIG_BASE64%%\nCreatedAt: %d\nUUID: %s%s\n\nPowered by Next.ID - Connect All Digital Identities.\n",
}
)
Functions ¶
Types ¶
type MindsEntity ¶
type MindsEntity struct {
// Guid is post ID.
Guid string `json:"guid"`
// TimeCreated is second-based timestamp.
TimeCreated string `json:"time_created"`
// TimeUpdated is second-based timestamp.
TimeUpdated string `json:"time_updated"`
// Message is post content.
Message string `json:"message"`
Owner MindsOwner `json:"ownerObj"`
}
type MindsOwner ¶
type MindsOwner struct {
// Guid is User ID
Guid string `json:"guid"`
// TimeCreated is second-based timestamp.
TimeCreated string `json:"time_created"`
// TimeUpdated is second-based timestamp.
// TimeUpdated string `json:"time_updated"`
UserName string `json:"username"`
Name string `json:"name"`
BriefDescription string `json:"briefdescription"`
}
type MindsPayload ¶
type MindsPayload struct {
Status string `json:"status"`
Entities []MindsEntity `json:"entities"`
}
Click to show internal directories.
Click to hide internal directories.