pulse

package
v0.0.0-...-16cb724 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2020 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"`
	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"`
	Tags         []string                   `json:"tags,omitempty"`
	Attachments  []string                   `json:"attachments,omitempty"`
	Likes        int                        `json:"likes,omitempty"`
	PulseProfile *pulseprofile.PulseProfile `json:"pulseProfile,omitempty"`
}

Pulse message data structure

func NewFromRaw

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

NewFromRaw returns slice of Pulse message pointers

func NewSingleFromRaw

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

NewSingleFromRaw returns pointer to Pulse message

Jump to

Keyboard shortcuts

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