Documentation
¶
Index ¶
- type AssignmentsHistoryRequest
- type AssignmentsHistoryResponse
- type AssignmentsListRequest
- type AssignmentsListResponse
- type AssignmentsUpdateRequest
- type AssignmentsUpdateResponse
- type Handler
- type Service
- func (s *Service) History(ctx context.Context, req *AssignmentsHistoryRequest) (*AssignmentsHistoryResponse, error)
- func (s *Service) List(ctx context.Context, req *AssignmentsListRequest) (*AssignmentsListResponse, error)
- func (s *Service) Update(ctx context.Context, req *AssignmentsUpdateRequest) (*AssignmentsUpdateResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssignmentsHistoryRequest ¶
type AssignmentsHistoryRequest struct {
Page int `form:"page"`
PageSize int `form:"pageSize"`
GameId string `form:"game_id"`
Env string `form:"env"`
Action string `form:"action"`
}
AssignmentsHistoryRequest represents a request to list assignment history.
type AssignmentsHistoryResponse ¶
type AssignmentsHistoryResponse struct {
Items []assignmentHistoryEntry `json:"items"`
Total int `json:"total"`
Page int `json:"page"`
PageSize int `json:"pageSize"`
}
AssignmentsHistoryResponse represents the canonical history list response.
type AssignmentsListRequest ¶
type AssignmentsListRequest struct {
Page int `form:"page"`
PageSize int `form:"pageSize"`
GameId string `form:"game_id"`
Env string `form:"env"`
}
AssignmentsListRequest represents a request to list assignments.
type AssignmentsListResponse ¶
type AssignmentsListResponse struct {
Assignments map[string][]string `json:"assignments"`
Total int `json:"total"`
Page int `json:"page"`
PageSize int `json:"pageSize"`
}
AssignmentsListResponse represents the canonical list response for assignments.
type AssignmentsUpdateRequest ¶
type AssignmentsUpdateRequest struct {
GameId string `json:"game_id"`
Env string `json:"env"`
Action string `json:"action"` // assign/clone/remove
Functions []string `json:"functions"`
}
AssignmentsUpdateRequest represents a request to update assignments.
type AssignmentsUpdateResponse ¶
type AssignmentsUpdateResponse struct {
OK bool `json:"ok"`
Unknown []string `json:"unknown,omitempty"`
Assignments map[string][]string `json:"assignments,omitempty"`
}
AssignmentsUpdateResponse represents the canonical update response.
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(svcCtx *svc.ServiceContext) *Service
func (*Service) History ¶
func (s *Service) History(ctx context.Context, req *AssignmentsHistoryRequest) (*AssignmentsHistoryResponse, error)
History returns the history of assignments
func (*Service) List ¶
func (s *Service) List(ctx context.Context, req *AssignmentsListRequest) (*AssignmentsListResponse, error)
List returns the list of assignments
func (*Service) Update ¶
func (s *Service) Update(ctx context.Context, req *AssignmentsUpdateRequest) (*AssignmentsUpdateResponse, error)
Update updates assignments
Click to show internal directories.
Click to hide internal directories.