Documentation
¶
Index ¶
- type CancelBodyRequest
- type CancelRequest
- type DetailRequest
- type DetailResponse
- type EventItem
- type EventsRequest
- type EventsResponse
- type Handler
- type Item
- type ListRequest
- type ListResponse
- type Service
- func (s *Service) Cancel(ctx context.Context, req *CancelRequest) error
- func (s *Service) Detail(ctx context.Context, req *DetailRequest) (*DetailResponse, error)
- func (s *Service) Events(ctx context.Context, req *EventsRequest) (*EventsResponse, error)
- func (s *Service) List(ctx context.Context, req *ListRequest) (*ListResponse, error)
- func (s *Service) Start(ctx context.Context, req *StartRequest) (*StartResponse, error)
- type StartRequest
- type StartResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CancelBodyRequest ¶
type CancelBodyRequest struct {
ID string `json:"id"`
}
type CancelRequest ¶
type CancelRequest struct {
ID string `uri:"id"`
}
type DetailRequest ¶
type DetailRequest struct {
ID string `uri:"id"`
}
type DetailResponse ¶
type DetailResponse struct {
ID string `json:"id"`
FunctionID string `json:"function_id,omitempty"`
Status string `json:"status,omitempty"`
Progress int32 `json:"progress,omitempty"`
Message string `json:"message,omitempty"`
GameID string `json:"game_id,omitempty"`
Env string `json:"env,omitempty"`
AgentID string `json:"agent_id,omitempty"`
Result interface{} `json:"result,omitempty"`
Error string `json:"error,omitempty"`
StartedAt string `json:"started_at,omitempty"`
FinishedAt string `json:"finished_at,omitempty"`
CreatedAt string `json:"created_at,omitempty"`
UpdatedAt string `json:"updated_at,omitempty"`
}
type EventsRequest ¶
type EventsResponse ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func (*Handler) CancelByBody ¶
type Item ¶
type Item struct {
ID string `json:"id"`
FunctionID string `json:"function_id,omitempty"`
Status string `json:"status,omitempty"`
Progress int32 `json:"progress,omitempty"`
Message string `json:"message,omitempty"`
GameID string `json:"game_id,omitempty"`
Env string `json:"env,omitempty"`
AgentID string `json:"agent_id,omitempty"`
StartedAt string `json:"started_at,omitempty"`
FinishedAt string `json:"finished_at,omitempty"`
CreatedAt string `json:"created_at,omitempty"`
Error string `json:"error,omitempty"`
}
type ListRequest ¶
type ListResponse ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(svcCtx *svc.ServiceContext) *Service
func (*Service) Detail ¶
func (s *Service) Detail(ctx context.Context, req *DetailRequest) (*DetailResponse, error)
func (*Service) Events ¶
func (s *Service) Events(ctx context.Context, req *EventsRequest) (*EventsResponse, error)
func (*Service) List ¶
func (s *Service) List(ctx context.Context, req *ListRequest) (*ListResponse, error)
func (*Service) Start ¶
func (s *Service) Start(ctx context.Context, req *StartRequest) (*StartResponse, error)
type StartRequest ¶
type StartRequest struct {
FunctionID string `json:"function_id"`
Params interface{} `json:"params"`
}
type StartResponse ¶
Click to show internal directories.
Click to hide internal directories.