pulse

package
v0.0.0-...-39157a1 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pulse

type Pulse struct {
	ID               string                     `json:"id,omitempty"`
	Parent           string                     `json:"parent,omitempty"`
	MTS              int64                      `json:"mts,omitempty"`
	UserID           string                     `json:"userId,omitempty"`
	Title            string                     `json:"title,omitempty"`
	Content          string                     `json:"content,omitempty"`
	IsPin            int                        `json:"isPin"`
	IsPublic         int                        `json:"isPublic"`
	CommentsDisabled int                        `json:"commentsDisabled"`
	Tags             []string                   `json:"tags,omitempty"`
	Attachments      []string                   `json:"attachments,omitempty"`
	Likes            int                        `json:"likes,omitempty"`
	PulseProfile     *pulseprofile.PulseProfile `json:"pulseProfile,omitempty"`
	Comments         int
}

Pulse message data structure

func FromRaw

func FromRaw(raw []interface{}) (*Pulse, error)

FromRaw returns pointer to Pulse message

func SnapshotFromRaw

func SnapshotFromRaw(raws []interface{}) ([]*Pulse, error)

SnapshotFromRaw returns slice of Pulse message pointers

Jump to

Keyboard shortcuts

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