Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct { // The category of event // Required: true // Max Length: 255 Category *string `json:"category"` // The event main content (text message) // Max Length: 10000 Content string `json:"content,omitempty"` // The title of event // Required: true // Max Length: 255 Owner *string `json:"owner"` // The title of event // Required: true // Max Length: 255 Title *string `json:"title"` // id ID ObjectID `json:"_id,omitempty"` // date // Required: true Date *TimeSpan `json:"date"` }
Event Event defines the structure for an API event
swagger:model Event
func (*Event) MarshalBinary ¶
MarshalBinary interface implementation
func (*Event) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Events ¶
type Events []*Event
Events Events is a type definition for slice of Event pointers
swagger:model Events
type GenericError ¶
type GenericError struct { // message Message string `json:"message,omitempty"` }
GenericError GenericError is a generic error message returned by a server
swagger:model GenericError
func (*GenericError) MarshalBinary ¶
func (m *GenericError) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GenericError) UnmarshalBinary ¶
func (m *GenericError) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ObjectID ¶
type ObjectID []uint8
ObjectID ObjectID is the BSON ObjectID type.
swagger:model ObjectID
type TimeSpan ¶
type TimeSpan struct { // The event start time in RFC3339 standard ("2006-01-02T15:04:05Z07:00") // Required: true // Format: date-time Start *strfmt.DateTime `json:"start"` // The event stop time in RFC3339 standard ("2006-01-02T15:04:05Z07:00") // Required: true // Format: date-time Stop *strfmt.DateTime `json:"stop"` }
TimeSpan TimeSpan is an struct representing event start and end time
swagger:model TimeSpan
func (*TimeSpan) MarshalBinary ¶
MarshalBinary interface implementation
func (*TimeSpan) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type ValidationError ¶
type ValidationError struct { // messages Messages []string `json:"messages"` }
ValidationError ValidationError is a collection of validation error messages
swagger:model ValidationError
func (*ValidationError) MarshalBinary ¶
func (m *ValidationError) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ValidationError) UnmarshalBinary ¶
func (m *ValidationError) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation