alerts

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2023 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compile

func Compile(dir string) (map[string][]byte, error)

Compile transform all ts files to js.

func Set added in v0.0.8

func Set(ctx context.Context, a *Alerts) context.Context

Types

type Alerts

type Alerts struct {
	Path    string
	Scripts map[string]*Script
}

func Get

func Get(ctx context.Context) *Alerts

func Setup

func Setup(o *config.Options) (*Alerts, error)

func (*Alerts) Close added in v0.0.8

func (a *Alerts) Close() error

type Script

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

func (*Script) Close added in v0.0.8

func (s *Script) Close() error

func (*Script) Register

func (s *Script) Register(domain string, o goja.Value)

Jump to

Keyboard shortcuts

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