You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
954 B
47 lines
954 B
8 years ago
|
// Copyright 2015 The Gogs Authors. All rights reserved.
|
||
|
// Use of this source code is governed by a MIT-style
|
||
|
// license that can be found in the LICENSE file.
|
||
|
|
||
6 years ago
|
package structs
|
||
8 years ago
|
|
||
7 years ago
|
// SearchResults results of a successful search
|
||
8 years ago
|
type SearchResults struct {
|
||
|
OK bool `json:"ok"`
|
||
|
Data []*Repository `json:"data"`
|
||
|
}
|
||
|
|
||
7 years ago
|
// SearchError error of a failed search
|
||
8 years ago
|
type SearchError struct {
|
||
|
OK bool `json:"ok"`
|
||
|
Error string `json:"error"`
|
||
|
}
|
||
|
|
||
8 years ago
|
// MarkdownOption markdown options
|
||
8 years ago
|
type MarkdownOption struct {
|
||
8 years ago
|
// Text markdown to render
|
||
|
//
|
||
|
// in: body
|
||
|
Text string
|
||
|
// Mode to render
|
||
|
//
|
||
|
// in: body
|
||
|
Mode string
|
||
|
// Context to render
|
||
|
//
|
||
|
// in: body
|
||
8 years ago
|
Context string
|
||
8 years ago
|
// Is it a wiki page ?
|
||
|
//
|
||
|
// in: body
|
||
|
Wiki bool
|
||
8 years ago
|
}
|
||
8 years ago
|
|
||
8 years ago
|
// MarkdownRender is a rendered markdown document
|
||
|
// swagger:response MarkdownRender
|
||
|
type MarkdownRender string
|
||
|
|
||
8 years ago
|
// ServerVersion wraps the version of the server
|
||
|
type ServerVersion struct {
|
||
7 years ago
|
Version string `json:"version"`
|
||
8 years ago
|
}
|