service

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2020 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Worker

type Worker struct {
	Version string
	Assets  map[string]bool
}

Worker is a service worker.

func NewWorker

func NewWorker() *Worker

NewWorker returns a new service worker.

func (Worker) Render

func (worker Worker) Render() []byte

Render the service worker to JS.

Jump to

Keyboard shortcuts

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