Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrChartOption = errors.New("topster: invalid chart option")
ErrChartOption is returned when an invalid chart option is set.
Functions ¶
This section is empty.
Types ¶
type ChartOption ¶
type ChartOption func(*chartOptions)
ChartOption configures a chart.
func BackgroundColor ¶
func BackgroundColor(bgc string) ChartOption
BackgroundColor sets a chart's background color.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is an API client that interacts with a companion microgopster instance.
func (*Client) CreateChart ¶
CreateChart creates a chart using the configured microgopster instance and returns it as a Base64 encoded string.
Click to show internal directories.
Click to hide internal directories.