timechange

package
v1.23.0-verio.2 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2018 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDatum

func NewDatum() data.Datum

func SubType

func SubType() string

Types

type Change

type Change struct {
	From  *string `json:"from,omitempty" bson:"from,omitempty"`
	To    *string `json:"to,omitempty" bson:"to,omitempty"`
	Agent *string `json:"agent,omitempty" bson:"agent,omitempty"`
}

func NewChange

func NewChange() *Change

func ParseChange

func ParseChange(parser data.ObjectParser) *Change

func (*Change) Normalize

func (c *Change) Normalize(normalizer data.Normalizer)

func (*Change) Parse

func (c *Change) Parse(parser data.ObjectParser)

func (*Change) Validate

func (c *Change) Validate(validator data.Validator)

type TimeChange

type TimeChange struct {
	device.Device `bson:",inline"`

	Change *Change `json:"change,omitempty" bson:"change,omitempty"`
}

func Init

func Init() *TimeChange

func New

func New() *TimeChange

func (*TimeChange) Init

func (t *TimeChange) Init()

func (*TimeChange) Parse

func (t *TimeChange) Parse(parser data.ObjectParser) error

func (*TimeChange) Validate

func (t *TimeChange) Validate(validator data.Validator) error

Jump to

Keyboard shortcuts

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