summaryrefslogtreecommitdiffstats
path: root/vendor/code.gitea.io/sdk/gitea/miscellaneous.go
blob: dc56177ca620863c38cc91468d9df89a40d1f1bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// 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.

package gitea

// MarkdownOption markdown options
type MarkdownOption struct {
	Text    string
	Mode    string
	Context string
	Wiki    bool
}

// ServerVersion wraps the version of the server
type ServerVersion struct {
	Version string
}

// ServerVersion returns the version of the server
func (c *Client) ServerVersion() (string, error) {
	v := ServerVersion{}
	return v.Version, c.getParsedResponse("GET", "/api/v1/version", nil, nil, &v)
}