minds

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2023 License: MIT Imports: 13 Imported by: 0

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

func Init

func Init()

Types

type Minds

type Minds struct {
	*validator.Base
}

func (*Minds) GeneratePostPayload

func (minds *Minds) GeneratePostPayload() (post map[string]string)

func (*Minds) GenerateSignPayload

func (minds *Minds) GenerateSignPayload() (payload string)

func (*Minds) Validate

func (minds *Minds) Validate() (err error)

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"`
}

Jump to

Keyboard shortcuts

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