timetrigger

package
v0.73.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const InternalTimeTriggerKey = "vegaprotocol.builtin.timetrigger"

Variables

This section is empty.

Functions

This section is empty.

Types

type SpecConfiguration

type SpecConfiguration struct {
	Triggers   common.InternalTimeTriggers
	Conditions []*common.SpecCondition
}

func SpecConfigurationFromProto

func SpecConfigurationFromProto(protoConfig *vegapb.DataSourceSpecConfigurationTimeTrigger, tm *time.Time) (SpecConfiguration, error)

func (SpecConfiguration) DeepClone

func (s SpecConfiguration) DeepClone() common.DataSourceType

func (SpecConfiguration) GetFilters

func (s SpecConfiguration) GetFilters() []*common.SpecFilter

func (SpecConfiguration) GetTimeTriggers

func (s SpecConfiguration) GetTimeTriggers() common.InternalTimeTriggers

func (SpecConfiguration) IntoProto

func (SpecConfiguration) IsTriggered

func (s SpecConfiguration) IsTriggered(tm time.Time) bool

func (*SpecConfiguration) SetInitial

func (s *SpecConfiguration) SetInitial(initial, timeNow time.Time) error

func (*SpecConfiguration) SetNextTrigger

func (s *SpecConfiguration) SetNextTrigger(timeNow time.Time) error

func (SpecConfiguration) String

func (s SpecConfiguration) String() string

func (SpecConfiguration) ToDefinitionProto

func (s SpecConfiguration) ToDefinitionProto() (*vegapb.DataSourceDefinition, error)

Jump to

Keyboard shortcuts

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