basal

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2017 License: BSD-3-Clause Imports: 4 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Type

func Type() string

Types

type Basal

type Basal struct {
	types.Base `bson:",inline"`

	DeliveryType string `json:"deliveryType,omitempty" bson:"deliveryType,omitempty"`
}

func (*Basal) IdentityFields

func (b *Basal) IdentityFields() ([]string, error)

func (*Basal) Init

func (b *Basal) Init()

func (*Basal) Meta

func (b *Basal) Meta() interface{}

func (*Basal) Normalize

func (b *Basal) Normalize(normalizer data.Normalizer) error

func (*Basal) Parse

func (b *Basal) Parse(parser data.ObjectParser) error

func (*Basal) Validate

func (b *Basal) Validate(validator data.Validator) error

type Meta

type Meta struct {
	Type         string `json:"type,omitempty"`
	DeliveryType string `json:"deliveryType,omitempty"`
}

type Suppressed

type Suppressed struct {
	Type         *string  `json:"type,omitempty" bson:"type,omitempty"`
	DeliveryType *string  `json:"deliveryType,omitempty" bson:"deliveryType,omitempty"`
	Rate         *float64 `json:"rate,omitempty" bson:"rate,omitempty"`
	ScheduleName *string  `json:"scheduleName,omitempty" bson:"scheduleName,omitempty"`

	Suppressed *Suppressed `json:"suppressed,omitempty" bson:"suppressed,omitempty"`
}

func NewSuppressed

func NewSuppressed() *Suppressed

func ParseSuppressed

func ParseSuppressed(parser data.ObjectParser) *Suppressed

func (*Suppressed) Parse

func (s *Suppressed) Parse(parser data.ObjectParser)

func (*Suppressed) Validate

func (s *Suppressed) Validate(validator data.Validator, allowedDeliveryTypes []string)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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