Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) RunServer ¶
RunServer @title Task Store @version 1.0 @description Task store - accepts commands and exposes JSON-RPC API @termsOfService http://swagger.io/terms/ @contact.name Alex @contact.email abondar24@yahoo.com @license.name MIT @host localhost:8081 @BasePath /
type TaskRPC ¶
type TaskRPC struct {
// contains filtered or unexported fields
}
func NewTaskRPC ¶
func NewTaskRPC(taskService service.TaskService) *TaskRPC
func (*TaskRPC) GetTask ¶
GetTask @Summary Get tasks @Description fetch task by id,status or history. By id or status data.task is returned @Tags tasks @Accept json @Produce json @Param rpcRequest body rpc.TaskRPCRequest true "RPC Request" @Param rpcRequest body rpc.TaskRPCRequest true "RPC Request for status" @Success 200 {object} data.Task @Success 200 {object} data.TaskHistory @BadRequest 400 @Router /rpc [post]