pusher

package
v0.0.0-...-40fc3ee Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KindReactionCreated = iota + 1
)

KindReactionCreated...

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

type Hub

type Hub struct {
	// contains filtered or unexported fields
}

Hub ...

func NewHub

func NewHub() *Hub

NewHub ...

func (*Hub) Broadcast

func (hub *Hub) Broadcast(message interface{}, ignore *Client)

Broadcast ...

func (*Hub) Run

func (hub *Hub) Run()

type ReactionCreatedMessage

type ReactionCreatedMessage struct {
	Kind        uint32    `json:"kind"`
	ID          string    `json:"id"`
	PersonID    string    `json:"person_id"`
	Details     string    `json:"details"`
	Description string    `json:"description"`
	Type        string    `json:"type"`
	Date        time.Time `json:"timestamp"`
}

ReactionCreatedMessage ...

Jump to

Keyboard shortcuts

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