Documentation ¶
Index ¶
- Variables
- func CreateChartRequestToRenderChartRequest(request *render.CreateChartRequest) (*render.RenderChartRequest, error)
- func JSONToCreateChartRequest(reqJSON *view.CreateChartRequest) (*render.CreateChartRequest, error)
- func RenderChartReplyToAPIChartReply(reqID, chartID string, ts time.Time, rep *render.RenderChartReply) *render.ChartReply
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.
Click to show internal directories.
Click to hide internal directories.