chart

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 21, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Routes

func Routes(log *zerolog.Logger, b backend.Backend, mrec metric.Recorder) http.Handler

Routes implements HTTP handler for charts requests.

Types

type Chart

type Chart struct {
	// Chart representation.
	//
	// in: body
	Body struct {
		Chart *view.ChartReply `json:"chart"`
	}
}

Chart representation.

swagger:response chartRepr

func NewCreatedChartFromReply

func NewCreatedChartFromReply(chartReply *render.ChartReply) *Chart

NewCreatedChartFromReply returns a new created chart representation from protobuf reply.

func (*Chart) MarshalJSON

func (r *Chart) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL