Files
goldpinger/pkg/models/call_stats.go
Mikolaj Pawlikowski 3ff592b1e8 Re-generate using the latest swagger gen cli
Signed-off-by: Mikolaj Pawlikowski <mikolaj@pawlikowski.pl>
2021-03-12 11:30:53 +00:00

57 lines
1.2 KiB
Go

// Code generated by go-swagger; DO NOT EDIT.
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 (
"context"
"github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
)
// CallStats call stats
//
// swagger:model CallStats
type CallStats struct {
// check
Check int64 `json:"check,omitempty"`
// check all
CheckAll int64 `json:"check_all,omitempty"`
// ping
Ping int64 `json:"ping,omitempty"`
}
// Validate validates this call stats
func (m *CallStats) Validate(formats strfmt.Registry) error {
return nil
}
// ContextValidate validates this call stats based on context it is used
func (m *CallStats) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
return nil
}
// MarshalBinary interface implementation
func (m *CallStats) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *CallStats) UnmarshalBinary(b []byte) error {
var res CallStats
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}