state

package
v0.0.0-...-fa4d88c Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2022 License: MIT Imports: 0 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action interface {
	ActionType() ActionType
}

type ActionClearAppState

type ActionClearAppState struct {
	Type ActionType `json:"type"`
}

func NewActionClearAppState

func NewActionClearAppState() *ActionClearAppState

func (*ActionClearAppState) ActionType

func (a *ActionClearAppState) ActionType() ActionType

type ActionRedirect

type ActionRedirect struct {
	RedirectURL string     `json:"redirect_url"`
	Type        ActionType `json:"type"`
}

func NewActionRedirect

func NewActionRedirect(redirectURL string) *ActionRedirect

func (*ActionRedirect) ActionType

func (a *ActionRedirect) ActionType() ActionType

type ActionType

type ActionType string
const (
	Redirect      ActionType = "Redirect"
	ClearAppState ActionType = "ClearAppState"
)

type Actions

type Actions []Action

Jump to

Keyboard shortcuts

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