go-gitea/models/node_info_services.go
jolheiser 021242f2ad
initial commit
Signed-off-by: jolheiser <john.olheiser@gmail.com>
2023-04-11 22:59:19 -05:00

54 lines
1.3 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"
)
// NodeInfoServices NodeInfoServices contains the third party sites this server can connect to via their application API
//
// swagger:model NodeInfoServices
type NodeInfoServices struct {
// inbound
Inbound []string `json:"inbound"`
// outbound
Outbound []string `json:"outbound"`
}
// Validate validates this node info services
func (m *NodeInfoServices) Validate(formats strfmt.Registry) error {
return nil
}
// ContextValidate validates this node info services based on context it is used
func (m *NodeInfoServices) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
return nil
}
// MarshalBinary interface implementation
func (m *NodeInfoServices) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *NodeInfoServices) UnmarshalBinary(b []byte) error {
var res NodeInfoServices
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}