go-swagger: github.com/go-swagger/go-swagger/examples/todo-list/models Index | Files

package models

import "github.com/go-swagger/go-swagger/examples/todo-list/models"

Index

Package Files

error.go item.go

type Error Uses

type Error struct {

    // code
    Code int64 `json:"code,omitempty"`

    // message
    // Required: true
    Message *string `json:"message"`
}

Error error swagger:model error

func (*Error) MarshalBinary Uses

func (m *Error) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Error) UnmarshalBinary Uses

func (m *Error) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Error) Validate Uses

func (m *Error) Validate(formats strfmt.Registry) error

Validate validates this error

type Item Uses

type Item struct {

    // completed
    Completed bool `json:"completed,omitempty"`

    // description
    // Required: true
    // Min Length: 1
    Description *string `json:"description"`

    // id
    // Read Only: true
    ID  int64 `json:"id,omitempty"`
}

Item item swagger:model item

func (*Item) MarshalBinary Uses

func (m *Item) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Item) UnmarshalBinary Uses

func (m *Item) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Item) Validate Uses

func (m *Item) Validate(formats strfmt.Registry) error

Validate validates this item

Package models imports 4 packages (graph) and is imported by 26 packages. Updated 2018-07-05. Refresh now. Tools for package owners.