gui

package
v0.0.0-...-d84bc8d Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2016 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Wshandler

func Wshandler(w http.ResponseWriter, r *http.Request, hub *Hub)

Types

type FileItem

type FileItem struct {
	Src      string   `json:"src"`
	Thumb    string   `json:"thumb"`
	Height   int      `json:"h"`
	Width    int      `json:"w"`
	Category string   `json:"category"`
	Tags     []string `json:"tags"`
}

type Hub

type Hub struct {
	Categories *types.Categories `inject:""`

	// Inbound messages from the connections.
	Broadcast chan []byte
	// contains filtered or unexported fields
}

func NewHub

func NewHub() *Hub

func (*Hub) Start

func (h *Hub) Start() error

type Package

type Package struct {
	Type string      `json:"type"`
	Data interface{} `json:"data"`
}

type Progress

type Progress struct {
	Title    string
	Progress float64

	sync.Mutex
	// contains filtered or unexported fields
}

func NewProgress

func NewProgress(title string) *Progress

func (*Progress) Done

func (self *Progress) Done()

func (*Progress) Update

func (self *Progress) Update(progress float64)

type Webserver

type Webserver struct {
	Hub  *Hub `inject:""`
	Port string
}

func NewWebserver

func NewWebserver(port string) *Webserver

func (*Webserver) Start

func (self *Webserver) Start() error

Jump to

Keyboard shortcuts

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