Documentation ¶
Index ¶
- Constants
- Variables
- type CSVOpts
- type Opts
- type RenderCSVResult
- type RenderResult
- type RenderType
- type RenderUser
- type RenderingService
- func (rs *RenderingService) GetRenderUser(key string) (*RenderUser, bool)
- func (rs *RenderingService) IsAvailable() bool
- func (rs *RenderingService) Render(ctx context.Context, opts Opts) (*RenderResult, error)
- func (rs *RenderingService) RenderCSV(ctx context.Context, opts CSVOpts) (*RenderCSVResult, error)
- func (rs *RenderingService) RenderErrorImage(theme Theme, err error) (*RenderResult, error)
- func (rs *RenderingService) Run(ctx context.Context) error
- func (rs *RenderingService) Version() string
- type Service
- type Theme
Constants ¶
View Source
const ServiceName = "RenderingService"
Variables ¶
View Source
var ErrConcurrentLimitReached = errors.New("rendering concurrent limit reached")
View Source
var ErrTimeout = errors.New("timeout error - you can set timeout in seconds with &timeout url parameter")
Functions ¶
This section is empty.
Types ¶
type RenderCSVResult ¶
type RenderResult ¶
type RenderResult struct {
FilePath string
}
type RenderType ¶
type RenderType string
const ( RenderCSV RenderType = "csv" RenderPNG RenderType = "png" )
type RenderUser ¶
type RenderingService ¶
type RenderingService struct { Cfg *setting.Cfg RemoteCacheService *remotecache.RemoteCache RendererPluginManager plugins.RendererManager // contains filtered or unexported fields }
func ProvideService ¶
func ProvideService(cfg *setting.Cfg, remoteCache *remotecache.RemoteCache, rm plugins.RendererManager) (*RenderingService, error)
func (*RenderingService) GetRenderUser ¶
func (rs *RenderingService) GetRenderUser(key string) (*RenderUser, bool)
func (*RenderingService) IsAvailable ¶
func (rs *RenderingService) IsAvailable() bool
func (*RenderingService) Render ¶
func (rs *RenderingService) Render(ctx context.Context, opts Opts) (*RenderResult, error)
func (*RenderingService) RenderCSV ¶
func (rs *RenderingService) RenderCSV(ctx context.Context, opts CSVOpts) (*RenderCSVResult, error)
func (*RenderingService) RenderErrorImage ¶
func (rs *RenderingService) RenderErrorImage(theme Theme, err error) (*RenderResult, error)
func (*RenderingService) Version ¶
func (rs *RenderingService) Version() string
type Service ¶
type Service interface { IsAvailable() bool Version() string Render(ctx context.Context, opts Opts) (*RenderResult, error) RenderCSV(ctx context.Context, opts CSVOpts) (*RenderCSVResult, error) RenderErrorImage(theme Theme, error error) (*RenderResult, error) GetRenderUser(key string) (*RenderUser, bool) }
Click to show internal directories.
Click to hide internal directories.