scheduled

package
v1.24.0-basal-automated.1 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2018 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DurationMaximum = 604800000
	DurationMinimum = 0
	RateMaximum     = 100.0
	RateMinimum     = 0.0
)

Variables

This section is empty.

Functions

func DeliveryType

func DeliveryType() string

func NewDatum

func NewDatum() data.Datum

Types

type Scheduled

type Scheduled struct {
	basal.Basal `bson:",inline"`

	Duration         *int     `json:"duration,omitempty" bson:"duration,omitempty"`
	DurationExpected *int     `json:"expectedDuration,omitempty" bson:"expectedDuration,omitempty"`
	Rate             *float64 `json:"rate,omitempty" bson:"rate,omitempty"`
	ScheduleName     *string  `json:"scheduleName,omitempty" bson:"scheduleName,omitempty"`
}

func Init

func Init() *Scheduled

func New

func New() *Scheduled

func (*Scheduled) Init

func (s *Scheduled) Init()

func (*Scheduled) Normalize

func (s *Scheduled) Normalize(normalizer data.Normalizer)

func (*Scheduled) Parse

func (s *Scheduled) Parse(parser data.ObjectParser) error

func (*Scheduled) Validate

func (s *Scheduled) Validate(validator structure.Validator)

type SuppressedScheduled

type SuppressedScheduled struct {
	Type         *string `json:"type,omitempty" bson:"type,omitempty"`
	DeliveryType *string `json:"deliveryType,omitempty" bson:"deliveryType,omitempty"`

	Annotations  *data.BlobArray `json:"annotations,omitempty" bson:"annotations,omitempty"`
	Rate         *float64        `json:"rate,omitempty" bson:"rate,omitempty"`
	ScheduleName *string         `json:"scheduleName,omitempty" bson:"scheduleName,omitempty"`
}

func NewSuppressedScheduled

func NewSuppressedScheduled() *SuppressedScheduled

func ParseSuppressedScheduled

func ParseSuppressedScheduled(parser data.ObjectParser) *SuppressedScheduled

func (*SuppressedScheduled) Normalize

func (s *SuppressedScheduled) Normalize(normalizer data.Normalizer)

func (*SuppressedScheduled) Parse

func (s *SuppressedScheduled) Parse(parser data.ObjectParser) error

func (*SuppressedScheduled) Validate

func (s *SuppressedScheduled) Validate(validator structure.Validator)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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