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.

miscellaneous.go 954B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. // Copyright 2015 The Gogs Authors. All rights reserved.
  2. // Use of this source code is governed by a MIT-style
  3. // license that can be found in the LICENSE file.
  4. package structs
  5. // SearchResults results of a successful search
  6. type SearchResults struct {
  7. OK bool `json:"ok"`
  8. Data []*Repository `json:"data"`
  9. }
  10. // SearchError error of a failed search
  11. type SearchError struct {
  12. OK bool `json:"ok"`
  13. Error string `json:"error"`
  14. }
  15. // MarkdownOption markdown options
  16. type MarkdownOption struct {
  17. // Text markdown to render
  18. //
  19. // in: body
  20. Text string
  21. // Mode to render
  22. //
  23. // in: body
  24. Mode string
  25. // Context to render
  26. //
  27. // in: body
  28. Context string
  29. // Is it a wiki page ?
  30. //
  31. // in: body
  32. Wiki bool
  33. }
  34. // MarkdownRender is a rendered markdown document
  35. // swagger:response MarkdownRender
  36. type MarkdownRender string
  37. // ServerVersion wraps the version of the server
  38. type ServerVersion struct {
  39. Version string `json:"version"`
  40. }