mirror of
https://github.com/grafana/grafana.git
synced 2025-07-29 17:12:29 +08:00
Chore: Refactor render via http (#84613)
This commit is contained in:

committed by
GitHub

parent
a7a503501a
commit
c9c6445554
@ -42,18 +42,25 @@ func getRequestTimeout(opt TimeoutOpts) time.Duration {
|
||||
return opt.Timeout * opt.RequestTimeoutMultiplier
|
||||
}
|
||||
|
||||
type Opts struct {
|
||||
type CommonOpts struct {
|
||||
TimeoutOpts
|
||||
AuthOpts
|
||||
Path string
|
||||
Timezone string
|
||||
ConcurrentLimit int
|
||||
Headers map[string][]string
|
||||
}
|
||||
|
||||
type CSVOpts struct {
|
||||
CommonOpts
|
||||
}
|
||||
|
||||
type Opts struct {
|
||||
CommonOpts
|
||||
ErrorOpts
|
||||
Width int
|
||||
Height int
|
||||
Path string
|
||||
Encoding string
|
||||
Timezone string
|
||||
ConcurrentLimit int
|
||||
DeviceScaleFactor float64
|
||||
Headers map[string][]string
|
||||
Theme models.Theme
|
||||
}
|
||||
|
||||
@ -75,14 +82,9 @@ type SanitizeSVGResponse struct {
|
||||
Sanitized []byte
|
||||
}
|
||||
|
||||
type CSVOpts struct {
|
||||
TimeoutOpts
|
||||
AuthOpts
|
||||
Path string
|
||||
Encoding string
|
||||
Timezone string
|
||||
ConcurrentLimit int
|
||||
Headers map[string][]string
|
||||
type Result struct {
|
||||
FilePath string
|
||||
FileName string
|
||||
}
|
||||
|
||||
type RenderResult struct {
|
||||
|
Reference in New Issue
Block a user