action

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package action provides a simple helper for consolidating custom watcher actions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SyncStatus

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

SyncStatus action status for concurrent use.

func (*SyncStatus) Load

func (s *SyncStatus) Load() Type

Load returns the current requirement status.

func (*SyncStatus) Require

func (s *SyncStatus) Require(t Type)

Require sets the requirement status to t, if current requirement is a subset.

type Type

type Type int8

Type is an action type.

const (
	// ActionNone requires no rebuild, no restart, no reload.
	ActionNone Type = iota

	// ActionReload requires browser tab reload.
	ActionReload

	// ActionRestart requires restarting the server.
	ActionRestart

	// ActionRebuild requires rebuilding and restarting the server.
	ActionRebuild
)

Jump to

Keyboard shortcuts

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