stream

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PublishObject

func PublishObject(obj *api.ObjectDetail)

Types

type Hub

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

func NewHub

func NewHub() *Hub

func (*Hub) AddObjectStreamClient

func (h *Hub) AddObjectStreamClient(clientID string) string

func (*Hub) GetClientObjectStream

func (h *Hub) GetClientObjectStream(id string) chan *api.ObjectDetail

func (*Hub) PublishObject

func (h *Hub) PublishObject(obj *api.ObjectDetail)

func (*Hub) RemoveObjectStreamClient

func (h *Hub) RemoveObjectStreamClient(id string)

func (*Hub) StartObjectStream

func (h *Hub) StartObjectStream(ctx context.Context) error

Jump to

Keyboard shortcuts

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