// 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"
)

// ProbeResult probe result
//
// swagger:model ProbeResult
type ProbeResult struct {

	// error
	Error string `json:"error,omitempty"`

	// protocol
	Protocol string `json:"protocol,omitempty"`

	// response time ms
	ResponseTimeMs int64 `json:"response-time-ms,omitempty"`
}

// Validate validates this probe result
func (m *ProbeResult) Validate(formats strfmt.Registry) error {
	return nil
}

// ContextValidate validates this probe result based on context it is used
func (m *ProbeResult) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
	return nil
}

// MarshalBinary interface implementation
func (m *ProbeResult) MarshalBinary() ([]byte, error) {
	if m == nil {
		return nil, nil
	}
	return swag.WriteJSON(m)
}

// UnmarshalBinary interface implementation
func (m *ProbeResult) UnmarshalBinary(b []byte) error {
	var res ProbeResult
	if err := swag.ReadJSON(b, &res); err != nil {
		return err
	}
	*m = res
	return nil
}
