v1

package
v0.0.435 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2025 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

View Source
const AttachmentKind = "Attachment"

AttachmentKind is the name of the type used to represent objects of type 'attachment'.

View Source
const AttachmentLinkKind = "AttachmentLink"

AttachmentLinkKind is the name of the type used to represent links to objects of type 'attachment'.

View Source
const AttachmentListKind = "AttachmentList"

AttachmentListKind is the name of the type used to represent list of objects of type 'attachment'.

View Source
const AttachmentListLinkKind = "AttachmentListLink"

AttachmentListLinkKind is the name of the type used to represent links to list of objects of type 'attachment'.

View Source
const AttachmentListNilKind = "AttachmentListNil"

AttachmentNilKind is the name of the type used to nil lists of objects of type 'attachment'.

View Source
const AttachmentNilKind = "AttachmentNil"

AttachmentNilKind is the name of the type used to nil references to objects of type 'attachment'.

View Source
const ErrorKind = "Error"

ErrorKind is the name of the type used to represent objects of type 'error'.

View Source
const ErrorLinkKind = "ErrorLink"

ErrorLinkKind is the name of the type used to represent links to objects of type 'error'.

View Source
const ErrorListKind = "ErrorList"

ErrorListKind is the name of the type used to represent list of objects of type 'error'.

View Source
const ErrorListLinkKind = "ErrorListLink"

ErrorListLinkKind is the name of the type used to represent links to list of objects of type 'error'.

View Source
const ErrorListNilKind = "ErrorListNil"

ErrorNilKind is the name of the type used to nil lists of objects of type 'error'.

View Source
const ErrorNilKind = "ErrorNil"

ErrorNilKind is the name of the type used to nil references to objects of type 'error'.

View Source
const EscalationKind = "Escalation"

EscalationKind is the name of the type used to represent objects of type 'escalation'.

View Source
const EscalationLinkKind = "EscalationLink"

EscalationLinkKind is the name of the type used to represent links to objects of type 'escalation'.

View Source
const EscalationListKind = "EscalationList"

EscalationListKind is the name of the type used to represent list of objects of type 'escalation'.

View Source
const EscalationListLinkKind = "EscalationListLink"

EscalationListLinkKind is the name of the type used to represent links to list of objects of type 'escalation'.

View Source
const EscalationListNilKind = "EscalationListNil"

EscalationNilKind is the name of the type used to nil lists of objects of type 'escalation'.

View Source
const EscalationNilKind = "EscalationNil"

EscalationNilKind is the name of the type used to nil references to objects of type 'escalation'.

View Source
const EventKind = "Event"

EventKind is the name of the type used to represent objects of type 'event'.

View Source
const EventLinkKind = "EventLink"

EventLinkKind is the name of the type used to represent links to objects of type 'event'.

View Source
const EventListKind = "EventList"

EventListKind is the name of the type used to represent list of objects of type 'event'.

View Source
const EventListLinkKind = "EventListLink"

EventListLinkKind is the name of the type used to represent links to list of objects of type 'event'.

View Source
const EventListNilKind = "EventListNil"

EventNilKind is the name of the type used to nil lists of objects of type 'event'.

View Source
const EventNilKind = "EventNil"

EventNilKind is the name of the type used to nil references to objects of type 'event'.

View Source
const FollowUpChangeKind = "FollowUpChange"

FollowUpChangeKind is the name of the type used to represent objects of type 'follow_up_change'.

View Source
const FollowUpChangeLinkKind = "FollowUpChangeLink"

FollowUpChangeLinkKind is the name of the type used to represent links to objects of type 'follow_up_change'.

View Source
const FollowUpChangeListKind = "FollowUpChangeList"

FollowUpChangeListKind is the name of the type used to represent list of objects of type 'follow_up_change'.

View Source
const FollowUpChangeListLinkKind = "FollowUpChangeListLink"

FollowUpChangeListLinkKind is the name of the type used to represent links to list of objects of type 'follow_up_change'.

View Source
const FollowUpChangeListNilKind = "FollowUpChangeListNil"

FollowUpChangeNilKind is the name of the type used to nil lists of objects of type 'follow_up_change'.

View Source
const FollowUpChangeNilKind = "FollowUpChangeNil"

FollowUpChangeNilKind is the name of the type used to nil references to objects of type 'follow_up_change'.

View Source
const FollowUpKind = "FollowUp"

FollowUpKind is the name of the type used to represent objects of type 'follow_up'.

View Source
const FollowUpLinkKind = "FollowUpLink"

FollowUpLinkKind is the name of the type used to represent links to objects of type 'follow_up'.

View Source
const FollowUpListKind = "FollowUpList"

FollowUpListKind is the name of the type used to represent list of objects of type 'follow_up'.

View Source
const FollowUpListLinkKind = "FollowUpListLink"

FollowUpListLinkKind is the name of the type used to represent links to list of objects of type 'follow_up'.

View Source
const FollowUpListNilKind = "FollowUpListNil"

FollowUpNilKind is the name of the type used to nil lists of objects of type 'follow_up'.

View Source
const FollowUpNilKind = "FollowUpNil"

FollowUpNilKind is the name of the type used to nil references to objects of type 'follow_up'.

View Source
const HandoffKind = "Handoff"

HandoffKind is the name of the type used to represent objects of type 'handoff'.

View Source
const HandoffLinkKind = "HandoffLink"

HandoffLinkKind is the name of the type used to represent links to objects of type 'handoff'.

View Source
const HandoffListKind = "HandoffList"

HandoffListKind is the name of the type used to represent list of objects of type 'handoff'.

View Source
const HandoffListLinkKind = "HandoffListLink"

HandoffListLinkKind is the name of the type used to represent links to list of objects of type 'handoff'.

View Source
const HandoffListNilKind = "HandoffListNil"

HandoffNilKind is the name of the type used to nil lists of objects of type 'handoff'.

View Source
const HandoffNilKind = "HandoffNil"

HandoffNilKind is the name of the type used to nil references to objects of type 'handoff'.

View Source
const IncidentKind = "Incident"

IncidentKind is the name of the type used to represent objects of type 'incident'.

View Source
const IncidentLinkKind = "IncidentLink"

IncidentLinkKind is the name of the type used to represent links to objects of type 'incident'.

View Source
const IncidentListKind = "IncidentList"

IncidentListKind is the name of the type used to represent list of objects of type 'incident'.

View Source
const IncidentListLinkKind = "IncidentListLink"

IncidentListLinkKind is the name of the type used to represent links to list of objects of type 'incident'.

View Source
const IncidentListNilKind = "IncidentListNil"

IncidentNilKind is the name of the type used to nil lists of objects of type 'incident'.

View Source
const IncidentNilKind = "IncidentNil"

IncidentNilKind is the name of the type used to nil references to objects of type 'incident'.

View Source
const NotificationKind = "Notification"

NotificationKind is the name of the type used to represent objects of type 'notification'.

View Source
const NotificationLinkKind = "NotificationLink"

NotificationLinkKind is the name of the type used to represent links to objects of type 'notification'.

View Source
const NotificationListKind = "NotificationList"

NotificationListKind is the name of the type used to represent list of objects of type 'notification'.

View Source
const NotificationListLinkKind = "NotificationListLink"

NotificationListLinkKind is the name of the type used to represent links to list of objects of type 'notification'.

View Source
const NotificationListNilKind = "NotificationListNil"

NotificationNilKind is the name of the type used to nil lists of objects of type 'notification'.

View Source
const NotificationNilKind = "NotificationNil"

NotificationNilKind is the name of the type used to nil references to objects of type 'notification'.

View Source
const ProductKind = "Product"

ProductKind is the name of the type used to represent objects of type 'product'.

View Source
const ProductLinkKind = "ProductLink"

ProductLinkKind is the name of the type used to represent links to objects of type 'product'.

View Source
const ProductListKind = "ProductList"

ProductListKind is the name of the type used to represent list of objects of type 'product'.

View Source
const ProductListLinkKind = "ProductListLink"

ProductListLinkKind is the name of the type used to represent links to list of objects of type 'product'.

View Source
const ProductListNilKind = "ProductListNil"

ProductNilKind is the name of the type used to nil lists of objects of type 'product'.

View Source
const ProductNilKind = "ProductNil"

ProductNilKind is the name of the type used to nil references to objects of type 'product'.

View Source
const StatusChangeKind = "StatusChange"

StatusChangeKind is the name of the type used to represent objects of type 'status_change'.

View Source
const StatusChangeLinkKind = "StatusChangeLink"

StatusChangeLinkKind is the name of the type used to represent links to objects of type 'status_change'.

View Source
const StatusChangeListKind = "StatusChangeList"

StatusChangeListKind is the name of the type used to represent list of objects of type 'status_change'.

View Source
const StatusChangeListLinkKind = "StatusChangeListLink"

StatusChangeListLinkKind is the name of the type used to represent links to list of objects of type 'status_change'.

View Source
const StatusChangeListNilKind = "StatusChangeListNil"

StatusChangeNilKind is the name of the type used to nil lists of objects of type 'status_change'.

View Source
const StatusChangeNilKind = "StatusChangeNil"

StatusChangeNilKind is the name of the type used to nil references to objects of type 'status_change'.

View Source
const UserKind = "User"

UserKind is the name of the type used to represent objects of type 'user'.

View Source
const UserLinkKind = "UserLink"

UserLinkKind is the name of the type used to represent links to objects of type 'user'.

View Source
const UserListKind = "UserList"

UserListKind is the name of the type used to represent list of objects of type 'user'.

View Source
const UserListLinkKind = "UserListLink"

UserListLinkKind is the name of the type used to represent links to list of objects of type 'user'.

View Source
const UserListNilKind = "UserListNil"

UserNilKind is the name of the type used to nil lists of objects of type 'user'.

View Source
const UserNilKind = "UserNil"

UserNilKind is the name of the type used to nil references to objects of type 'user'.

Variables

This section is empty.

Functions

func MarshalAttachment

func MarshalAttachment(object *Attachment, writer io.Writer) error

MarshalAttachment writes a value of the 'attachment' type to the given writer.

func MarshalAttachmentList

func MarshalAttachmentList(list []*Attachment, writer io.Writer) error

MarshalAttachmentList writes a list of values of the 'attachment' type to the given writer.

func MarshalBooleanList

func MarshalBooleanList(list []bool, writer io.Writer) error

MarshalBooleanList writes a list of values of the 'boolean' type to the given writer.

func MarshalDateList

func MarshalDateList(list []time.Time, writer io.Writer) error

MarshalDateList writes a list of values of the 'date' type to the given writer.

func MarshalError

func MarshalError(object *Error, writer io.Writer) error

MarshalError writes a value of the 'error' type to the given writer.

func MarshalErrorList

func MarshalErrorList(list []*Error, writer io.Writer) error

MarshalErrorList writes a list of values of the 'error' type to the given writer.

func MarshalEscalation

func MarshalEscalation(object *Escalation, writer io.Writer) error

MarshalEscalation writes a value of the 'escalation' type to the given writer.

func MarshalEscalationList

func MarshalEscalationList(list []*Escalation, writer io.Writer) error

MarshalEscalationList writes a list of values of the 'escalation' type to the given writer.

func MarshalEvent

func MarshalEvent(object *Event, writer io.Writer) error

MarshalEvent writes a value of the 'event' type to the given writer.

func MarshalEventList

func MarshalEventList(list []*Event, writer io.Writer) error

MarshalEventList writes a list of values of the 'event' type to the given writer.

func MarshalFloatList

func MarshalFloatList(list []float64, writer io.Writer) error

MarshalFloatList writes a list of values of the 'float' type to the given writer.

func MarshalFollowUp

func MarshalFollowUp(object *FollowUp, writer io.Writer) error

MarshalFollowUp writes a value of the 'follow_up' type to the given writer.

func MarshalFollowUpChange

func MarshalFollowUpChange(object *FollowUpChange, writer io.Writer) error

MarshalFollowUpChange writes a value of the 'follow_up_change' type to the given writer.

func MarshalFollowUpChangeList

func MarshalFollowUpChangeList(list []*FollowUpChange, writer io.Writer) error

MarshalFollowUpChangeList writes a list of values of the 'follow_up_change' type to the given writer.

func MarshalFollowUpList

func MarshalFollowUpList(list []*FollowUp, writer io.Writer) error

MarshalFollowUpList writes a list of values of the 'follow_up' type to the given writer.

func MarshalHandoff

func MarshalHandoff(object *Handoff, writer io.Writer) error

MarshalHandoff writes a value of the 'handoff' type to the given writer.

func MarshalHandoffList

func MarshalHandoffList(list []*Handoff, writer io.Writer) error

MarshalHandoffList writes a list of values of the 'handoff' type to the given writer.

func MarshalIncident

func MarshalIncident(object *Incident, writer io.Writer) error

MarshalIncident writes a value of the 'incident' type to the given writer.

func MarshalIncidentList

func MarshalIncidentList(list []*Incident, writer io.Writer) error

MarshalIncidentList writes a list of values of the 'incident' type to the given writer.

func MarshalIntegerList

func MarshalIntegerList(list []int, writer io.Writer) error

MarshalIntegerList writes a list of values of the 'integer' type to the given writer.

func MarshalInterfaceList

func MarshalInterfaceList(list []interface{}, writer io.Writer) error

MarshalInterfaceList writes a list of values of the 'interface' type to the given writer.

func MarshalLongList

func MarshalLongList(list []int64, writer io.Writer) error

MarshalLongList writes a list of values of the 'long' type to the given writer.

func MarshalMetadata

func MarshalMetadata(object *Metadata, writer io.Writer) error

MarshalMetadata writes a value of the metadata type to the given target, which can be a writer or a JSON encoder.

func MarshalNotification

func MarshalNotification(object *Notification, writer io.Writer) error

MarshalNotification writes a value of the 'notification' type to the given writer.

func MarshalNotificationList

func MarshalNotificationList(list []*Notification, writer io.Writer) error

MarshalNotificationList writes a list of values of the 'notification' type to the given writer.

func MarshalProduct

func MarshalProduct(object *Product, writer io.Writer) error

MarshalProduct writes a value of the 'product' type to the given writer.

func MarshalProductList

func MarshalProductList(list []*Product, writer io.Writer) error

MarshalProductList writes a list of values of the 'product' type to the given writer.

func MarshalStatusChange

func MarshalStatusChange(object *StatusChange, writer io.Writer) error

MarshalStatusChange writes a value of the 'status_change' type to the given writer.

func MarshalStatusChangeList

func MarshalStatusChangeList(list []*StatusChange, writer io.Writer) error

MarshalStatusChangeList writes a list of values of the 'status_change' type to the given writer.

func MarshalStringList

func MarshalStringList(list []string, writer io.Writer) error

MarshalStringList writes a list of values of the 'string' type to the given writer.

func MarshalUser

func MarshalUser(object *User, writer io.Writer) error

MarshalUser writes a value of the 'user' type to the given writer.

func MarshalUserList

func MarshalUserList(list []*User, writer io.Writer) error

MarshalUserList writes a list of values of the 'user' type to the given writer.

func ReadBooleanList

func ReadBooleanList(iterator *jsoniter.Iterator) []bool

ReadBooleanList reads list of values of the ”boolean' type from the given iterator.

func ReadDateList

func ReadDateList(iterator *jsoniter.Iterator) []time.Time

ReadDateList reads list of values of the ”date' type from the given iterator.

func ReadFloatList

func ReadFloatList(iterator *jsoniter.Iterator) []float64

ReadFloatList reads list of values of the ”float' type from the given iterator.

func ReadIntegerList

func ReadIntegerList(iterator *jsoniter.Iterator) []int

ReadIntegerList reads list of values of the ”integer' type from the given iterator.

func ReadInterfaceList

func ReadInterfaceList(iterator *jsoniter.Iterator) []interface{}

ReadInterfaceList reads list of values of the ”interface' type from the given iterator.

func ReadLongList

func ReadLongList(iterator *jsoniter.Iterator) []int64

ReadLongList reads list of values of the ”long' type from the given iterator.

func ReadStringList

func ReadStringList(iterator *jsoniter.Iterator) []string

ReadStringList reads list of values of the ”string' type from the given iterator.

func UnmarshalBooleanList

func UnmarshalBooleanList(source interface{}) (items []bool, err error)

UnmarshalBooleanList reads a list of values of the 'boolean' type from the given source, which can be a slice of bytes, a string or a reader.

func UnmarshalDateList

func UnmarshalDateList(source interface{}) (items []time.Time, err error)

UnmarshalDateList reads a list of values of the 'date' type from the given source, which can be a slice of bytes, a string or a reader.

func UnmarshalFloatList

func UnmarshalFloatList(source interface{}) (items []float64, err error)

UnmarshalFloatList reads a list of values of the 'float' type from the given source, which can be a slice of bytes, a string or a reader.

func UnmarshalIntegerList

func UnmarshalIntegerList(source interface{}) (items []int, err error)

UnmarshalIntegerList reads a list of values of the 'integer' type from the given source, which can be a slice of bytes, a string or a reader.

func UnmarshalInterfaceList

func UnmarshalInterfaceList(source interface{}) (items []interface{}, err error)

UnmarshalInterfaceList reads a list of values of the 'interface' type from the given source, which can be a slice of bytes, a string or a reader.

func UnmarshalLongList

func UnmarshalLongList(source interface{}) (items []int64, err error)

UnmarshalLongList reads a list of values of the 'long' type from the given source, which can be a slice of bytes, a string or a reader.

func UnmarshalStringList

func UnmarshalStringList(source interface{}) (items []string, err error)

UnmarshalStringList reads a list of values of the 'string' type from the given source, which can be a slice of bytes, a string or a reader.

func WriteAttachment

func WriteAttachment(object *Attachment, stream *jsoniter.Stream)

WriteAttachment writes a value of the 'attachment' type to the given stream.

func WriteAttachmentList

func WriteAttachmentList(list []*Attachment, stream *jsoniter.Stream)

WriteAttachmentList writes a list of value of the 'attachment' type to the given stream.

func WriteBooleanList

func WriteBooleanList(list []bool, stream *jsoniter.Stream)

WriteBooleanList writes a list of value of the 'boolean' type to the given stream.

func WriteDateList

func WriteDateList(list []time.Time, stream *jsoniter.Stream)

WriteDateList writes a list of value of the 'date' type to the given stream.

func WriteError

func WriteError(object *Error, stream *jsoniter.Stream)

WriteError writes a value of the 'error' type to the given stream.

func WriteErrorList

func WriteErrorList(list []*Error, stream *jsoniter.Stream)

WriteErrorList writes a list of value of the 'error' type to the given stream.

func WriteEscalation

func WriteEscalation(object *Escalation, stream *jsoniter.Stream)

WriteEscalation writes a value of the 'escalation' type to the given stream.

func WriteEscalationList

func WriteEscalationList(list []*Escalation, stream *jsoniter.Stream)

WriteEscalationList writes a list of value of the 'escalation' type to the given stream.

func WriteEvent

func WriteEvent(object *Event, stream *jsoniter.Stream)

WriteEvent writes a value of the 'event' type to the given stream.

func WriteEventList

func WriteEventList(list []*Event, stream *jsoniter.Stream)

WriteEventList writes a list of value of the 'event' type to the given stream.

func WriteFloatList

func WriteFloatList(list []float64, stream *jsoniter.Stream)

WriteFloatList writes a list of value of the 'float' type to the given stream.

func WriteFollowUp

func WriteFollowUp(object *FollowUp, stream *jsoniter.Stream)

WriteFollowUp writes a value of the 'follow_up' type to the given stream.

func WriteFollowUpChange

func WriteFollowUpChange(object *FollowUpChange, stream *jsoniter.Stream)

WriteFollowUpChange writes a value of the 'follow_up_change' type to the given stream.

func WriteFollowUpChangeList

func WriteFollowUpChangeList(list []*FollowUpChange, stream *jsoniter.Stream)

WriteFollowUpChangeList writes a list of value of the 'follow_up_change' type to the given stream.

func WriteFollowUpList

func WriteFollowUpList(list []*FollowUp, stream *jsoniter.Stream)

WriteFollowUpList writes a list of value of the 'follow_up' type to the given stream.

func WriteHandoff

func WriteHandoff(object *Handoff, stream *jsoniter.Stream)

WriteHandoff writes a value of the 'handoff' type to the given stream.

func WriteHandoffList

func WriteHandoffList(list []*Handoff, stream *jsoniter.Stream)

WriteHandoffList writes a list of value of the 'handoff' type to the given stream.

func WriteIncident

func WriteIncident(object *Incident, stream *jsoniter.Stream)

WriteIncident writes a value of the 'incident' type to the given stream.

func WriteIncidentList

func WriteIncidentList(list []*Incident, stream *jsoniter.Stream)

WriteIncidentList writes a list of value of the 'incident' type to the given stream.

func WriteIntegerList

func WriteIntegerList(list []int, stream *jsoniter.Stream)

WriteIntegerList writes a list of value of the 'integer' type to the given stream.

func WriteInterfaceList

func WriteInterfaceList(list []interface{}, stream *jsoniter.Stream)

WriteInterfaceList writes a list of value of the 'interface' type to the given stream.

func WriteLongList

func WriteLongList(list []int64, stream *jsoniter.Stream)

WriteLongList writes a list of value of the 'long' type to the given stream.

func WriteNotification

func WriteNotification(object *Notification, stream *jsoniter.Stream)

WriteNotification writes a value of the 'notification' type to the given stream.

func WriteNotificationList

func WriteNotificationList(list []*Notification, stream *jsoniter.Stream)

WriteNotificationList writes a list of value of the 'notification' type to the given stream.

func WriteProduct

func WriteProduct(object *Product, stream *jsoniter.Stream)

WriteProduct writes a value of the 'product' type to the given stream.

func WriteProductList

func WriteProductList(list []*Product, stream *jsoniter.Stream)

WriteProductList writes a list of value of the 'product' type to the given stream.

func WriteStatusChange

func WriteStatusChange(object *StatusChange, stream *jsoniter.Stream)

WriteStatusChange writes a value of the 'status_change' type to the given stream.

func WriteStatusChangeList

func WriteStatusChangeList(list []*StatusChange, stream *jsoniter.Stream)

WriteStatusChangeList writes a list of value of the 'status_change' type to the given stream.

func WriteStringList

func WriteStringList(list []string, stream *jsoniter.Stream)

WriteStringList writes a list of value of the 'string' type to the given stream.

func WriteUser

func WriteUser(object *User, stream *jsoniter.Stream)

WriteUser writes a value of the 'user' type to the given stream.

func WriteUserList

func WriteUserList(list []*User, stream *jsoniter.Stream)

WriteUserList writes a list of value of the 'user' type to the given stream.

Types

type Attachment

type Attachment struct {
	// contains filtered or unexported fields
}

Attachment represents the values of the 'attachment' type.

Definition of a Web RCA attachment.

func ReadAttachment

func ReadAttachment(iterator *jsoniter.Iterator) *Attachment

ReadAttachment reads a value of the 'attachment' type from the given iterator.

func ReadAttachmentList

func ReadAttachmentList(iterator *jsoniter.Iterator) []*Attachment

ReadAttachmentList reads list of values of the ”attachment' type from the given iterator.

func UnmarshalAttachment

func UnmarshalAttachment(source interface{}) (object *Attachment, err error)

UnmarshalAttachment reads a value of the 'attachment' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalAttachmentList

func UnmarshalAttachmentList(source interface{}) (items []*Attachment, err error)

UnmarshalAttachmentList reads a list of values of the 'attachment' type from the given source, which can be a slice of bytes, a string or a reader.

func (*Attachment) ContentType

func (o *Attachment) ContentType() string

ContentType returns the value of the 'content_type' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Attachment) CreatedAt

func (o *Attachment) CreatedAt() time.Time

CreatedAt returns the value of the 'created_at' attribute, or the zero value of the type if the attribute doesn't have a value.

Object creation timestamp.

func (*Attachment) Creator

func (o *Attachment) Creator() *User

Creator returns the value of the 'creator' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Attachment) DeletedAt

func (o *Attachment) DeletedAt() time.Time

DeletedAt returns the value of the 'deleted_at' attribute, or the zero value of the type if the attribute doesn't have a value.

Object deletion timestamp.

func (*Attachment) Empty

func (o *Attachment) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*Attachment) Event

func (o *Attachment) Event() *Event

Event returns the value of the 'event' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Attachment) FileSize

func (o *Attachment) FileSize() int

FileSize returns the value of the 'file_size' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Attachment) GetContentType

func (o *Attachment) GetContentType() (value string, ok bool)

GetContentType returns the value of the 'content_type' attribute and a flag indicating if the attribute has a value.

func (*Attachment) GetCreatedAt

func (o *Attachment) GetCreatedAt() (value time.Time, ok bool)

GetCreatedAt returns the value of the 'created_at' attribute and a flag indicating if the attribute has a value.

Object creation timestamp.

func (*Attachment) GetCreator

func (o *Attachment) GetCreator() (value *User, ok bool)

GetCreator returns the value of the 'creator' attribute and a flag indicating if the attribute has a value.

func (*Attachment) GetDeletedAt

func (o *Attachment) GetDeletedAt() (value time.Time, ok bool)

GetDeletedAt returns the value of the 'deleted_at' attribute and a flag indicating if the attribute has a value.

Object deletion timestamp.

func (*Attachment) GetEvent

func (o *Attachment) GetEvent() (value *Event, ok bool)

GetEvent returns the value of the 'event' attribute and a flag indicating if the attribute has a value.

func (*Attachment) GetFileSize

func (o *Attachment) GetFileSize() (value int, ok bool)

GetFileSize returns the value of the 'file_size' attribute and a flag indicating if the attribute has a value.

func (*Attachment) GetHREF

func (o *Attachment) GetHREF() (value string, ok bool)

GetHREF returns the link of the object and a flag indicating if the link has a value.

func (*Attachment) GetID

func (o *Attachment) GetID() (value string, ok bool)

GetID returns the identifier of the object and a flag indicating if the identifier has a value.

func (*Attachment) GetName

func (o *Attachment) GetName() (value string, ok bool)

GetName returns the value of the 'name' attribute and a flag indicating if the attribute has a value.

func (*Attachment) GetUpdatedAt

func (o *Attachment) GetUpdatedAt() (value time.Time, ok bool)

GetUpdatedAt returns the value of the 'updated_at' attribute and a flag indicating if the attribute has a value.

Object modification timestamp.

func (*Attachment) HREF

func (o *Attachment) HREF() string

HREF returns the link to the object.

func (*Attachment) ID

func (o *Attachment) ID() string

ID returns the identifier of the object.

func (*Attachment) Kind

func (o *Attachment) Kind() string

Kind returns the name of the type of the object.

func (o *Attachment) Link() bool

Link returns true if this is a link.

func (*Attachment) Name

func (o *Attachment) Name() string

Name returns the value of the 'name' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Attachment) UpdatedAt

func (o *Attachment) UpdatedAt() time.Time

UpdatedAt returns the value of the 'updated_at' attribute, or the zero value of the type if the attribute doesn't have a value.

Object modification timestamp.

type AttachmentBuilder

type AttachmentBuilder struct {
	// contains filtered or unexported fields
}

Definition of a Web RCA attachment.

func NewAttachment

func NewAttachment() *AttachmentBuilder

NewAttachment creates a new builder of 'attachment' objects.

func (*AttachmentBuilder) Build

func (b *AttachmentBuilder) Build() (object *Attachment, err error)

Build creates a 'attachment' object using the configuration stored in the builder.

func (*AttachmentBuilder) ContentType

func (b *AttachmentBuilder) ContentType(value string) *AttachmentBuilder

ContentType sets the value of the 'content_type' attribute to the given value.

func (*AttachmentBuilder) Copy

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*AttachmentBuilder) CreatedAt

func (b *AttachmentBuilder) CreatedAt(value time.Time) *AttachmentBuilder

CreatedAt sets the value of the 'created_at' attribute to the given value.

func (*AttachmentBuilder) Creator

func (b *AttachmentBuilder) Creator(value *UserBuilder) *AttachmentBuilder

Creator sets the value of the 'creator' attribute to the given value.

Definition of a Web RCA user.

func (*AttachmentBuilder) DeletedAt

func (b *AttachmentBuilder) DeletedAt(value time.Time) *AttachmentBuilder

DeletedAt sets the value of the 'deleted_at' attribute to the given value.

func (*AttachmentBuilder) Empty

func (b *AttachmentBuilder) Empty() bool

Empty returns true if the builder is empty, i.e. no attribute has a value.

func (*AttachmentBuilder) Event

Event sets the value of the 'event' attribute to the given value.

Definition of a Web RCA event.

func (*AttachmentBuilder) FileSize

func (b *AttachmentBuilder) FileSize(value int) *AttachmentBuilder

FileSize sets the value of the 'file_size' attribute to the given value.

func (*AttachmentBuilder) HREF

func (b *AttachmentBuilder) HREF(value string) *AttachmentBuilder

HREF sets the link to the object.

func (*AttachmentBuilder) ID

ID sets the identifier of the object.

func (b *AttachmentBuilder) Link(value bool) *AttachmentBuilder

Link sets the flag that indicates if this is a link.

func (*AttachmentBuilder) Name

func (b *AttachmentBuilder) Name(value string) *AttachmentBuilder

Name sets the value of the 'name' attribute to the given value.

func (*AttachmentBuilder) UpdatedAt

func (b *AttachmentBuilder) UpdatedAt(value time.Time) *AttachmentBuilder

UpdatedAt sets the value of the 'updated_at' attribute to the given value.

type AttachmentList

type AttachmentList struct {
	// contains filtered or unexported fields
}

AttachmentList is a list of values of the 'attachment' type.

func (*AttachmentList) Each

func (l *AttachmentList) Each(f func(item *Attachment) bool)

Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*AttachmentList) Empty

func (l *AttachmentList) Empty() bool

Empty returns true if the list is empty.

func (*AttachmentList) Get

func (l *AttachmentList) Get(i int) *Attachment

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*AttachmentList) GetHREF

func (l *AttachmentList) GetHREF() (value string, ok bool)

GetHREF returns the link of the list and a flag indicating if the link has a value.

func (*AttachmentList) HREF

func (l *AttachmentList) HREF() string

HREF returns the link to the list.

func (*AttachmentList) Items

func (l *AttachmentList) Items() []*Attachment

Items returns the items of the list.

func (*AttachmentList) Kind

func (l *AttachmentList) Kind() string

Kind returns the name of the type of the object.

func (*AttachmentList) Len

func (l *AttachmentList) Len() int

Len returns the length of the list.

func (l *AttachmentList) Link() bool

Link returns true iif this is a link.

func (*AttachmentList) Range

func (l *AttachmentList) Range(f func(index int, item *Attachment) bool)

Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*AttachmentList) SetHREF

func (l *AttachmentList) SetHREF(href string)

Items sets the items of the list.

func (*AttachmentList) SetItems

func (l *AttachmentList) SetItems(items []*Attachment)

Items sets the items of the list.

func (l *AttachmentList) SetLink(link bool)

Items sets the items of the list.

func (*AttachmentList) Slice

func (l *AttachmentList) Slice() []*Attachment

Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.

If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.

type AttachmentListBuilder

type AttachmentListBuilder struct {
	// contains filtered or unexported fields
}

AttachmentListBuilder contains the data and logic needed to build 'attachment' objects.

func NewAttachmentList

func NewAttachmentList() *AttachmentListBuilder

NewAttachmentList creates a new builder of 'attachment' objects.

func (*AttachmentListBuilder) Build

func (b *AttachmentListBuilder) Build() (list *AttachmentList, err error)

Build creates a list of 'attachment' objects using the configuration stored in the builder.

func (*AttachmentListBuilder) Copy

Copy copies the items of the given list into this builder, discarding any previous items.

func (*AttachmentListBuilder) Empty

func (b *AttachmentListBuilder) Empty() bool

Empty returns true if the list is empty.

func (*AttachmentListBuilder) Items

Items sets the items of the list.

type Error

type Error struct {
	// contains filtered or unexported fields
}

Error represents the values of the 'error' type.

Definition of a Web RCA error.

func ReadError

func ReadError(iterator *jsoniter.Iterator) *Error

ReadError reads a value of the 'error' type from the given iterator.

func ReadErrorList

func ReadErrorList(iterator *jsoniter.Iterator) []*Error

ReadErrorList reads list of values of the ”error' type from the given iterator.

func UnmarshalError

func UnmarshalError(source interface{}) (object *Error, err error)

UnmarshalError reads a value of the 'error' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalErrorList

func UnmarshalErrorList(source interface{}) (items []*Error, err error)

UnmarshalErrorList reads a list of values of the 'error' type from the given source, which can be a slice of bytes, a string or a reader.

func (*Error) Code

func (o *Error) Code() string

Code returns the value of the 'code' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Error) Empty

func (o *Error) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*Error) GetCode

func (o *Error) GetCode() (value string, ok bool)

GetCode returns the value of the 'code' attribute and a flag indicating if the attribute has a value.

func (*Error) GetHREF

func (o *Error) GetHREF() (value string, ok bool)

GetHREF returns the link of the object and a flag indicating if the link has a value.

func (*Error) GetID

func (o *Error) GetID() (value string, ok bool)

GetID returns the identifier of the object and a flag indicating if the identifier has a value.

func (*Error) GetReason

func (o *Error) GetReason() (value string, ok bool)

GetReason returns the value of the 'reason' attribute and a flag indicating if the attribute has a value.

func (*Error) HREF

func (o *Error) HREF() string

HREF returns the link to the object.

func (*Error) ID

func (o *Error) ID() string

ID returns the identifier of the object.

func (*Error) Kind

func (o *Error) Kind() string

Kind returns the name of the type of the object.

func (o *Error) Link() bool

Link returns true if this is a link.

func (*Error) Reason

func (o *Error) Reason() string

Reason returns the value of the 'reason' attribute, or the zero value of the type if the attribute doesn't have a value.

type ErrorBuilder

type ErrorBuilder struct {
	// contains filtered or unexported fields
}

Definition of a Web RCA error.

func NewError

func NewError() *ErrorBuilder

NewError creates a new builder of 'error' objects.

func (*ErrorBuilder) Build

func (b *ErrorBuilder) Build() (object *Error, err error)

Build creates a 'error' object using the configuration stored in the builder.

func (*ErrorBuilder) Code

func (b *ErrorBuilder) Code(value string) *ErrorBuilder

Code sets the value of the 'code' attribute to the given value.

func (*ErrorBuilder) Copy

func (b *ErrorBuilder) Copy(object *Error) *ErrorBuilder

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*ErrorBuilder) Empty

func (b *ErrorBuilder) Empty() bool

Empty returns true if the builder is empty, i.e. no attribute has a value.

func (*ErrorBuilder) HREF

func (b *ErrorBuilder) HREF(value string) *ErrorBuilder

HREF sets the link to the object.

func (*ErrorBuilder) ID

func (b *ErrorBuilder) ID(value string) *ErrorBuilder

ID sets the identifier of the object.

func (b *ErrorBuilder) Link(value bool) *ErrorBuilder

Link sets the flag that indicates if this is a link.

func (*ErrorBuilder) Reason

func (b *ErrorBuilder) Reason(value string) *ErrorBuilder

Reason sets the value of the 'reason' attribute to the given value.

type ErrorList

type ErrorList struct {
	// contains filtered or unexported fields
}

ErrorList is a list of values of the 'error' type.

func (*ErrorList) Each

func (l *ErrorList) Each(f func(item *Error) bool)

Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*ErrorList) Empty

func (l *ErrorList) Empty() bool

Empty returns true if the list is empty.

func (*ErrorList) Get

func (l *ErrorList) Get(i int) *Error

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*ErrorList) GetHREF

func (l *ErrorList) GetHREF() (value string, ok bool)

GetHREF returns the link of the list and a flag indicating if the link has a value.

func (*ErrorList) HREF

func (l *ErrorList) HREF() string

HREF returns the link to the list.

func (*ErrorList) Items

func (l *ErrorList) Items() []*Error

Items returns the items of the list.

func (*ErrorList) Kind

func (l *ErrorList) Kind() string

Kind returns the name of the type of the object.

func (*ErrorList) Len

func (l *ErrorList) Len() int

Len returns the length of the list.

func (l *ErrorList) Link() bool

Link returns true iif this is a link.

func (*ErrorList) Range

func (l *ErrorList) Range(f func(index int, item *Error) bool)

Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*ErrorList) SetHREF

func (l *ErrorList) SetHREF(href string)

Items sets the items of the list.

func (*ErrorList) SetItems

func (l *ErrorList) SetItems(items []*Error)

Items sets the items of the list.

func (l *ErrorList) SetLink(link bool)

Items sets the items of the list.

func (*ErrorList) Slice

func (l *ErrorList) Slice() []*Error

Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.

If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.

type ErrorListBuilder

type ErrorListBuilder struct {
	// contains filtered or unexported fields
}

ErrorListBuilder contains the data and logic needed to build 'error' objects.

func NewErrorList

func NewErrorList() *ErrorListBuilder

NewErrorList creates a new builder of 'error' objects.

func (*ErrorListBuilder) Build

func (b *ErrorListBuilder) Build() (list *ErrorList, err error)

Build creates a list of 'error' objects using the configuration stored in the builder.

func (*ErrorListBuilder) Copy

Copy copies the items of the given list into this builder, discarding any previous items.

func (*ErrorListBuilder) Empty

func (b *ErrorListBuilder) Empty() bool

Empty returns true if the list is empty.

func (*ErrorListBuilder) Items

func (b *ErrorListBuilder) Items(values ...*ErrorBuilder) *ErrorListBuilder

Items sets the items of the list.

type Escalation

type Escalation struct {
	// contains filtered or unexported fields
}

Escalation represents the values of the 'escalation' type.

Definition of a Web RCA escalation.

func ReadEscalation

func ReadEscalation(iterator *jsoniter.Iterator) *Escalation

ReadEscalation reads a value of the 'escalation' type from the given iterator.

func ReadEscalationList

func ReadEscalationList(iterator *jsoniter.Iterator) []*Escalation

ReadEscalationList reads list of values of the ”escalation' type from the given iterator.

func UnmarshalEscalation

func UnmarshalEscalation(source interface{}) (object *Escalation, err error)

UnmarshalEscalation reads a value of the 'escalation' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalEscalationList

func UnmarshalEscalationList(source interface{}) (items []*Escalation, err error)

UnmarshalEscalationList reads a list of values of the 'escalation' type from the given source, which can be a slice of bytes, a string or a reader.

func (*Escalation) CreatedAt

func (o *Escalation) CreatedAt() time.Time

CreatedAt returns the value of the 'created_at' attribute, or the zero value of the type if the attribute doesn't have a value.

Object creation timestamp.

func (*Escalation) DeletedAt

func (o *Escalation) DeletedAt() time.Time

DeletedAt returns the value of the 'deleted_at' attribute, or the zero value of the type if the attribute doesn't have a value.

Object deletion timestamp.

func (*Escalation) Empty

func (o *Escalation) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*Escalation) GetCreatedAt

func (o *Escalation) GetCreatedAt() (value time.Time, ok bool)

GetCreatedAt returns the value of the 'created_at' attribute and a flag indicating if the attribute has a value.

Object creation timestamp.

func (*Escalation) GetDeletedAt

func (o *Escalation) GetDeletedAt() (value time.Time, ok bool)

GetDeletedAt returns the value of the 'deleted_at' attribute and a flag indicating if the attribute has a value.

Object deletion timestamp.

func (*Escalation) GetHREF

func (o *Escalation) GetHREF() (value string, ok bool)

GetHREF returns the link of the object and a flag indicating if the link has a value.

func (*Escalation) GetID

func (o *Escalation) GetID() (value string, ok bool)

GetID returns the identifier of the object and a flag indicating if the identifier has a value.

func (*Escalation) GetUpdatedAt

func (o *Escalation) GetUpdatedAt() (value time.Time, ok bool)

GetUpdatedAt returns the value of the 'updated_at' attribute and a flag indicating if the attribute has a value.

Object modification timestamp.

func (*Escalation) GetUser

func (o *Escalation) GetUser() (value *User, ok bool)

GetUser returns the value of the 'user' attribute and a flag indicating if the attribute has a value.

func (*Escalation) HREF

func (o *Escalation) HREF() string

HREF returns the link to the object.

func (*Escalation) ID

func (o *Escalation) ID() string

ID returns the identifier of the object.

func (*Escalation) Kind

func (o *Escalation) Kind() string

Kind returns the name of the type of the object.

func (o *Escalation) Link() bool

Link returns true if this is a link.

func (*Escalation) UpdatedAt

func (o *Escalation) UpdatedAt() time.Time

UpdatedAt returns the value of the 'updated_at' attribute, or the zero value of the type if the attribute doesn't have a value.

Object modification timestamp.

func (*Escalation) User

func (o *Escalation) User() *User

User returns the value of the 'user' attribute, or the zero value of the type if the attribute doesn't have a value.

type EscalationBuilder

type EscalationBuilder struct {
	// contains filtered or unexported fields
}

Definition of a Web RCA escalation.

func NewEscalation

func NewEscalation() *EscalationBuilder

NewEscalation creates a new builder of 'escalation' objects.

func (*EscalationBuilder) Build

func (b *EscalationBuilder) Build() (object *Escalation, err error)

Build creates a 'escalation' object using the configuration stored in the builder.

func (*EscalationBuilder) Copy

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*EscalationBuilder) CreatedAt

func (b *EscalationBuilder) CreatedAt(value time.Time) *EscalationBuilder

CreatedAt sets the value of the 'created_at' attribute to the given value.

func (*EscalationBuilder) DeletedAt

func (b *EscalationBuilder) DeletedAt(value time.Time) *EscalationBuilder

DeletedAt sets the value of the 'deleted_at' attribute to the given value.

func (*EscalationBuilder) Empty

func (b *EscalationBuilder) Empty() bool

Empty returns true if the builder is empty, i.e. no attribute has a value.

func (*EscalationBuilder) HREF

func (b *EscalationBuilder) HREF(value string) *EscalationBuilder

HREF sets the link to the object.

func (*EscalationBuilder) ID

ID sets the identifier of the object.

func (b *EscalationBuilder) Link(value bool) *EscalationBuilder

Link sets the flag that indicates if this is a link.

func (*EscalationBuilder) UpdatedAt

func (b *EscalationBuilder) UpdatedAt(value time.Time) *EscalationBuilder

UpdatedAt sets the value of the 'updated_at' attribute to the given value.

func (*EscalationBuilder) User

User sets the value of the 'user' attribute to the given value.

Definition of a Web RCA user.

type EscalationList

type EscalationList struct {
	// contains filtered or unexported fields
}

EscalationList is a list of values of the 'escalation' type.

func (*EscalationList) Each

func (l *EscalationList) Each(f func(item *Escalation) bool)

Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*EscalationList) Empty

func (l *EscalationList) Empty() bool

Empty returns true if the list is empty.

func (*EscalationList) Get

func (l *EscalationList) Get(i int) *Escalation

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*EscalationList) GetHREF

func (l *EscalationList) GetHREF() (value string, ok bool)

GetHREF returns the link of the list and a flag indicating if the link has a value.

func (*EscalationList) HREF

func (l *EscalationList) HREF() string

HREF returns the link to the list.

func (*EscalationList) Items

func (l *EscalationList) Items() []*Escalation

Items returns the items of the list.

func (*EscalationList) Kind

func (l *EscalationList) Kind() string

Kind returns the name of the type of the object.

func (*EscalationList) Len

func (l *EscalationList) Len() int

Len returns the length of the list.

func (l *EscalationList) Link() bool

Link returns true iif this is a link.

func (*EscalationList) Range

func (l *EscalationList) Range(f func(index int, item *Escalation) bool)

Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*EscalationList) SetHREF

func (l *EscalationList) SetHREF(href string)

Items sets the items of the list.

func (*EscalationList) SetItems

func (l *EscalationList) SetItems(items []*Escalation)

Items sets the items of the list.

func (l *EscalationList) SetLink(link bool)

Items sets the items of the list.

func (*EscalationList) Slice

func (l *EscalationList) Slice() []*Escalation

Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.

If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.

type EscalationListBuilder

type EscalationListBuilder struct {
	// contains filtered or unexported fields
}

EscalationListBuilder contains the data and logic needed to build 'escalation' objects.

func NewEscalationList

func NewEscalationList() *EscalationListBuilder

NewEscalationList creates a new builder of 'escalation' objects.

func (*EscalationListBuilder) Build

func (b *EscalationListBuilder) Build() (list *EscalationList, err error)

Build creates a list of 'escalation' objects using the configuration stored in the builder.

func (*EscalationListBuilder) Copy

Copy copies the items of the given list into this builder, discarding any previous items.

func (*EscalationListBuilder) Empty

func (b *EscalationListBuilder) Empty() bool

Empty returns true if the list is empty.

func (*EscalationListBuilder) Items

Items sets the items of the list.

type Event

type Event struct {
	// contains filtered or unexported fields
}

Event represents the values of the 'event' type.

Definition of a Web RCA event.

func ReadEvent

func ReadEvent(iterator *jsoniter.Iterator) *Event

ReadEvent reads a value of the 'event' type from the given iterator.

func ReadEventList

func ReadEventList(iterator *jsoniter.Iterator) []*Event

ReadEventList reads list of values of the ”event' type from the given iterator.

func UnmarshalEvent

func UnmarshalEvent(source interface{}) (object *Event, err error)

UnmarshalEvent reads a value of the 'event' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalEventList

func UnmarshalEventList(source interface{}) (items []*Event, err error)

UnmarshalEventList reads a list of values of the 'event' type from the given source, which can be a slice of bytes, a string or a reader.

func (*Event) CreatedAt

func (o *Event) CreatedAt() time.Time

CreatedAt returns the value of the 'created_at' attribute, or the zero value of the type if the attribute doesn't have a value.

Object creation timestamp.

func (*Event) Creator

func (o *Event) Creator() *User

Creator returns the value of the 'creator' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Event) DeletedAt

func (o *Event) DeletedAt() time.Time

DeletedAt returns the value of the 'deleted_at' attribute, or the zero value of the type if the attribute doesn't have a value.

Object deletion timestamp.

func (*Event) Empty

func (o *Event) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*Event) Escalation

func (o *Event) Escalation() *Escalation

Escalation returns the value of the 'escalation' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Event) EventType

func (o *Event) EventType() string

EventType returns the value of the 'event_type' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Event) ExternalReferenceUrl

func (o *Event) ExternalReferenceUrl() string

ExternalReferenceUrl returns the value of the 'external_reference_url' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Event) FollowUp

func (o *Event) FollowUp() *FollowUp

FollowUp returns the value of the 'follow_up' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Event) FollowUpChange

func (o *Event) FollowUpChange() *FollowUpChange

FollowUpChange returns the value of the 'follow_up_change' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Event) GetCreatedAt

func (o *Event) GetCreatedAt() (value time.Time, ok bool)

GetCreatedAt returns the value of the 'created_at' attribute and a flag indicating if the attribute has a value.

Object creation timestamp.

func (*Event) GetCreator

func (o *Event) GetCreator() (value *User, ok bool)

GetCreator returns the value of the 'creator' attribute and a flag indicating if the attribute has a value.

func (*Event) GetDeletedAt

func (o *Event) GetDeletedAt() (value time.Time, ok bool)

GetDeletedAt returns the value of the 'deleted_at' attribute and a flag indicating if the attribute has a value.

Object deletion timestamp.

func (*Event) GetEscalation

func (o *Event) GetEscalation() (value *Escalation, ok bool)

GetEscalation returns the value of the 'escalation' attribute and a flag indicating if the attribute has a value.

func (*Event) GetEventType

func (o *Event) GetEventType() (value string, ok bool)

GetEventType returns the value of the 'event_type' attribute and a flag indicating if the attribute has a value.

func (*Event) GetExternalReferenceUrl

func (o *Event) GetExternalReferenceUrl() (value string, ok bool)

GetExternalReferenceUrl returns the value of the 'external_reference_url' attribute and a flag indicating if the attribute has a value.

func (*Event) GetFollowUp

func (o *Event) GetFollowUp() (value *FollowUp, ok bool)

GetFollowUp returns the value of the 'follow_up' attribute and a flag indicating if the attribute has a value.

func (*Event) GetFollowUpChange

func (o *Event) GetFollowUpChange() (value *FollowUpChange, ok bool)

GetFollowUpChange returns the value of the 'follow_up_change' attribute and a flag indicating if the attribute has a value.

func (*Event) GetHREF

func (o *Event) GetHREF() (value string, ok bool)

GetHREF returns the link of the object and a flag indicating if the link has a value.

func (*Event) GetHandoff

func (o *Event) GetHandoff() (value *Handoff, ok bool)

GetHandoff returns the value of the 'handoff' attribute and a flag indicating if the attribute has a value.

func (*Event) GetID

func (o *Event) GetID() (value string, ok bool)

GetID returns the identifier of the object and a flag indicating if the identifier has a value.

func (*Event) GetIncident

func (o *Event) GetIncident() (value *Incident, ok bool)

GetIncident returns the value of the 'incident' attribute and a flag indicating if the attribute has a value.

func (*Event) GetNote

func (o *Event) GetNote() (value string, ok bool)

GetNote returns the value of the 'note' attribute and a flag indicating if the attribute has a value.

func (*Event) GetStatusChange

func (o *Event) GetStatusChange() (value *StatusChange, ok bool)

GetStatusChange returns the value of the 'status_change' attribute and a flag indicating if the attribute has a value.

func (*Event) GetUpdatedAt

func (o *Event) GetUpdatedAt() (value time.Time, ok bool)

GetUpdatedAt returns the value of the 'updated_at' attribute and a flag indicating if the attribute has a value.

Object modification timestamp.

func (*Event) HREF

func (o *Event) HREF() string

HREF returns the link to the object.

func (*Event) Handoff

func (o *Event) Handoff() *Handoff

Handoff returns the value of the 'handoff' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Event) ID

func (o *Event) ID() string

ID returns the identifier of the object.

func (*Event) Incident

func (o *Event) Incident() *Incident

Incident returns the value of the 'incident' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Event) Kind

func (o *Event) Kind() string

Kind returns the name of the type of the object.

func (o *Event) Link() bool

Link returns true if this is a link.

func (*Event) Note

func (o *Event) Note() string

Note returns the value of the 'note' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Event) StatusChange

func (o *Event) StatusChange() *StatusChange

StatusChange returns the value of the 'status_change' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Event) UpdatedAt

func (o *Event) UpdatedAt() time.Time

UpdatedAt returns the value of the 'updated_at' attribute, or the zero value of the type if the attribute doesn't have a value.

Object modification timestamp.

type EventBuilder

type EventBuilder struct {
	// contains filtered or unexported fields
}

Definition of a Web RCA event.

func NewEvent

func NewEvent() *EventBuilder

NewEvent creates a new builder of 'event' objects.

func (*EventBuilder) Build

func (b *EventBuilder) Build() (object *Event, err error)

Build creates a 'event' object using the configuration stored in the builder.

func (*EventBuilder) Copy

func (b *EventBuilder) Copy(object *Event) *EventBuilder

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*EventBuilder) CreatedAt

func (b *EventBuilder) CreatedAt(value time.Time) *EventBuilder

CreatedAt sets the value of the 'created_at' attribute to the given value.

func (*EventBuilder) Creator

func (b *EventBuilder) Creator(value *UserBuilder) *EventBuilder

Creator sets the value of the 'creator' attribute to the given value.

Definition of a Web RCA user.

func (*EventBuilder) DeletedAt

func (b *EventBuilder) DeletedAt(value time.Time) *EventBuilder

DeletedAt sets the value of the 'deleted_at' attribute to the given value.

func (*EventBuilder) Empty

func (b *EventBuilder) Empty() bool

Empty returns true if the builder is empty, i.e. no attribute has a value.

func (*EventBuilder) Escalation

func (b *EventBuilder) Escalation(value *EscalationBuilder) *EventBuilder

Escalation sets the value of the 'escalation' attribute to the given value.

Definition of a Web RCA escalation.

func (*EventBuilder) EventType

func (b *EventBuilder) EventType(value string) *EventBuilder

EventType sets the value of the 'event_type' attribute to the given value.

func (*EventBuilder) ExternalReferenceUrl

func (b *EventBuilder) ExternalReferenceUrl(value string) *EventBuilder

ExternalReferenceUrl sets the value of the 'external_reference_url' attribute to the given value.

func (*EventBuilder) FollowUp

func (b *EventBuilder) FollowUp(value *FollowUpBuilder) *EventBuilder

FollowUp sets the value of the 'follow_up' attribute to the given value.

Definition of a Web RCA event.

func (*EventBuilder) FollowUpChange

func (b *EventBuilder) FollowUpChange(value *FollowUpChangeBuilder) *EventBuilder

FollowUpChange sets the value of the 'follow_up_change' attribute to the given value.

Definition of a Web RCA event.

func (*EventBuilder) HREF

func (b *EventBuilder) HREF(value string) *EventBuilder

HREF sets the link to the object.

func (*EventBuilder) Handoff

func (b *EventBuilder) Handoff(value *HandoffBuilder) *EventBuilder

Handoff sets the value of the 'handoff' attribute to the given value.

Definition of a Web RCA handoff.

func (*EventBuilder) ID

func (b *EventBuilder) ID(value string) *EventBuilder

ID sets the identifier of the object.

func (*EventBuilder) Incident

func (b *EventBuilder) Incident(value *IncidentBuilder) *EventBuilder

Incident sets the value of the 'incident' attribute to the given value.

Definition of a Web RCA incident.

func (b *EventBuilder) Link(value bool) *EventBuilder

Link sets the flag that indicates if this is a link.

func (*EventBuilder) Note

func (b *EventBuilder) Note(value string) *EventBuilder

Note sets the value of the 'note' attribute to the given value.

func (*EventBuilder) StatusChange

func (b *EventBuilder) StatusChange(value *StatusChangeBuilder) *EventBuilder

StatusChange sets the value of the 'status_change' attribute to the given value.

Definition of a Web RCA event.

func (*EventBuilder) UpdatedAt

func (b *EventBuilder) UpdatedAt(value time.Time) *EventBuilder

UpdatedAt sets the value of the 'updated_at' attribute to the given value.

type EventList

type EventList struct {
	// contains filtered or unexported fields
}

EventList is a list of values of the 'event' type.

func (*EventList) Each

func (l *EventList) Each(f func(item *Event) bool)

Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*EventList) Empty

func (l *EventList) Empty() bool

Empty returns true if the list is empty.

func (*EventList) Get

func (l *EventList) Get(i int) *Event

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*EventList) GetHREF

func (l *EventList) GetHREF() (value string, ok bool)

GetHREF returns the link of the list and a flag indicating if the link has a value.

func (*EventList) HREF

func (l *EventList) HREF() string

HREF returns the link to the list.

func (*EventList) Items

func (l *EventList) Items() []*Event

Items returns the items of the list.

func (*EventList) Kind

func (l *EventList) Kind() string

Kind returns the name of the type of the object.

func (*EventList) Len

func (l *EventList) Len() int

Len returns the length of the list.

func (l *EventList) Link() bool

Link returns true iif this is a link.

func (*EventList) Range

func (l *EventList) Range(f func(index int, item *Event) bool)

Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*EventList) SetHREF

func (l *EventList) SetHREF(href string)

Items sets the items of the list.

func (*EventList) SetItems

func (l *EventList) SetItems(items []*Event)

Items sets the items of the list.

func (l *EventList) SetLink(link bool)

Items sets the items of the list.

func (*EventList) Slice

func (l *EventList) Slice() []*Event

Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.

If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.

type EventListBuilder

type EventListBuilder struct {
	// contains filtered or unexported fields
}

EventListBuilder contains the data and logic needed to build 'event' objects.

func NewEventList

func NewEventList() *EventListBuilder

NewEventList creates a new builder of 'event' objects.

func (*EventListBuilder) Build

func (b *EventListBuilder) Build() (list *EventList, err error)

Build creates a list of 'event' objects using the configuration stored in the builder.

func (*EventListBuilder) Copy

Copy copies the items of the given list into this builder, discarding any previous items.

func (*EventListBuilder) Empty

func (b *EventListBuilder) Empty() bool

Empty returns true if the list is empty.

func (*EventListBuilder) Items

func (b *EventListBuilder) Items(values ...*EventBuilder) *EventListBuilder

Items sets the items of the list.

type FollowUp

type FollowUp struct {
	// contains filtered or unexported fields
}

FollowUp represents the values of the 'follow_up' type.

Definition of a Web RCA event.

func ReadFollowUp

func ReadFollowUp(iterator *jsoniter.Iterator) *FollowUp

ReadFollowUp reads a value of the 'follow_up' type from the given iterator.

func ReadFollowUpList

func ReadFollowUpList(iterator *jsoniter.Iterator) []*FollowUp

ReadFollowUpList reads list of values of the ”follow_up' type from the given iterator.

func UnmarshalFollowUp

func UnmarshalFollowUp(source interface{}) (object *FollowUp, err error)

UnmarshalFollowUp reads a value of the 'follow_up' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalFollowUpList

func UnmarshalFollowUpList(source interface{}) (items []*FollowUp, err error)

UnmarshalFollowUpList reads a list of values of the 'follow_up' type from the given source, which can be a slice of bytes, a string or a reader.

func (*FollowUp) Archived

func (o *FollowUp) Archived() bool

Archived returns the value of the 'archived' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*FollowUp) CreatedAt

func (o *FollowUp) CreatedAt() time.Time

CreatedAt returns the value of the 'created_at' attribute, or the zero value of the type if the attribute doesn't have a value.

Object creation timestamp.

func (*FollowUp) DeletedAt

func (o *FollowUp) DeletedAt() time.Time

DeletedAt returns the value of the 'deleted_at' attribute, or the zero value of the type if the attribute doesn't have a value.

Object deletion timestamp.

func (*FollowUp) Done

func (o *FollowUp) Done() bool

Done returns the value of the 'done' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*FollowUp) Empty

func (o *FollowUp) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*FollowUp) FollowUpType

func (o *FollowUp) FollowUpType() string

FollowUpType returns the value of the 'follow_up_type' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*FollowUp) GetArchived

func (o *FollowUp) GetArchived() (value bool, ok bool)

GetArchived returns the value of the 'archived' attribute and a flag indicating if the attribute has a value.

func (*FollowUp) GetCreatedAt

func (o *FollowUp) GetCreatedAt() (value time.Time, ok bool)

GetCreatedAt returns the value of the 'created_at' attribute and a flag indicating if the attribute has a value.

Object creation timestamp.

func (*FollowUp) GetDeletedAt

func (o *FollowUp) GetDeletedAt() (value time.Time, ok bool)

GetDeletedAt returns the value of the 'deleted_at' attribute and a flag indicating if the attribute has a value.

Object deletion timestamp.

func (*FollowUp) GetDone

func (o *FollowUp) GetDone() (value bool, ok bool)

GetDone returns the value of the 'done' attribute and a flag indicating if the attribute has a value.

func (*FollowUp) GetFollowUpType

func (o *FollowUp) GetFollowUpType() (value string, ok bool)

GetFollowUpType returns the value of the 'follow_up_type' attribute and a flag indicating if the attribute has a value.

func (*FollowUp) GetHREF

func (o *FollowUp) GetHREF() (value string, ok bool)

GetHREF returns the link of the object and a flag indicating if the link has a value.

func (*FollowUp) GetID

func (o *FollowUp) GetID() (value string, ok bool)

GetID returns the identifier of the object and a flag indicating if the identifier has a value.

func (*FollowUp) GetIncident

func (o *FollowUp) GetIncident() (value *Incident, ok bool)

GetIncident returns the value of the 'incident' attribute and a flag indicating if the attribute has a value.

func (*FollowUp) GetOwner

func (o *FollowUp) GetOwner() (value string, ok bool)

GetOwner returns the value of the 'owner' attribute and a flag indicating if the attribute has a value.

func (*FollowUp) GetPriority

func (o *FollowUp) GetPriority() (value string, ok bool)

GetPriority returns the value of the 'priority' attribute and a flag indicating if the attribute has a value.

func (*FollowUp) GetStatus

func (o *FollowUp) GetStatus() (value string, ok bool)

GetStatus returns the value of the 'status' attribute and a flag indicating if the attribute has a value.

func (*FollowUp) GetTitle

func (o *FollowUp) GetTitle() (value string, ok bool)

GetTitle returns the value of the 'title' attribute and a flag indicating if the attribute has a value.

func (*FollowUp) GetUpdatedAt

func (o *FollowUp) GetUpdatedAt() (value time.Time, ok bool)

GetUpdatedAt returns the value of the 'updated_at' attribute and a flag indicating if the attribute has a value.

Object modification timestamp.

func (*FollowUp) GetUrl

func (o *FollowUp) GetUrl() (value string, ok bool)

GetUrl returns the value of the 'url' attribute and a flag indicating if the attribute has a value.

func (*FollowUp) GetWorkedAt

func (o *FollowUp) GetWorkedAt() (value time.Time, ok bool)

GetWorkedAt returns the value of the 'worked_at' attribute and a flag indicating if the attribute has a value.

func (*FollowUp) HREF

func (o *FollowUp) HREF() string

HREF returns the link to the object.

func (*FollowUp) ID

func (o *FollowUp) ID() string

ID returns the identifier of the object.

func (*FollowUp) Incident

func (o *FollowUp) Incident() *Incident

Incident returns the value of the 'incident' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*FollowUp) Kind

func (o *FollowUp) Kind() string

Kind returns the name of the type of the object.

func (o *FollowUp) Link() bool

Link returns true if this is a link.

func (*FollowUp) Owner

func (o *FollowUp) Owner() string

Owner returns the value of the 'owner' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*FollowUp) Priority

func (o *FollowUp) Priority() string

Priority returns the value of the 'priority' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*FollowUp) Status

func (o *FollowUp) Status() string

Status returns the value of the 'status' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*FollowUp) Title

func (o *FollowUp) Title() string

Title returns the value of the 'title' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*FollowUp) UpdatedAt

func (o *FollowUp) UpdatedAt() time.Time

UpdatedAt returns the value of the 'updated_at' attribute, or the zero value of the type if the attribute doesn't have a value.

Object modification timestamp.

func (*FollowUp) Url

func (o *FollowUp) Url() string

Url returns the value of the 'url' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*FollowUp) WorkedAt

func (o *FollowUp) WorkedAt() time.Time

WorkedAt returns the value of the 'worked_at' attribute, or the zero value of the type if the attribute doesn't have a value.

type FollowUpBuilder

type FollowUpBuilder struct {
	// contains filtered or unexported fields
}

Definition of a Web RCA event.

func NewFollowUp

func NewFollowUp() *FollowUpBuilder

NewFollowUp creates a new builder of 'follow_up' objects.

func (*FollowUpBuilder) Archived

func (b *FollowUpBuilder) Archived(value bool) *FollowUpBuilder

Archived sets the value of the 'archived' attribute to the given value.

func (*FollowUpBuilder) Build

func (b *FollowUpBuilder) Build() (object *FollowUp, err error)

Build creates a 'follow_up' object using the configuration stored in the builder.

func (*FollowUpBuilder) Copy

func (b *FollowUpBuilder) Copy(object *FollowUp) *FollowUpBuilder

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*FollowUpBuilder) CreatedAt

func (b *FollowUpBuilder) CreatedAt(value time.Time) *FollowUpBuilder

CreatedAt sets the value of the 'created_at' attribute to the given value.

func (*FollowUpBuilder) DeletedAt

func (b *FollowUpBuilder) DeletedAt(value time.Time) *FollowUpBuilder

DeletedAt sets the value of the 'deleted_at' attribute to the given value.

func (*FollowUpBuilder) Done

func (b *FollowUpBuilder) Done(value bool) *FollowUpBuilder

Done sets the value of the 'done' attribute to the given value.

func (*FollowUpBuilder) Empty

func (b *FollowUpBuilder) Empty() bool

Empty returns true if the builder is empty, i.e. no attribute has a value.

func (*FollowUpBuilder) FollowUpType

func (b *FollowUpBuilder) FollowUpType(value string) *FollowUpBuilder

FollowUpType sets the value of the 'follow_up_type' attribute to the given value.

func (*FollowUpBuilder) HREF

func (b *FollowUpBuilder) HREF(value string) *FollowUpBuilder

HREF sets the link to the object.

func (*FollowUpBuilder) ID

func (b *FollowUpBuilder) ID(value string) *FollowUpBuilder

ID sets the identifier of the object.

func (*FollowUpBuilder) Incident

func (b *FollowUpBuilder) Incident(value *IncidentBuilder) *FollowUpBuilder

Incident sets the value of the 'incident' attribute to the given value.

Definition of a Web RCA incident.

func (b *FollowUpBuilder) Link(value bool) *FollowUpBuilder

Link sets the flag that indicates if this is a link.

func (*FollowUpBuilder) Owner

func (b *FollowUpBuilder) Owner(value string) *FollowUpBuilder

Owner sets the value of the 'owner' attribute to the given value.

func (*FollowUpBuilder) Priority

func (b *FollowUpBuilder) Priority(value string) *FollowUpBuilder

Priority sets the value of the 'priority' attribute to the given value.

func (*FollowUpBuilder) Status

func (b *FollowUpBuilder) Status(value string) *FollowUpBuilder

Status sets the value of the 'status' attribute to the given value.

func (*FollowUpBuilder) Title

func (b *FollowUpBuilder) Title(value string) *FollowUpBuilder

Title sets the value of the 'title' attribute to the given value.

func (*FollowUpBuilder) UpdatedAt

func (b *FollowUpBuilder) UpdatedAt(value time.Time) *FollowUpBuilder

UpdatedAt sets the value of the 'updated_at' attribute to the given value.

func (*FollowUpBuilder) Url

func (b *FollowUpBuilder) Url(value string) *FollowUpBuilder

Url sets the value of the 'url' attribute to the given value.

func (*FollowUpBuilder) WorkedAt

func (b *FollowUpBuilder) WorkedAt(value time.Time) *FollowUpBuilder

WorkedAt sets the value of the 'worked_at' attribute to the given value.

type FollowUpChange

type FollowUpChange struct {
	// contains filtered or unexported fields
}

FollowUpChange represents the values of the 'follow_up_change' type.

Definition of a Web RCA event.

func ReadFollowUpChange

func ReadFollowUpChange(iterator *jsoniter.Iterator) *FollowUpChange

ReadFollowUpChange reads a value of the 'follow_up_change' type from the given iterator.

func ReadFollowUpChangeList

func ReadFollowUpChangeList(iterator *jsoniter.Iterator) []*FollowUpChange

ReadFollowUpChangeList reads list of values of the ”follow_up_change' type from the given iterator.

func UnmarshalFollowUpChange

func UnmarshalFollowUpChange(source interface{}) (object *FollowUpChange, err error)

UnmarshalFollowUpChange reads a value of the 'follow_up_change' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalFollowUpChangeList

func UnmarshalFollowUpChangeList(source interface{}) (items []*FollowUpChange, err error)

UnmarshalFollowUpChangeList reads a list of values of the 'follow_up_change' type from the given source, which can be a slice of bytes, a string or a reader.

func (*FollowUpChange) CreatedAt

func (o *FollowUpChange) CreatedAt() time.Time

CreatedAt returns the value of the 'created_at' attribute, or the zero value of the type if the attribute doesn't have a value.

Object creation timestamp.

func (*FollowUpChange) DeletedAt

func (o *FollowUpChange) DeletedAt() time.Time

DeletedAt returns the value of the 'deleted_at' attribute, or the zero value of the type if the attribute doesn't have a value.

Object deletion timestamp.

func (*FollowUpChange) Empty

func (o *FollowUpChange) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*FollowUpChange) FollowUp

func (o *FollowUpChange) FollowUp() *FollowUp

FollowUp returns the value of the 'follow_up' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*FollowUpChange) GetCreatedAt

func (o *FollowUpChange) GetCreatedAt() (value time.Time, ok bool)

GetCreatedAt returns the value of the 'created_at' attribute and a flag indicating if the attribute has a value.

Object creation timestamp.

func (*FollowUpChange) GetDeletedAt

func (o *FollowUpChange) GetDeletedAt() (value time.Time, ok bool)

GetDeletedAt returns the value of the 'deleted_at' attribute and a flag indicating if the attribute has a value.

Object deletion timestamp.

func (*FollowUpChange) GetFollowUp

func (o *FollowUpChange) GetFollowUp() (value *FollowUp, ok bool)

GetFollowUp returns the value of the 'follow_up' attribute and a flag indicating if the attribute has a value.

func (*FollowUpChange) GetHREF

func (o *FollowUpChange) GetHREF() (value string, ok bool)

GetHREF returns the link of the object and a flag indicating if the link has a value.

func (*FollowUpChange) GetID

func (o *FollowUpChange) GetID() (value string, ok bool)

GetID returns the identifier of the object and a flag indicating if the identifier has a value.

func (*FollowUpChange) GetStatus

func (o *FollowUpChange) GetStatus() (value interface{}, ok bool)

GetStatus returns the value of the 'status' attribute and a flag indicating if the attribute has a value.

func (*FollowUpChange) GetUpdatedAt

func (o *FollowUpChange) GetUpdatedAt() (value time.Time, ok bool)

GetUpdatedAt returns the value of the 'updated_at' attribute and a flag indicating if the attribute has a value.

Object modification timestamp.

func (*FollowUpChange) HREF

func (o *FollowUpChange) HREF() string

HREF returns the link to the object.

func (*FollowUpChange) ID

func (o *FollowUpChange) ID() string

ID returns the identifier of the object.

func (*FollowUpChange) Kind

func (o *FollowUpChange) Kind() string

Kind returns the name of the type of the object.

func (o *FollowUpChange) Link() bool

Link returns true if this is a link.

func (*FollowUpChange) Status

func (o *FollowUpChange) Status() interface{}

Status returns the value of the 'status' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*FollowUpChange) UpdatedAt

func (o *FollowUpChange) UpdatedAt() time.Time

UpdatedAt returns the value of the 'updated_at' attribute, or the zero value of the type if the attribute doesn't have a value.

Object modification timestamp.

type FollowUpChangeBuilder

type FollowUpChangeBuilder struct {
	// contains filtered or unexported fields
}

Definition of a Web RCA event.

func NewFollowUpChange

func NewFollowUpChange() *FollowUpChangeBuilder

NewFollowUpChange creates a new builder of 'follow_up_change' objects.

func (*FollowUpChangeBuilder) Build

func (b *FollowUpChangeBuilder) Build() (object *FollowUpChange, err error)

Build creates a 'follow_up_change' object using the configuration stored in the builder.

func (*FollowUpChangeBuilder) Copy

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*FollowUpChangeBuilder) CreatedAt

CreatedAt sets the value of the 'created_at' attribute to the given value.

func (*FollowUpChangeBuilder) DeletedAt

DeletedAt sets the value of the 'deleted_at' attribute to the given value.

func (*FollowUpChangeBuilder) Empty

func (b *FollowUpChangeBuilder) Empty() bool

Empty returns true if the builder is empty, i.e. no attribute has a value.

func (*FollowUpChangeBuilder) FollowUp

FollowUp sets the value of the 'follow_up' attribute to the given value.

Definition of a Web RCA event.

func (*FollowUpChangeBuilder) HREF

HREF sets the link to the object.

func (*FollowUpChangeBuilder) ID

ID sets the identifier of the object.

Link sets the flag that indicates if this is a link.

func (*FollowUpChangeBuilder) Status

func (b *FollowUpChangeBuilder) Status(value interface{}) *FollowUpChangeBuilder

Status sets the value of the 'status' attribute to the given value.

func (*FollowUpChangeBuilder) UpdatedAt

UpdatedAt sets the value of the 'updated_at' attribute to the given value.

type FollowUpChangeList

type FollowUpChangeList struct {
	// contains filtered or unexported fields
}

FollowUpChangeList is a list of values of the 'follow_up_change' type.

func (*FollowUpChangeList) Each

func (l *FollowUpChangeList) Each(f func(item *FollowUpChange) bool)

Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*FollowUpChangeList) Empty

func (l *FollowUpChangeList) Empty() bool

Empty returns true if the list is empty.

func (*FollowUpChangeList) Get

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*FollowUpChangeList) GetHREF

func (l *FollowUpChangeList) GetHREF() (value string, ok bool)

GetHREF returns the link of the list and a flag indicating if the link has a value.

func (*FollowUpChangeList) HREF

func (l *FollowUpChangeList) HREF() string

HREF returns the link to the list.

func (*FollowUpChangeList) Items

func (l *FollowUpChangeList) Items() []*FollowUpChange

Items returns the items of the list.

func (*FollowUpChangeList) Kind

func (l *FollowUpChangeList) Kind() string

Kind returns the name of the type of the object.

func (*FollowUpChangeList) Len

func (l *FollowUpChangeList) Len() int

Len returns the length of the list.

func (l *FollowUpChangeList) Link() bool

Link returns true iif this is a link.

func (*FollowUpChangeList) Range

func (l *FollowUpChangeList) Range(f func(index int, item *FollowUpChange) bool)

Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*FollowUpChangeList) SetHREF

func (l *FollowUpChangeList) SetHREF(href string)

Items sets the items of the list.

func (*FollowUpChangeList) SetItems

func (l *FollowUpChangeList) SetItems(items []*FollowUpChange)

Items sets the items of the list.

func (l *FollowUpChangeList) SetLink(link bool)

Items sets the items of the list.

func (*FollowUpChangeList) Slice

func (l *FollowUpChangeList) Slice() []*FollowUpChange

Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.

If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.

type FollowUpChangeListBuilder

type FollowUpChangeListBuilder struct {
	// contains filtered or unexported fields
}

FollowUpChangeListBuilder contains the data and logic needed to build 'follow_up_change' objects.

func NewFollowUpChangeList

func NewFollowUpChangeList() *FollowUpChangeListBuilder

NewFollowUpChangeList creates a new builder of 'follow_up_change' objects.

func (*FollowUpChangeListBuilder) Build

func (b *FollowUpChangeListBuilder) Build() (list *FollowUpChangeList, err error)

Build creates a list of 'follow_up_change' objects using the configuration stored in the builder.

func (*FollowUpChangeListBuilder) Copy

Copy copies the items of the given list into this builder, discarding any previous items.

func (*FollowUpChangeListBuilder) Empty

func (b *FollowUpChangeListBuilder) Empty() bool

Empty returns true if the list is empty.

func (*FollowUpChangeListBuilder) Items

Items sets the items of the list.

type FollowUpList

type FollowUpList struct {
	// contains filtered or unexported fields
}

FollowUpList is a list of values of the 'follow_up' type.

func (*FollowUpList) Each

func (l *FollowUpList) Each(f func(item *FollowUp) bool)

Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*FollowUpList) Empty

func (l *FollowUpList) Empty() bool

Empty returns true if the list is empty.

func (*FollowUpList) Get

func (l *FollowUpList) Get(i int) *FollowUp

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*FollowUpList) GetHREF

func (l *FollowUpList) GetHREF() (value string, ok bool)

GetHREF returns the link of the list and a flag indicating if the link has a value.

func (*FollowUpList) HREF

func (l *FollowUpList) HREF() string

HREF returns the link to the list.

func (*FollowUpList) Items

func (l *FollowUpList) Items() []*FollowUp

Items returns the items of the list.

func (*FollowUpList) Kind

func (l *FollowUpList) Kind() string

Kind returns the name of the type of the object.

func (*FollowUpList) Len

func (l *FollowUpList) Len() int

Len returns the length of the list.

func (l *FollowUpList) Link() bool

Link returns true iif this is a link.

func (*FollowUpList) Range

func (l *FollowUpList) Range(f func(index int, item *FollowUp) bool)

Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*FollowUpList) SetHREF

func (l *FollowUpList) SetHREF(href string)

Items sets the items of the list.

func (*FollowUpList) SetItems

func (l *FollowUpList) SetItems(items []*FollowUp)

Items sets the items of the list.

func (l *FollowUpList) SetLink(link bool)

Items sets the items of the list.

func (*FollowUpList) Slice

func (l *FollowUpList) Slice() []*FollowUp

Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.

If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.

type FollowUpListBuilder

type FollowUpListBuilder struct {
	// contains filtered or unexported fields
}

FollowUpListBuilder contains the data and logic needed to build 'follow_up' objects.

func NewFollowUpList

func NewFollowUpList() *FollowUpListBuilder

NewFollowUpList creates a new builder of 'follow_up' objects.

func (*FollowUpListBuilder) Build

func (b *FollowUpListBuilder) Build() (list *FollowUpList, err error)

Build creates a list of 'follow_up' objects using the configuration stored in the builder.

func (*FollowUpListBuilder) Copy

Copy copies the items of the given list into this builder, discarding any previous items.

func (*FollowUpListBuilder) Empty

func (b *FollowUpListBuilder) Empty() bool

Empty returns true if the list is empty.

func (*FollowUpListBuilder) Items

Items sets the items of the list.

type Handoff

type Handoff struct {
	// contains filtered or unexported fields
}

Handoff represents the values of the 'handoff' type.

Definition of a Web RCA handoff.

func ReadHandoff

func ReadHandoff(iterator *jsoniter.Iterator) *Handoff

ReadHandoff reads a value of the 'handoff' type from the given iterator.

func ReadHandoffList

func ReadHandoffList(iterator *jsoniter.Iterator) []*Handoff

ReadHandoffList reads list of values of the ”handoff' type from the given iterator.

func UnmarshalHandoff

func UnmarshalHandoff(source interface{}) (object *Handoff, err error)

UnmarshalHandoff reads a value of the 'handoff' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalHandoffList

func UnmarshalHandoffList(source interface{}) (items []*Handoff, err error)

UnmarshalHandoffList reads a list of values of the 'handoff' type from the given source, which can be a slice of bytes, a string or a reader.

func (*Handoff) CreatedAt

func (o *Handoff) CreatedAt() time.Time

CreatedAt returns the value of the 'created_at' attribute, or the zero value of the type if the attribute doesn't have a value.

Object creation timestamp.

func (*Handoff) DeletedAt

func (o *Handoff) DeletedAt() time.Time

DeletedAt returns the value of the 'deleted_at' attribute, or the zero value of the type if the attribute doesn't have a value.

Object deletion timestamp.

func (*Handoff) Empty

func (o *Handoff) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*Handoff) GetCreatedAt

func (o *Handoff) GetCreatedAt() (value time.Time, ok bool)

GetCreatedAt returns the value of the 'created_at' attribute and a flag indicating if the attribute has a value.

Object creation timestamp.

func (*Handoff) GetDeletedAt

func (o *Handoff) GetDeletedAt() (value time.Time, ok bool)

GetDeletedAt returns the value of the 'deleted_at' attribute and a flag indicating if the attribute has a value.

Object deletion timestamp.

func (*Handoff) GetHREF

func (o *Handoff) GetHREF() (value string, ok bool)

GetHREF returns the link of the object and a flag indicating if the link has a value.

func (*Handoff) GetHandoffFrom

func (o *Handoff) GetHandoffFrom() (value *User, ok bool)

GetHandoffFrom returns the value of the 'handoff_from' attribute and a flag indicating if the attribute has a value.

func (*Handoff) GetHandoffTo

func (o *Handoff) GetHandoffTo() (value *User, ok bool)

GetHandoffTo returns the value of the 'handoff_to' attribute and a flag indicating if the attribute has a value.

func (*Handoff) GetHandoffType

func (o *Handoff) GetHandoffType() (value string, ok bool)

GetHandoffType returns the value of the 'handoff_type' attribute and a flag indicating if the attribute has a value.

func (*Handoff) GetID

func (o *Handoff) GetID() (value string, ok bool)

GetID returns the identifier of the object and a flag indicating if the identifier has a value.

func (*Handoff) GetUpdatedAt

func (o *Handoff) GetUpdatedAt() (value time.Time, ok bool)

GetUpdatedAt returns the value of the 'updated_at' attribute and a flag indicating if the attribute has a value.

Object modification timestamp.

func (*Handoff) HREF

func (o *Handoff) HREF() string

HREF returns the link to the object.

func (*Handoff) HandoffFrom

func (o *Handoff) HandoffFrom() *User

HandoffFrom returns the value of the 'handoff_from' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Handoff) HandoffTo

func (o *Handoff) HandoffTo() *User

HandoffTo returns the value of the 'handoff_to' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Handoff) HandoffType

func (o *Handoff) HandoffType() string

HandoffType returns the value of the 'handoff_type' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Handoff) ID

func (o *Handoff) ID() string

ID returns the identifier of the object.

func (*Handoff) Kind

func (o *Handoff) Kind() string

Kind returns the name of the type of the object.

func (o *Handoff) Link() bool

Link returns true if this is a link.

func (*Handoff) UpdatedAt

func (o *Handoff) UpdatedAt() time.Time

UpdatedAt returns the value of the 'updated_at' attribute, or the zero value of the type if the attribute doesn't have a value.

Object modification timestamp.

type HandoffBuilder

type HandoffBuilder struct {
	// contains filtered or unexported fields
}

Definition of a Web RCA handoff.

func NewHandoff

func NewHandoff() *HandoffBuilder

NewHandoff creates a new builder of 'handoff' objects.

func (*HandoffBuilder) Build

func (b *HandoffBuilder) Build() (object *Handoff, err error)

Build creates a 'handoff' object using the configuration stored in the builder.

func (*HandoffBuilder) Copy

func (b *HandoffBuilder) Copy(object *Handoff) *HandoffBuilder

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*HandoffBuilder) CreatedAt

func (b *HandoffBuilder) CreatedAt(value time.Time) *HandoffBuilder

CreatedAt sets the value of the 'created_at' attribute to the given value.

func (*HandoffBuilder) DeletedAt

func (b *HandoffBuilder) DeletedAt(value time.Time) *HandoffBuilder

DeletedAt sets the value of the 'deleted_at' attribute to the given value.

func (*HandoffBuilder) Empty

func (b *HandoffBuilder) Empty() bool

Empty returns true if the builder is empty, i.e. no attribute has a value.

func (*HandoffBuilder) HREF

func (b *HandoffBuilder) HREF(value string) *HandoffBuilder

HREF sets the link to the object.

func (*HandoffBuilder) HandoffFrom

func (b *HandoffBuilder) HandoffFrom(value *UserBuilder) *HandoffBuilder

HandoffFrom sets the value of the 'handoff_from' attribute to the given value.

Definition of a Web RCA user.

func (*HandoffBuilder) HandoffTo

func (b *HandoffBuilder) HandoffTo(value *UserBuilder) *HandoffBuilder

HandoffTo sets the value of the 'handoff_to' attribute to the given value.

Definition of a Web RCA user.

func (*HandoffBuilder) HandoffType

func (b *HandoffBuilder) HandoffType(value string) *HandoffBuilder

HandoffType sets the value of the 'handoff_type' attribute to the given value.

func (*HandoffBuilder) ID

func (b *HandoffBuilder) ID(value string) *HandoffBuilder

ID sets the identifier of the object.

func (b *HandoffBuilder) Link(value bool) *HandoffBuilder

Link sets the flag that indicates if this is a link.

func (*HandoffBuilder) UpdatedAt

func (b *HandoffBuilder) UpdatedAt(value time.Time) *HandoffBuilder

UpdatedAt sets the value of the 'updated_at' attribute to the given value.

type HandoffList

type HandoffList struct {
	// contains filtered or unexported fields
}

HandoffList is a list of values of the 'handoff' type.

func (*HandoffList) Each

func (l *HandoffList) Each(f func(item *Handoff) bool)

Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*HandoffList) Empty

func (l *HandoffList) Empty() bool

Empty returns true if the list is empty.

func (*HandoffList) Get

func (l *HandoffList) Get(i int) *Handoff

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*HandoffList) GetHREF

func (l *HandoffList) GetHREF() (value string, ok bool)

GetHREF returns the link of the list and a flag indicating if the link has a value.

func (*HandoffList) HREF

func (l *HandoffList) HREF() string

HREF returns the link to the list.

func (*HandoffList) Items

func (l *HandoffList) Items() []*Handoff

Items returns the items of the list.

func (*HandoffList) Kind

func (l *HandoffList) Kind() string

Kind returns the name of the type of the object.

func (*HandoffList) Len

func (l *HandoffList) Len() int

Len returns the length of the list.

func (l *HandoffList) Link() bool

Link returns true iif this is a link.

func (*HandoffList) Range

func (l *HandoffList) Range(f func(index int, item *Handoff) bool)

Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*HandoffList) SetHREF

func (l *HandoffList) SetHREF(href string)

Items sets the items of the list.

func (*HandoffList) SetItems

func (l *HandoffList) SetItems(items []*Handoff)

Items sets the items of the list.

func (l *HandoffList) SetLink(link bool)

Items sets the items of the list.

func (*HandoffList) Slice

func (l *HandoffList) Slice() []*Handoff

Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.

If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.

type HandoffListBuilder

type HandoffListBuilder struct {
	// contains filtered or unexported fields
}

HandoffListBuilder contains the data and logic needed to build 'handoff' objects.

func NewHandoffList

func NewHandoffList() *HandoffListBuilder

NewHandoffList creates a new builder of 'handoff' objects.

func (*HandoffListBuilder) Build

func (b *HandoffListBuilder) Build() (list *HandoffList, err error)

Build creates a list of 'handoff' objects using the configuration stored in the builder.

func (*HandoffListBuilder) Copy

Copy copies the items of the given list into this builder, discarding any previous items.

func (*HandoffListBuilder) Empty

func (b *HandoffListBuilder) Empty() bool

Empty returns true if the list is empty.

func (*HandoffListBuilder) Items

Items sets the items of the list.

type Incident

type Incident struct {
	// contains filtered or unexported fields
}

Incident represents the values of the 'incident' type.

Definition of a Web RCA incident.

func ReadIncident

func ReadIncident(iterator *jsoniter.Iterator) *Incident

ReadIncident reads a value of the 'incident' type from the given iterator.

func ReadIncidentList

func ReadIncidentList(iterator *jsoniter.Iterator) []*Incident

ReadIncidentList reads list of values of the ”incident' type from the given iterator.

func UnmarshalIncident

func UnmarshalIncident(source interface{}) (object *Incident, err error)

UnmarshalIncident reads a value of the 'incident' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalIncidentList

func UnmarshalIncidentList(source interface{}) (items []*Incident, err error)

UnmarshalIncidentList reads a list of values of the 'incident' type from the given source, which can be a slice of bytes, a string or a reader.

func (*Incident) CreatedAt

func (o *Incident) CreatedAt() time.Time

CreatedAt returns the value of the 'created_at' attribute, or the zero value of the type if the attribute doesn't have a value.

Object creation timestamp.

func (*Incident) CreatorId

func (o *Incident) CreatorId() string

CreatorId returns the value of the 'creator_id' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Incident) DeletedAt

func (o *Incident) DeletedAt() time.Time

DeletedAt returns the value of the 'deleted_at' attribute, or the zero value of the type if the attribute doesn't have a value.

Object deletion timestamp.

func (*Incident) Description

func (o *Incident) Description() string

Description returns the value of the 'description' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Incident) Empty

func (o *Incident) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*Incident) ExternalCoordination

func (o *Incident) ExternalCoordination() []string

ExternalCoordination returns the value of the 'external_coordination' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Incident) GetCreatedAt

func (o *Incident) GetCreatedAt() (value time.Time, ok bool)

GetCreatedAt returns the value of the 'created_at' attribute and a flag indicating if the attribute has a value.

Object creation timestamp.

func (*Incident) GetCreatorId

func (o *Incident) GetCreatorId() (value string, ok bool)

GetCreatorId returns the value of the 'creator_id' attribute and a flag indicating if the attribute has a value.

func (*Incident) GetDeletedAt

func (o *Incident) GetDeletedAt() (value time.Time, ok bool)

GetDeletedAt returns the value of the 'deleted_at' attribute and a flag indicating if the attribute has a value.

Object deletion timestamp.

func (*Incident) GetDescription

func (o *Incident) GetDescription() (value string, ok bool)

GetDescription returns the value of the 'description' attribute and a flag indicating if the attribute has a value.

func (*Incident) GetExternalCoordination

func (o *Incident) GetExternalCoordination() (value []string, ok bool)

GetExternalCoordination returns the value of the 'external_coordination' attribute and a flag indicating if the attribute has a value.

func (*Incident) GetHREF

func (o *Incident) GetHREF() (value string, ok bool)

GetHREF returns the link of the object and a flag indicating if the link has a value.

func (*Incident) GetID

func (o *Incident) GetID() (value string, ok bool)

GetID returns the identifier of the object and a flag indicating if the identifier has a value.

func (*Incident) GetIncidentId

func (o *Incident) GetIncidentId() (value string, ok bool)

GetIncidentId returns the value of the 'incident_id' attribute and a flag indicating if the attribute has a value.

func (*Incident) GetIncidentType

func (o *Incident) GetIncidentType() (value string, ok bool)

GetIncidentType returns the value of the 'incident_type' attribute and a flag indicating if the attribute has a value.

func (*Incident) GetLastUpdated

func (o *Incident) GetLastUpdated() (value time.Time, ok bool)

GetLastUpdated returns the value of the 'last_updated' attribute and a flag indicating if the attribute has a value.

func (*Incident) GetPrimaryTeam

func (o *Incident) GetPrimaryTeam() (value string, ok bool)

GetPrimaryTeam returns the value of the 'primary_team' attribute and a flag indicating if the attribute has a value.

func (*Incident) GetSeverity

func (o *Incident) GetSeverity() (value string, ok bool)

GetSeverity returns the value of the 'severity' attribute and a flag indicating if the attribute has a value.

func (*Incident) GetStatus

func (o *Incident) GetStatus() (value string, ok bool)

GetStatus returns the value of the 'status' attribute and a flag indicating if the attribute has a value.

func (*Incident) GetSummary

func (o *Incident) GetSummary() (value string, ok bool)

GetSummary returns the value of the 'summary' attribute and a flag indicating if the attribute has a value.

func (*Incident) GetUpdatedAt

func (o *Incident) GetUpdatedAt() (value time.Time, ok bool)

GetUpdatedAt returns the value of the 'updated_at' attribute and a flag indicating if the attribute has a value.

Object modification timestamp.

func (*Incident) GetWorkedAt

func (o *Incident) GetWorkedAt() (value time.Time, ok bool)

GetWorkedAt returns the value of the 'worked_at' attribute and a flag indicating if the attribute has a value.

func (*Incident) HREF

func (o *Incident) HREF() string

HREF returns the link to the object.

func (*Incident) ID

func (o *Incident) ID() string

ID returns the identifier of the object.

func (*Incident) IncidentId

func (o *Incident) IncidentId() string

IncidentId returns the value of the 'incident_id' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Incident) IncidentType

func (o *Incident) IncidentType() string

IncidentType returns the value of the 'incident_type' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Incident) Kind

func (o *Incident) Kind() string

Kind returns the name of the type of the object.

func (*Incident) LastUpdated

func (o *Incident) LastUpdated() time.Time

LastUpdated returns the value of the 'last_updated' attribute, or the zero value of the type if the attribute doesn't have a value.

func (o *Incident) Link() bool

Link returns true if this is a link.

func (*Incident) PrimaryTeam

func (o *Incident) PrimaryTeam() string

PrimaryTeam returns the value of the 'primary_team' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Incident) Severity

func (o *Incident) Severity() string

Severity returns the value of the 'severity' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Incident) Status

func (o *Incident) Status() string

Status returns the value of the 'status' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Incident) Summary

func (o *Incident) Summary() string

Summary returns the value of the 'summary' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Incident) UpdatedAt

func (o *Incident) UpdatedAt() time.Time

UpdatedAt returns the value of the 'updated_at' attribute, or the zero value of the type if the attribute doesn't have a value.

Object modification timestamp.

func (*Incident) WorkedAt

func (o *Incident) WorkedAt() time.Time

WorkedAt returns the value of the 'worked_at' attribute, or the zero value of the type if the attribute doesn't have a value.

type IncidentBuilder

type IncidentBuilder struct {
	// contains filtered or unexported fields
}

Definition of a Web RCA incident.

func NewIncident

func NewIncident() *IncidentBuilder

NewIncident creates a new builder of 'incident' objects.

func (*IncidentBuilder) Build

func (b *IncidentBuilder) Build() (object *Incident, err error)

Build creates a 'incident' object using the configuration stored in the builder.

func (*IncidentBuilder) Copy

func (b *IncidentBuilder) Copy(object *Incident) *IncidentBuilder

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*IncidentBuilder) CreatedAt

func (b *IncidentBuilder) CreatedAt(value time.Time) *IncidentBuilder

CreatedAt sets the value of the 'created_at' attribute to the given value.

func (*IncidentBuilder) CreatorId

func (b *IncidentBuilder) CreatorId(value string) *IncidentBuilder

CreatorId sets the value of the 'creator_id' attribute to the given value.

func (*IncidentBuilder) DeletedAt

func (b *IncidentBuilder) DeletedAt(value time.Time) *IncidentBuilder

DeletedAt sets the value of the 'deleted_at' attribute to the given value.

func (*IncidentBuilder) Description

func (b *IncidentBuilder) Description(value string) *IncidentBuilder

Description sets the value of the 'description' attribute to the given value.

func (*IncidentBuilder) Empty

func (b *IncidentBuilder) Empty() bool

Empty returns true if the builder is empty, i.e. no attribute has a value.

func (*IncidentBuilder) ExternalCoordination

func (b *IncidentBuilder) ExternalCoordination(values ...string) *IncidentBuilder

ExternalCoordination sets the value of the 'external_coordination' attribute to the given values.

func (*IncidentBuilder) HREF

func (b *IncidentBuilder) HREF(value string) *IncidentBuilder

HREF sets the link to the object.

func (*IncidentBuilder) ID

func (b *IncidentBuilder) ID(value string) *IncidentBuilder

ID sets the identifier of the object.

func (*IncidentBuilder) IncidentId

func (b *IncidentBuilder) IncidentId(value string) *IncidentBuilder

IncidentId sets the value of the 'incident_id' attribute to the given value.

func (*IncidentBuilder) IncidentType

func (b *IncidentBuilder) IncidentType(value string) *IncidentBuilder

IncidentType sets the value of the 'incident_type' attribute to the given value.

func (*IncidentBuilder) LastUpdated

func (b *IncidentBuilder) LastUpdated(value time.Time) *IncidentBuilder

LastUpdated sets the value of the 'last_updated' attribute to the given value.

func (b *IncidentBuilder) Link(value bool) *IncidentBuilder

Link sets the flag that indicates if this is a link.

func (*IncidentBuilder) PrimaryTeam

func (b *IncidentBuilder) PrimaryTeam(value string) *IncidentBuilder

PrimaryTeam sets the value of the 'primary_team' attribute to the given value.

func (*IncidentBuilder) Severity

func (b *IncidentBuilder) Severity(value string) *IncidentBuilder

Severity sets the value of the 'severity' attribute to the given value.

func (*IncidentBuilder) Status

func (b *IncidentBuilder) Status(value string) *IncidentBuilder

Status sets the value of the 'status' attribute to the given value.

func (*IncidentBuilder) Summary

func (b *IncidentBuilder) Summary(value string) *IncidentBuilder

Summary sets the value of the 'summary' attribute to the given value.

func (*IncidentBuilder) UpdatedAt

func (b *IncidentBuilder) UpdatedAt(value time.Time) *IncidentBuilder

UpdatedAt sets the value of the 'updated_at' attribute to the given value.

func (*IncidentBuilder) WorkedAt

func (b *IncidentBuilder) WorkedAt(value time.Time) *IncidentBuilder

WorkedAt sets the value of the 'worked_at' attribute to the given value.

type IncidentList

type IncidentList struct {
	// contains filtered or unexported fields
}

IncidentList is a list of values of the 'incident' type.

func (*IncidentList) Each

func (l *IncidentList) Each(f func(item *Incident) bool)

Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*IncidentList) Empty

func (l *IncidentList) Empty() bool

Empty returns true if the list is empty.

func (*IncidentList) Get

func (l *IncidentList) Get(i int) *Incident

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*IncidentList) GetHREF

func (l *IncidentList) GetHREF() (value string, ok bool)

GetHREF returns the link of the list and a flag indicating if the link has a value.

func (*IncidentList) HREF

func (l *IncidentList) HREF() string

HREF returns the link to the list.

func (*IncidentList) Items

func (l *IncidentList) Items() []*Incident

Items returns the items of the list.

func (*IncidentList) Kind

func (l *IncidentList) Kind() string

Kind returns the name of the type of the object.

func (*IncidentList) Len

func (l *IncidentList) Len() int

Len returns the length of the list.

func (l *IncidentList) Link() bool

Link returns true iif this is a link.

func (*IncidentList) Range

func (l *IncidentList) Range(f func(index int, item *Incident) bool)

Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*IncidentList) SetHREF

func (l *IncidentList) SetHREF(href string)

Items sets the items of the list.

func (*IncidentList) SetItems

func (l *IncidentList) SetItems(items []*Incident)

Items sets the items of the list.

func (l *IncidentList) SetLink(link bool)

Items sets the items of the list.

func (*IncidentList) Slice

func (l *IncidentList) Slice() []*Incident

Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.

If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.

type IncidentListBuilder

type IncidentListBuilder struct {
	// contains filtered or unexported fields
}

IncidentListBuilder contains the data and logic needed to build 'incident' objects.

func NewIncidentList

func NewIncidentList() *IncidentListBuilder

NewIncidentList creates a new builder of 'incident' objects.

func (*IncidentListBuilder) Build

func (b *IncidentListBuilder) Build() (list *IncidentList, err error)

Build creates a list of 'incident' objects using the configuration stored in the builder.

func (*IncidentListBuilder) Copy

Copy copies the items of the given list into this builder, discarding any previous items.

func (*IncidentListBuilder) Empty

func (b *IncidentListBuilder) Empty() bool

Empty returns true if the list is empty.

func (*IncidentListBuilder) Items

Items sets the items of the list.

type Metadata

type Metadata struct {
	// contains filtered or unexported fields
}

Metadata contains the version metadata.

func UnmarshalMetadata

func UnmarshalMetadata(source interface{}) (object *Metadata, err error)

UnmarshalMetadata reads a value of the metadata type from the given source, which which can be a reader, a slice of byte or a string.

func (*Metadata) GetServerVersion

func (m *Metadata) GetServerVersion() (value string, ok bool)

GetServerVersion returns the value of the server version and a flag indicating if the attribute has a value.

func (*Metadata) ServerVersion

func (m *Metadata) ServerVersion() string

ServerVersion returns the version of the server.

type Notification

type Notification struct {
	// contains filtered or unexported fields
}

Notification represents the values of the 'notification' type.

Definition of a Web RCA notification.

func ReadNotification

func ReadNotification(iterator *jsoniter.Iterator) *Notification

ReadNotification reads a value of the 'notification' type from the given iterator.

func ReadNotificationList

func ReadNotificationList(iterator *jsoniter.Iterator) []*Notification

ReadNotificationList reads list of values of the ”notification' type from the given iterator.

func UnmarshalNotification

func UnmarshalNotification(source interface{}) (object *Notification, err error)

UnmarshalNotification reads a value of the 'notification' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalNotificationList

func UnmarshalNotificationList(source interface{}) (items []*Notification, err error)

UnmarshalNotificationList reads a list of values of the 'notification' type from the given source, which can be a slice of bytes, a string or a reader.

func (*Notification) Checked

func (o *Notification) Checked() bool

Checked returns the value of the 'checked' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Notification) CreatedAt

func (o *Notification) CreatedAt() time.Time

CreatedAt returns the value of the 'created_at' attribute, or the zero value of the type if the attribute doesn't have a value.

Object creation timestamp.

func (*Notification) DeletedAt

func (o *Notification) DeletedAt() time.Time

DeletedAt returns the value of the 'deleted_at' attribute, or the zero value of the type if the attribute doesn't have a value.

Object deletion timestamp.

func (*Notification) Empty

func (o *Notification) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*Notification) GetChecked

func (o *Notification) GetChecked() (value bool, ok bool)

GetChecked returns the value of the 'checked' attribute and a flag indicating if the attribute has a value.

func (*Notification) GetCreatedAt

func (o *Notification) GetCreatedAt() (value time.Time, ok bool)

GetCreatedAt returns the value of the 'created_at' attribute and a flag indicating if the attribute has a value.

Object creation timestamp.

func (*Notification) GetDeletedAt

func (o *Notification) GetDeletedAt() (value time.Time, ok bool)

GetDeletedAt returns the value of the 'deleted_at' attribute and a flag indicating if the attribute has a value.

Object deletion timestamp.

func (*Notification) GetHREF

func (o *Notification) GetHREF() (value string, ok bool)

GetHREF returns the link of the object and a flag indicating if the link has a value.

func (*Notification) GetID

func (o *Notification) GetID() (value string, ok bool)

GetID returns the identifier of the object and a flag indicating if the identifier has a value.

func (*Notification) GetIncident

func (o *Notification) GetIncident() (value *Incident, ok bool)

GetIncident returns the value of the 'incident' attribute and a flag indicating if the attribute has a value.

func (*Notification) GetName

func (o *Notification) GetName() (value string, ok bool)

GetName returns the value of the 'name' attribute and a flag indicating if the attribute has a value.

func (*Notification) GetRank

func (o *Notification) GetRank() (value int, ok bool)

GetRank returns the value of the 'rank' attribute and a flag indicating if the attribute has a value.

func (*Notification) GetUpdatedAt

func (o *Notification) GetUpdatedAt() (value time.Time, ok bool)

GetUpdatedAt returns the value of the 'updated_at' attribute and a flag indicating if the attribute has a value.

Object modification timestamp.

func (*Notification) HREF

func (o *Notification) HREF() string

HREF returns the link to the object.

func (*Notification) ID

func (o *Notification) ID() string

ID returns the identifier of the object.

func (*Notification) Incident

func (o *Notification) Incident() *Incident

Incident returns the value of the 'incident' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Notification) Kind

func (o *Notification) Kind() string

Kind returns the name of the type of the object.

func (o *Notification) Link() bool

Link returns true if this is a link.

func (*Notification) Name

func (o *Notification) Name() string

Name returns the value of the 'name' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Notification) Rank

func (o *Notification) Rank() int

Rank returns the value of the 'rank' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Notification) UpdatedAt

func (o *Notification) UpdatedAt() time.Time

UpdatedAt returns the value of the 'updated_at' attribute, or the zero value of the type if the attribute doesn't have a value.

Object modification timestamp.

type NotificationBuilder

type NotificationBuilder struct {
	// contains filtered or unexported fields
}

Definition of a Web RCA notification.

func NewNotification

func NewNotification() *NotificationBuilder

NewNotification creates a new builder of 'notification' objects.

func (*NotificationBuilder) Build

func (b *NotificationBuilder) Build() (object *Notification, err error)

Build creates a 'notification' object using the configuration stored in the builder.

func (*NotificationBuilder) Checked

func (b *NotificationBuilder) Checked(value bool) *NotificationBuilder

Checked sets the value of the 'checked' attribute to the given value.

func (*NotificationBuilder) Copy

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*NotificationBuilder) CreatedAt

func (b *NotificationBuilder) CreatedAt(value time.Time) *NotificationBuilder

CreatedAt sets the value of the 'created_at' attribute to the given value.

func (*NotificationBuilder) DeletedAt

func (b *NotificationBuilder) DeletedAt(value time.Time) *NotificationBuilder

DeletedAt sets the value of the 'deleted_at' attribute to the given value.

func (*NotificationBuilder) Empty

func (b *NotificationBuilder) Empty() bool

Empty returns true if the builder is empty, i.e. no attribute has a value.

func (*NotificationBuilder) HREF

HREF sets the link to the object.

func (*NotificationBuilder) ID

ID sets the identifier of the object.

func (*NotificationBuilder) Incident

Incident sets the value of the 'incident' attribute to the given value.

Definition of a Web RCA incident.

Link sets the flag that indicates if this is a link.

func (*NotificationBuilder) Name

Name sets the value of the 'name' attribute to the given value.

func (*NotificationBuilder) Rank

Rank sets the value of the 'rank' attribute to the given value.

func (*NotificationBuilder) UpdatedAt

func (b *NotificationBuilder) UpdatedAt(value time.Time) *NotificationBuilder

UpdatedAt sets the value of the 'updated_at' attribute to the given value.

type NotificationList

type NotificationList struct {
	// contains filtered or unexported fields
}

NotificationList is a list of values of the 'notification' type.

func (*NotificationList) Each

func (l *NotificationList) Each(f func(item *Notification) bool)

Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*NotificationList) Empty

func (l *NotificationList) Empty() bool

Empty returns true if the list is empty.

func (*NotificationList) Get

func (l *NotificationList) Get(i int) *Notification

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*NotificationList) GetHREF

func (l *NotificationList) GetHREF() (value string, ok bool)

GetHREF returns the link of the list and a flag indicating if the link has a value.

func (*NotificationList) HREF

func (l *NotificationList) HREF() string

HREF returns the link to the list.

func (*NotificationList) Items

func (l *NotificationList) Items() []*Notification

Items returns the items of the list.

func (*NotificationList) Kind

func (l *NotificationList) Kind() string

Kind returns the name of the type of the object.

func (*NotificationList) Len

func (l *NotificationList) Len() int

Len returns the length of the list.

func (l *NotificationList) Link() bool

Link returns true iif this is a link.

func (*NotificationList) Range

func (l *NotificationList) Range(f func(index int, item *Notification) bool)

Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*NotificationList) SetHREF

func (l *NotificationList) SetHREF(href string)

Items sets the items of the list.

func (*NotificationList) SetItems

func (l *NotificationList) SetItems(items []*Notification)

Items sets the items of the list.

func (l *NotificationList) SetLink(link bool)

Items sets the items of the list.

func (*NotificationList) Slice

func (l *NotificationList) Slice() []*Notification

Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.

If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.

type NotificationListBuilder

type NotificationListBuilder struct {
	// contains filtered or unexported fields
}

NotificationListBuilder contains the data and logic needed to build 'notification' objects.

func NewNotificationList

func NewNotificationList() *NotificationListBuilder

NewNotificationList creates a new builder of 'notification' objects.

func (*NotificationListBuilder) Build

func (b *NotificationListBuilder) Build() (list *NotificationList, err error)

Build creates a list of 'notification' objects using the configuration stored in the builder.

func (*NotificationListBuilder) Copy

Copy copies the items of the given list into this builder, discarding any previous items.

func (*NotificationListBuilder) Empty

func (b *NotificationListBuilder) Empty() bool

Empty returns true if the list is empty.

func (*NotificationListBuilder) Items

Items sets the items of the list.

type Product

type Product struct {
	// contains filtered or unexported fields
}

Product represents the values of the 'product' type.

Definition of a Web RCA product.

func ReadProduct

func ReadProduct(iterator *jsoniter.Iterator) *Product

ReadProduct reads a value of the 'product' type from the given iterator.

func ReadProductList

func ReadProductList(iterator *jsoniter.Iterator) []*Product

ReadProductList reads list of values of the ”product' type from the given iterator.

func UnmarshalProduct

func UnmarshalProduct(source interface{}) (object *Product, err error)

UnmarshalProduct reads a value of the 'product' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalProductList

func UnmarshalProductList(source interface{}) (items []*Product, err error)

UnmarshalProductList reads a list of values of the 'product' type from the given source, which can be a slice of bytes, a string or a reader.

func (*Product) CreatedAt

func (o *Product) CreatedAt() time.Time

CreatedAt returns the value of the 'created_at' attribute, or the zero value of the type if the attribute doesn't have a value.

Object creation timestamp.

func (*Product) DeletedAt

func (o *Product) DeletedAt() time.Time

DeletedAt returns the value of the 'deleted_at' attribute, or the zero value of the type if the attribute doesn't have a value.

Object deletion timestamp.

func (*Product) Empty

func (o *Product) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*Product) GetCreatedAt

func (o *Product) GetCreatedAt() (value time.Time, ok bool)

GetCreatedAt returns the value of the 'created_at' attribute and a flag indicating if the attribute has a value.

Object creation timestamp.

func (*Product) GetDeletedAt

func (o *Product) GetDeletedAt() (value time.Time, ok bool)

GetDeletedAt returns the value of the 'deleted_at' attribute and a flag indicating if the attribute has a value.

Object deletion timestamp.

func (*Product) GetHREF

func (o *Product) GetHREF() (value string, ok bool)

GetHREF returns the link of the object and a flag indicating if the link has a value.

func (*Product) GetID

func (o *Product) GetID() (value string, ok bool)

GetID returns the identifier of the object and a flag indicating if the identifier has a value.

func (*Product) GetProductId

func (o *Product) GetProductId() (value string, ok bool)

GetProductId returns the value of the 'product_id' attribute and a flag indicating if the attribute has a value.

The product ID from status board

func (*Product) GetProductName

func (o *Product) GetProductName() (value string, ok bool)

GetProductName returns the value of the 'product_name' attribute and a flag indicating if the attribute has a value.

The name of the product from status-board.

func (*Product) GetUpdatedAt

func (o *Product) GetUpdatedAt() (value time.Time, ok bool)

GetUpdatedAt returns the value of the 'updated_at' attribute and a flag indicating if the attribute has a value.

Object modification timestamp.

func (*Product) HREF

func (o *Product) HREF() string

HREF returns the link to the object.

func (*Product) ID

func (o *Product) ID() string

ID returns the identifier of the object.

func (*Product) Kind

func (o *Product) Kind() string

Kind returns the name of the type of the object.

func (o *Product) Link() bool

Link returns true if this is a link.

func (*Product) ProductId

func (o *Product) ProductId() string

ProductId returns the value of the 'product_id' attribute, or the zero value of the type if the attribute doesn't have a value.

The product ID from status board

func (*Product) ProductName

func (o *Product) ProductName() string

ProductName returns the value of the 'product_name' attribute, or the zero value of the type if the attribute doesn't have a value.

The name of the product from status-board.

func (*Product) UpdatedAt

func (o *Product) UpdatedAt() time.Time

UpdatedAt returns the value of the 'updated_at' attribute, or the zero value of the type if the attribute doesn't have a value.

Object modification timestamp.

type ProductBuilder

type ProductBuilder struct {
	// contains filtered or unexported fields
}

Definition of a Web RCA product.

func NewProduct

func NewProduct() *ProductBuilder

NewProduct creates a new builder of 'product' objects.

func (*ProductBuilder) Build

func (b *ProductBuilder) Build() (object *Product, err error)

Build creates a 'product' object using the configuration stored in the builder.

func (*ProductBuilder) Copy

func (b *ProductBuilder) Copy(object *Product) *ProductBuilder

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*ProductBuilder) CreatedAt

func (b *ProductBuilder) CreatedAt(value time.Time) *ProductBuilder

CreatedAt sets the value of the 'created_at' attribute to the given value.

func (*ProductBuilder) DeletedAt

func (b *ProductBuilder) DeletedAt(value time.Time) *ProductBuilder

DeletedAt sets the value of the 'deleted_at' attribute to the given value.

func (*ProductBuilder) Empty

func (b *ProductBuilder) Empty() bool

Empty returns true if the builder is empty, i.e. no attribute has a value.

func (*ProductBuilder) HREF

func (b *ProductBuilder) HREF(value string) *ProductBuilder

HREF sets the link to the object.

func (*ProductBuilder) ID

func (b *ProductBuilder) ID(value string) *ProductBuilder

ID sets the identifier of the object.

func (b *ProductBuilder) Link(value bool) *ProductBuilder

Link sets the flag that indicates if this is a link.

func (*ProductBuilder) ProductId

func (b *ProductBuilder) ProductId(value string) *ProductBuilder

ProductId sets the value of the 'product_id' attribute to the given value.

func (*ProductBuilder) ProductName

func (b *ProductBuilder) ProductName(value string) *ProductBuilder

ProductName sets the value of the 'product_name' attribute to the given value.

func (*ProductBuilder) UpdatedAt

func (b *ProductBuilder) UpdatedAt(value time.Time) *ProductBuilder

UpdatedAt sets the value of the 'updated_at' attribute to the given value.

type ProductList

type ProductList struct {
	// contains filtered or unexported fields
}

ProductList is a list of values of the 'product' type.

func (*ProductList) Each

func (l *ProductList) Each(f func(item *Product) bool)

Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*ProductList) Empty

func (l *ProductList) Empty() bool

Empty returns true if the list is empty.

func (*ProductList) Get

func (l *ProductList) Get(i int) *Product

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*ProductList) GetHREF

func (l *ProductList) GetHREF() (value string, ok bool)

GetHREF returns the link of the list and a flag indicating if the link has a value.

func (*ProductList) HREF

func (l *ProductList) HREF() string

HREF returns the link to the list.

func (*ProductList) Items

func (l *ProductList) Items() []*Product

Items returns the items of the list.

func (*ProductList) Kind

func (l *ProductList) Kind() string

Kind returns the name of the type of the object.

func (*ProductList) Len

func (l *ProductList) Len() int

Len returns the length of the list.

func (l *ProductList) Link() bool

Link returns true iif this is a link.

func (*ProductList) Range

func (l *ProductList) Range(f func(index int, item *Product) bool)

Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*ProductList) SetHREF

func (l *ProductList) SetHREF(href string)

Items sets the items of the list.

func (*ProductList) SetItems

func (l *ProductList) SetItems(items []*Product)

Items sets the items of the list.

func (l *ProductList) SetLink(link bool)

Items sets the items of the list.

func (*ProductList) Slice

func (l *ProductList) Slice() []*Product

Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.

If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.

type ProductListBuilder

type ProductListBuilder struct {
	// contains filtered or unexported fields
}

ProductListBuilder contains the data and logic needed to build 'product' objects.

func NewProductList

func NewProductList() *ProductListBuilder

NewProductList creates a new builder of 'product' objects.

func (*ProductListBuilder) Build

func (b *ProductListBuilder) Build() (list *ProductList, err error)

Build creates a list of 'product' objects using the configuration stored in the builder.

func (*ProductListBuilder) Copy

Copy copies the items of the given list into this builder, discarding any previous items.

func (*ProductListBuilder) Empty

func (b *ProductListBuilder) Empty() bool

Empty returns true if the list is empty.

func (*ProductListBuilder) Items

Items sets the items of the list.

type StatusChange

type StatusChange struct {
	// contains filtered or unexported fields
}

StatusChange represents the values of the 'status_change' type.

Definition of a Web RCA event.

func ReadStatusChange

func ReadStatusChange(iterator *jsoniter.Iterator) *StatusChange

ReadStatusChange reads a value of the 'status_change' type from the given iterator.

func ReadStatusChangeList

func ReadStatusChangeList(iterator *jsoniter.Iterator) []*StatusChange

ReadStatusChangeList reads list of values of the ”status_change' type from the given iterator.

func UnmarshalStatusChange

func UnmarshalStatusChange(source interface{}) (object *StatusChange, err error)

UnmarshalStatusChange reads a value of the 'status_change' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalStatusChangeList

func UnmarshalStatusChangeList(source interface{}) (items []*StatusChange, err error)

UnmarshalStatusChangeList reads a list of values of the 'status_change' type from the given source, which can be a slice of bytes, a string or a reader.

func (*StatusChange) CreatedAt

func (o *StatusChange) CreatedAt() time.Time

CreatedAt returns the value of the 'created_at' attribute, or the zero value of the type if the attribute doesn't have a value.

Object creation timestamp.

func (*StatusChange) DeletedAt

func (o *StatusChange) DeletedAt() time.Time

DeletedAt returns the value of the 'deleted_at' attribute, or the zero value of the type if the attribute doesn't have a value.

Object deletion timestamp.

func (*StatusChange) Empty

func (o *StatusChange) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*StatusChange) GetCreatedAt

func (o *StatusChange) GetCreatedAt() (value time.Time, ok bool)

GetCreatedAt returns the value of the 'created_at' attribute and a flag indicating if the attribute has a value.

Object creation timestamp.

func (*StatusChange) GetDeletedAt

func (o *StatusChange) GetDeletedAt() (value time.Time, ok bool)

GetDeletedAt returns the value of the 'deleted_at' attribute and a flag indicating if the attribute has a value.

Object deletion timestamp.

func (*StatusChange) GetHREF

func (o *StatusChange) GetHREF() (value string, ok bool)

GetHREF returns the link of the object and a flag indicating if the link has a value.

func (*StatusChange) GetID

func (o *StatusChange) GetID() (value string, ok bool)

GetID returns the identifier of the object and a flag indicating if the identifier has a value.

func (*StatusChange) GetStatus

func (o *StatusChange) GetStatus() (value interface{}, ok bool)

GetStatus returns the value of the 'status' attribute and a flag indicating if the attribute has a value.

func (*StatusChange) GetStatusId

func (o *StatusChange) GetStatusId() (value string, ok bool)

GetStatusId returns the value of the 'status_id' attribute and a flag indicating if the attribute has a value.

func (*StatusChange) GetUpdatedAt

func (o *StatusChange) GetUpdatedAt() (value time.Time, ok bool)

GetUpdatedAt returns the value of the 'updated_at' attribute and a flag indicating if the attribute has a value.

Object modification timestamp.

func (*StatusChange) HREF

func (o *StatusChange) HREF() string

HREF returns the link to the object.

func (*StatusChange) ID

func (o *StatusChange) ID() string

ID returns the identifier of the object.

func (*StatusChange) Kind

func (o *StatusChange) Kind() string

Kind returns the name of the type of the object.

func (o *StatusChange) Link() bool

Link returns true if this is a link.

func (*StatusChange) Status

func (o *StatusChange) Status() interface{}

Status returns the value of the 'status' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*StatusChange) StatusId

func (o *StatusChange) StatusId() string

StatusId returns the value of the 'status_id' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*StatusChange) UpdatedAt

func (o *StatusChange) UpdatedAt() time.Time

UpdatedAt returns the value of the 'updated_at' attribute, or the zero value of the type if the attribute doesn't have a value.

Object modification timestamp.

type StatusChangeBuilder

type StatusChangeBuilder struct {
	// contains filtered or unexported fields
}

Definition of a Web RCA event.

func NewStatusChange

func NewStatusChange() *StatusChangeBuilder

NewStatusChange creates a new builder of 'status_change' objects.

func (*StatusChangeBuilder) Build

func (b *StatusChangeBuilder) Build() (object *StatusChange, err error)

Build creates a 'status_change' object using the configuration stored in the builder.

func (*StatusChangeBuilder) Copy

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*StatusChangeBuilder) CreatedAt

func (b *StatusChangeBuilder) CreatedAt(value time.Time) *StatusChangeBuilder

CreatedAt sets the value of the 'created_at' attribute to the given value.

func (*StatusChangeBuilder) DeletedAt

func (b *StatusChangeBuilder) DeletedAt(value time.Time) *StatusChangeBuilder

DeletedAt sets the value of the 'deleted_at' attribute to the given value.

func (*StatusChangeBuilder) Empty

func (b *StatusChangeBuilder) Empty() bool

Empty returns true if the builder is empty, i.e. no attribute has a value.

func (*StatusChangeBuilder) HREF

HREF sets the link to the object.

func (*StatusChangeBuilder) ID

ID sets the identifier of the object.

Link sets the flag that indicates if this is a link.

func (*StatusChangeBuilder) Status

func (b *StatusChangeBuilder) Status(value interface{}) *StatusChangeBuilder

Status sets the value of the 'status' attribute to the given value.

func (*StatusChangeBuilder) StatusId

func (b *StatusChangeBuilder) StatusId(value string) *StatusChangeBuilder

StatusId sets the value of the 'status_id' attribute to the given value.

func (*StatusChangeBuilder) UpdatedAt

func (b *StatusChangeBuilder) UpdatedAt(value time.Time) *StatusChangeBuilder

UpdatedAt sets the value of the 'updated_at' attribute to the given value.

type StatusChangeList

type StatusChangeList struct {
	// contains filtered or unexported fields
}

StatusChangeList is a list of values of the 'status_change' type.

func (*StatusChangeList) Each

func (l *StatusChangeList) Each(f func(item *StatusChange) bool)

Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*StatusChangeList) Empty

func (l *StatusChangeList) Empty() bool

Empty returns true if the list is empty.

func (*StatusChangeList) Get

func (l *StatusChangeList) Get(i int) *StatusChange

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*StatusChangeList) GetHREF

func (l *StatusChangeList) GetHREF() (value string, ok bool)

GetHREF returns the link of the list and a flag indicating if the link has a value.

func (*StatusChangeList) HREF

func (l *StatusChangeList) HREF() string

HREF returns the link to the list.

func (*StatusChangeList) Items

func (l *StatusChangeList) Items() []*StatusChange

Items returns the items of the list.

func (*StatusChangeList) Kind

func (l *StatusChangeList) Kind() string

Kind returns the name of the type of the object.

func (*StatusChangeList) Len

func (l *StatusChangeList) Len() int

Len returns the length of the list.

func (l *StatusChangeList) Link() bool

Link returns true iif this is a link.

func (*StatusChangeList) Range

func (l *StatusChangeList) Range(f func(index int, item *StatusChange) bool)

Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*StatusChangeList) SetHREF

func (l *StatusChangeList) SetHREF(href string)

Items sets the items of the list.

func (*StatusChangeList) SetItems

func (l *StatusChangeList) SetItems(items []*StatusChange)

Items sets the items of the list.

func (l *StatusChangeList) SetLink(link bool)

Items sets the items of the list.

func (*StatusChangeList) Slice

func (l *StatusChangeList) Slice() []*StatusChange

Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.

If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.

type StatusChangeListBuilder

type StatusChangeListBuilder struct {
	// contains filtered or unexported fields
}

StatusChangeListBuilder contains the data and logic needed to build 'status_change' objects.

func NewStatusChangeList

func NewStatusChangeList() *StatusChangeListBuilder

NewStatusChangeList creates a new builder of 'status_change' objects.

func (*StatusChangeListBuilder) Build

func (b *StatusChangeListBuilder) Build() (list *StatusChangeList, err error)

Build creates a list of 'status_change' objects using the configuration stored in the builder.

func (*StatusChangeListBuilder) Copy

Copy copies the items of the given list into this builder, discarding any previous items.

func (*StatusChangeListBuilder) Empty

func (b *StatusChangeListBuilder) Empty() bool

Empty returns true if the list is empty.

func (*StatusChangeListBuilder) Items

Items sets the items of the list.

type User

type User struct {
	// contains filtered or unexported fields
}

User represents the values of the 'user' type.

Definition of a Web RCA user.

func ReadUser

func ReadUser(iterator *jsoniter.Iterator) *User

ReadUser reads a value of the 'user' type from the given iterator.

func ReadUserList

func ReadUserList(iterator *jsoniter.Iterator) []*User

ReadUserList reads list of values of the ”user' type from the given iterator.

func UnmarshalUser

func UnmarshalUser(source interface{}) (object *User, err error)

UnmarshalUser reads a value of the 'user' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalUserList

func UnmarshalUserList(source interface{}) (items []*User, err error)

UnmarshalUserList reads a list of values of the 'user' type from the given source, which can be a slice of bytes, a string or a reader.

func (*User) CreatedAt

func (o *User) CreatedAt() time.Time

CreatedAt returns the value of the 'created_at' attribute, or the zero value of the type if the attribute doesn't have a value.

Object creation timestamp.

func (*User) DeletedAt

func (o *User) DeletedAt() time.Time

DeletedAt returns the value of the 'deleted_at' attribute, or the zero value of the type if the attribute doesn't have a value.

Object deletion timestamp.

func (*User) Email

func (o *User) Email() string

Email returns the value of the 'email' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*User) Empty

func (o *User) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*User) FromAuth

func (o *User) FromAuth() bool

FromAuth returns the value of the 'from_auth' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*User) GetCreatedAt

func (o *User) GetCreatedAt() (value time.Time, ok bool)

GetCreatedAt returns the value of the 'created_at' attribute and a flag indicating if the attribute has a value.

Object creation timestamp.

func (*User) GetDeletedAt

func (o *User) GetDeletedAt() (value time.Time, ok bool)

GetDeletedAt returns the value of the 'deleted_at' attribute and a flag indicating if the attribute has a value.

Object deletion timestamp.

func (*User) GetEmail

func (o *User) GetEmail() (value string, ok bool)

GetEmail returns the value of the 'email' attribute and a flag indicating if the attribute has a value.

func (*User) GetFromAuth

func (o *User) GetFromAuth() (value bool, ok bool)

GetFromAuth returns the value of the 'from_auth' attribute and a flag indicating if the attribute has a value.

func (*User) GetHREF

func (o *User) GetHREF() (value string, ok bool)

GetHREF returns the link of the object and a flag indicating if the link has a value.

func (*User) GetID

func (o *User) GetID() (value string, ok bool)

GetID returns the identifier of the object and a flag indicating if the identifier has a value.

func (*User) GetName

func (o *User) GetName() (value string, ok bool)

GetName returns the value of the 'name' attribute and a flag indicating if the attribute has a value.

func (*User) GetUpdatedAt

func (o *User) GetUpdatedAt() (value time.Time, ok bool)

GetUpdatedAt returns the value of the 'updated_at' attribute and a flag indicating if the attribute has a value.

Object modification timestamp.

func (*User) GetUsername

func (o *User) GetUsername() (value string, ok bool)

GetUsername returns the value of the 'username' attribute and a flag indicating if the attribute has a value.

func (*User) HREF

func (o *User) HREF() string

HREF returns the link to the object.

func (*User) ID

func (o *User) ID() string

ID returns the identifier of the object.

func (*User) Kind

func (o *User) Kind() string

Kind returns the name of the type of the object.

func (o *User) Link() bool

Link returns true if this is a link.

func (*User) Name

func (o *User) Name() string

Name returns the value of the 'name' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*User) UpdatedAt

func (o *User) UpdatedAt() time.Time

UpdatedAt returns the value of the 'updated_at' attribute, or the zero value of the type if the attribute doesn't have a value.

Object modification timestamp.

func (*User) Username

func (o *User) Username() string

Username returns the value of the 'username' attribute, or the zero value of the type if the attribute doesn't have a value.

type UserBuilder

type UserBuilder struct {
	// contains filtered or unexported fields
}

Definition of a Web RCA user.

func NewUser

func NewUser() *UserBuilder

NewUser creates a new builder of 'user' objects.

func (*UserBuilder) Build

func (b *UserBuilder) Build() (object *User, err error)

Build creates a 'user' object using the configuration stored in the builder.

func (*UserBuilder) Copy

func (b *UserBuilder) Copy(object *User) *UserBuilder

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*UserBuilder) CreatedAt

func (b *UserBuilder) CreatedAt(value time.Time) *UserBuilder

CreatedAt sets the value of the 'created_at' attribute to the given value.

func (*UserBuilder) DeletedAt

func (b *UserBuilder) DeletedAt(value time.Time) *UserBuilder

DeletedAt sets the value of the 'deleted_at' attribute to the given value.

func (*UserBuilder) Email

func (b *UserBuilder) Email(value string) *UserBuilder

Email sets the value of the 'email' attribute to the given value.

func (*UserBuilder) Empty

func (b *UserBuilder) Empty() bool

Empty returns true if the builder is empty, i.e. no attribute has a value.

func (*UserBuilder) FromAuth

func (b *UserBuilder) FromAuth(value bool) *UserBuilder

FromAuth sets the value of the 'from_auth' attribute to the given value.

func (*UserBuilder) HREF

func (b *UserBuilder) HREF(value string) *UserBuilder

HREF sets the link to the object.

func (*UserBuilder) ID

func (b *UserBuilder) ID(value string) *UserBuilder

ID sets the identifier of the object.

func (b *UserBuilder) Link(value bool) *UserBuilder

Link sets the flag that indicates if this is a link.

func (*UserBuilder) Name

func (b *UserBuilder) Name(value string) *UserBuilder

Name sets the value of the 'name' attribute to the given value.

func (*UserBuilder) UpdatedAt

func (b *UserBuilder) UpdatedAt(value time.Time) *UserBuilder

UpdatedAt sets the value of the 'updated_at' attribute to the given value.

func (*UserBuilder) Username

func (b *UserBuilder) Username(value string) *UserBuilder

Username sets the value of the 'username' attribute to the given value.

type UserList

type UserList struct {
	// contains filtered or unexported fields
}

UserList is a list of values of the 'user' type.

func (*UserList) Each

func (l *UserList) Each(f func(item *User) bool)

Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*UserList) Empty

func (l *UserList) Empty() bool

Empty returns true if the list is empty.

func (*UserList) Get

func (l *UserList) Get(i int) *User

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*UserList) GetHREF

func (l *UserList) GetHREF() (value string, ok bool)

GetHREF returns the link of the list and a flag indicating if the link has a value.

func (*UserList) HREF

func (l *UserList) HREF() string

HREF returns the link to the list.

func (*UserList) Items

func (l *UserList) Items() []*User

Items returns the items of the list.

func (*UserList) Kind

func (l *UserList) Kind() string

Kind returns the name of the type of the object.

func (*UserList) Len

func (l *UserList) Len() int

Len returns the length of the list.

func (l *UserList) Link() bool

Link returns true iif this is a link.

func (*UserList) Range

func (l *UserList) Range(f func(index int, item *User) bool)

Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*UserList) SetHREF

func (l *UserList) SetHREF(href string)

Items sets the items of the list.

func (*UserList) SetItems

func (l *UserList) SetItems(items []*User)

Items sets the items of the list.

func (l *UserList) SetLink(link bool)

Items sets the items of the list.

func (*UserList) Slice

func (l *UserList) Slice() []*User

Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.

If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.

type UserListBuilder

type UserListBuilder struct {
	// contains filtered or unexported fields
}

UserListBuilder contains the data and logic needed to build 'user' objects.

func NewUserList

func NewUserList() *UserListBuilder

NewUserList creates a new builder of 'user' objects.

func (*UserListBuilder) Build

func (b *UserListBuilder) Build() (list *UserList, err error)

Build creates a list of 'user' objects using the configuration stored in the builder.

func (*UserListBuilder) Copy

func (b *UserListBuilder) Copy(list *UserList) *UserListBuilder

Copy copies the items of the given list into this builder, discarding any previous items.

func (*UserListBuilder) Empty

func (b *UserListBuilder) Empty() bool

Empty returns true if the list is empty.

func (*UserListBuilder) Items

func (b *UserListBuilder) Items(values ...*UserBuilder) *UserListBuilder

Items sets the items of the list.

Source Files

Jump to

Keyboard shortcuts

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