watcher

package
v0.0.1-alpha Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(src string)

Init the watcher

func WsFreshHandler

func WsFreshHandler(ws *websocket.Conn)

WsFreshHandler to fresh

Types

type Set

type Set struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

Set ...

func NewSet

func NewSet() *Set

NewSet ...

func (*Set) Add

func (s *Set) Add(item interface{})

Add ...

func (*Set) Clear

func (s *Set) Clear()

Clear ...

func (*Set) Has

func (s *Set) Has(item interface{}) bool

Has ...

func (*Set) IsEmpty

func (s *Set) IsEmpty() bool

IsEmpty ...

func (*Set) Len

func (s *Set) Len() int

Len ...

func (*Set) List

func (s *Set) List() []interface{}

List ...

func (*Set) Remove

func (s *Set) Remove(item interface{})

Remove ...

Jump to

Keyboard shortcuts

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