common

package
v0.0.0-...-482b64a Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action string
const (
	ActionOpenBrowser    Action = "openBrowser"
	ActionRefreshRequest Action = "refreshRequest"
	ActionExecuteLua     Action = "executeLua"
)

type Config

type Config struct {
	Action                  Action            `json:"action"`
	ActionScript            string            `json:"actionScript,omitempty"`
	ApiUrl                  string            `json:"apiUrl"`
	BrowserUrl              string            `json:"browserUrl"`
	IntervalSeconds         int               `json:"intervalSeconds"`
	ResponseJSONSelector    string            `json:"responseJSONSelector"`
	ResponseMapper          map[string]string `json:"responseMapper"`
	Headers                 map[string]string `json:"headers"`
	TemplateParameters      map[string]string `json:"parameters"`
	TitlePrefix             string            `json:"titlePrefix"`
	BodyScript              string            `json:"bodyScript"`
	ShowSuccessNotification bool              `json:"showSuccessNotification"`
	InsecureSkipVerify      bool              `json:"insecureSkipVerify"`
	MethodType              string            `json:"methodType"`
	Body                    string            `json:"body"`
}

func (*Config) Clone

func (c *Config) Clone() Config

func (*Config) Validate

func (c *Config) Validate() error

Jump to

Keyboard shortcuts

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