mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
51 lines
960 B
Go
51 lines
960 B
Go
package models
|
|
|
|
// This file was generated by the swagger tool.
|
|
// Editing this file might prove futile when you re-run the swagger generate command
|
|
|
|
import (
|
|
strfmt "github.com/go-openapi/strfmt"
|
|
|
|
"github.com/go-openapi/errors"
|
|
"github.com/go-openapi/swag"
|
|
)
|
|
|
|
// Log log
|
|
// swagger:model Log
|
|
type Log struct {
|
|
|
|
// Call UUID ID
|
|
CallID string `json:"call_id,omitempty"`
|
|
|
|
// log
|
|
Log string `json:"log,omitempty"`
|
|
}
|
|
|
|
// Validate validates this log
|
|
func (m *Log) Validate(formats strfmt.Registry) error {
|
|
var res []error
|
|
|
|
if len(res) > 0 {
|
|
return errors.CompositeValidationError(res...)
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// MarshalBinary interface implementation
|
|
func (m *Log) MarshalBinary() ([]byte, error) {
|
|
if m == nil {
|
|
return nil, nil
|
|
}
|
|
return swag.WriteJSON(m)
|
|
}
|
|
|
|
// UnmarshalBinary interface implementation
|
|
func (m *Log) UnmarshalBinary(b []byte) error {
|
|
var res Log
|
|
if err := swag.ReadJSON(b, &res); err != nil {
|
|
return err
|
|
}
|
|
*m = res
|
|
return nil
|
|
}
|