timegate

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TimeGateIncludeRangeMode    = "include_range"
	TimeGateExcludeRangeMode    = "exclude_range"
	TimeGateIncludeSpecificMode = "include_specific"
	TimeGateExcludeSpecificMode = "exclude_specific"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Metadata

type Metadata struct {
	NextValidTime *string `json:"nextValidTime"`
}

type Spec

type Spec struct {
	Mode           string   `json:"mode"`
	StartTime      string   `json:"startTime"`
	EndTime        string   `json:"endTime"`
	Days           []string `json:"days"`
	StartDayInYear string   `json:"startDayInYear,omitempty"`
	EndDayInYear   string   `json:"endDayInYear,omitempty"`
	Timezone       string   `json:"timezone,omitempty"`
}

type TimeGate

type TimeGate struct{}

func (*TimeGate) Actions

func (tg *TimeGate) Actions() []core.Action

func (*TimeGate) Cancel

func (tg *TimeGate) Cancel(ctx core.ExecutionContext) error

func (*TimeGate) Color

func (tg *TimeGate) Color() string

func (*TimeGate) Configuration

func (tg *TimeGate) Configuration() []configuration.Field

func (*TimeGate) Description

func (tg *TimeGate) Description() string

func (*TimeGate) Execute

func (tg *TimeGate) Execute(ctx core.ExecutionContext) error

func (*TimeGate) HandleAction

func (tg *TimeGate) HandleAction(ctx core.ActionContext) error

func (*TimeGate) HandlePushThrough

func (tg *TimeGate) HandlePushThrough(ctx core.ActionContext) error

func (*TimeGate) HandleTimeReached

func (tg *TimeGate) HandleTimeReached(ctx core.ActionContext) error

func (*TimeGate) HandleWebhook

func (tg *TimeGate) HandleWebhook(ctx core.WebhookRequestContext) (int, error)

func (*TimeGate) Icon

func (tg *TimeGate) Icon() string

func (*TimeGate) Label

func (tg *TimeGate) Label() string

func (*TimeGate) Name

func (tg *TimeGate) Name() string

func (*TimeGate) OutputChannels

func (tg *TimeGate) OutputChannels(configuration any) []core.OutputChannel

func (*TimeGate) ProcessQueueItem

func (tg *TimeGate) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)

func (*TimeGate) Setup

func (tg *TimeGate) Setup(ctx core.SetupContext) error

Jump to

Keyboard shortcuts

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