autogits/bots-common/gitea-generated/models/node_info_services.go

54 lines
1.3 KiB
Go
Raw Normal View History

2024-07-07 21:08:41 +02:00
// 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
}