minds

package
v1.0.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2022 License: MIT Imports: 13 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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