Documentation ¶
Index ¶
- Constants
- type Result
- type ResultSet
- func (rs *ResultSet) AddResult(r *Result)
- func (rs *ResultSet) Empty() bool
- func (rs *ResultSet) First() *Result
- func (rs *ResultSet) Last() *Result
- func (rs *ResultSet) Len() int
- func (rs *ResultSet) Less(i, j int) bool
- func (rs *ResultSet) PrintAll()
- func (rs *ResultSet) PrintFirst()
- func (rs *ResultSet) Swap(i, j int)
- type Status
Constants ¶
View Source
const ( // OK - Query completed successfully, with results OK = Status(0) // NotFound - Query completed successfully, without results NotFound = Status(1) Unavailable = Status(2) )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Result ¶
Result contains the information for a single query result
func (*Result) PrintSimple ¶
func (r *Result) PrintSimple()
PrintSimple only prints the version and the location of the latest release
type ResultSet ¶
type ResultSet struct {
// contains filtered or unexported fields
}
ResultSet is a collection of the Results of a Provider query
func NewResultSet ¶
NewResultSet creates as empty ResultSet for the provided query
func (*ResultSet) Less ¶
Less reports whether the element with index i should sort before the element with index j. (sort.Interface)
func (*ResultSet) PrintAll ¶
func (rs *ResultSet) PrintAll()
PrintAll pretty-prints an entire ResultSet
func (*ResultSet) PrintFirst ¶
func (rs *ResultSet) PrintFirst()
PrintFirst pretty-prints the first result
Click to show internal directories.
Click to hide internal directories.