models

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 21, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error struct {

	// code
	// Required: true
	Code *int64 `json:"code"`

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

Error error

swagger:model Error

func (*Error) MarshalBinary

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

MarshalBinary interface implementation

func (*Error) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Error) Validate

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

Validate validates this error

type Result

type Result struct {

	// The line with a match to the search query.
	Line string `json:"line,omitempty"`

	// The line numbers in the text file this line is found on.
	LineNumbers []int64 `json:"lineNumbers"`

	// The indexes in the line that matched the query.
	MatchedIndexes []int64 `json:"matchedIndexes"`
}

Result result

swagger:model Result

func (*Result) MarshalBinary

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

MarshalBinary interface implementation

func (*Result) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Result) Validate

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

Validate validates this result

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL