updates

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileWatcher added in v2.0.44

type FileWatcher struct {
	Stop func() bool
	// contains filtered or unexported fields
}

func (*FileWatcher) Context added in v2.0.44

func (w *FileWatcher) Context() context.Context

type Notifier

type Notifier struct {
	HasUpdates chan string
	// contains filtered or unexported fields
}

func NewNotifier

func NewNotifier(wsURL string, handshakeTimeout, writeTimeout time.Duration) *Notifier

func (*Notifier) Close

func (s *Notifier) Close()

func (*Notifier) Connected

func (s *Notifier) Connected() bool

func (*Notifier) SetToken

func (s *Notifier) SetToken(token string)

func (*Notifier) Start

func (s *Notifier) Start()

func (*Notifier) WatchFile added in v2.0.44

func (s *Notifier) WatchFile(ctx context.Context, id int64) *FileWatcher

Jump to

Keyboard shortcuts

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