dev

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustStartDev added in v0.0.18

func MustStartDev(config *common.Config)

Types

type ChangeType

type ChangeType string
const (
	ChangeTypeNormalCSS   ChangeType = common.CSSNormalDirName
	ChangeTypeCriticalCSS ChangeType = common.CSSCriticalDirName
	ChangeTypeOther       ChangeType = "other"
	ChangeTypeRebuilding  ChangeType = "rebuilding"
)

type Client

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

Client represents a single SSE connection

type ClientManager

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

ClientManager manages all SSE clients

func NewClientManager

func NewClientManager() *ClientManager

type EvtDetails

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

type RefreshFilePayload

type RefreshFilePayload struct {
	ChangeType   ChangeType `json:"changeType"`
	CriticalCSS  string     `json:"criticalCss"`
	NormalCSSURL string     `json:"normalCssUrl"`
	At           time.Time  `json:"at"`
}

Jump to

Keyboard shortcuts

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