Documentation ¶
Index ¶
- Constants
- type SpecConfiguration
- func (s SpecConfiguration) DeepClone() common.DataSourceType
- func (s SpecConfiguration) GetFilters() []*common.SpecFilter
- func (s SpecConfiguration) GetTimeTriggers() common.InternalTimeTriggers
- func (s SpecConfiguration) IntoProto() *vegapb.DataSourceSpecConfigurationTimeTrigger
- func (s SpecConfiguration) IsTriggered(tm time.Time) bool
- func (s *SpecConfiguration) SetInitial(initial, timeNow time.Time) error
- func (s *SpecConfiguration) SetNextTrigger(timeNow time.Time) error
- func (s SpecConfiguration) String() string
- func (s SpecConfiguration) ToDefinitionProto() (*vegapb.DataSourceDefinition, error)
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 (s SpecConfiguration) IntoProto() *vegapb.DataSourceSpecConfigurationTimeTrigger
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)
Click to show internal directories.
Click to hide internal directories.