convert

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: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrCreateChartRequestJSONIsEmpty = errors.New("create chart JSON is empty")

ErrCreateChartRequestJSONIsEmpty represents error message about empty create chart JSON.

Functions

func CreateChartRequestToRenderChartRequest

func CreateChartRequestToRenderChartRequest(request *render.CreateChartRequest) (*render.RenderChartRequest, error)

CreateChartRequestToRenderChartRequest validates CreateChartRequest to RenderChartRequest.

func JSONToCreateChartRequest added in v0.1.0

func JSONToCreateChartRequest(reqJSON *view.CreateChartRequest) (*render.CreateChartRequest, error)

JSONToCreateChartRequest converts JSON view representation to *render.CreateChartRequest.

func RenderChartReplyToAPIChartReply

func RenderChartReplyToAPIChartReply(reqID, chartID string, ts time.Time, rep *render.RenderChartReply) *render.ChartReply

RenderChartReplyToAPIChartReply converts RenderChartReply to ChartReply.

Types

This section is empty.

Jump to

Keyboard shortcuts

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