Documentation ¶
Index ¶
- type APIClient
- type BaseResponse
- type CrowdApiService
- type ExperimentApiListExperimentsOpts
- type ExperimentApiService
- type ExperimentGroupApiListExperimentGroupsOpts
- type ExperimentGroupApiService
- type ExperimentRoomApiListExperimentRoomsOpts
- type ExperimentRoomApiService
- type FeatureConsistencyBackflowResponse
- type FeatureConsistencyCheckService
- func (a *FeatureConsistencyCheckService) BackflowFeatureConsistencyCheckJobData(backflowData *model.FeatureConsistencyBackflowData) (FeatureConsistencyBackflowResponse, error)
- func (a *FeatureConsistencyCheckService) SyncFeatureConsistencyCheckJobReplayLog(replyData *model.FeatureConsistencyReplyData) (FeatureConsistencyReplyResponse, error)
- type FeatureConsistencyReplyResponse
- type FlowCtrlApiListFlowCtrlPlansOpts
- type FlowCtrlApiService
- type LayerApiService
- type ListCrowdUsersResponse
- type ListExperimentGroupsResponse
- type ListExperimentRoomsResponse
- type ListExperimentsResponse
- type ListFlowCtrlPlansResponse
- type ListLayersResponse
- type ListParamsResponse
- type ListScenesResponse
- type ParamApiGetParamOpts
- type ParamApiService
- type Response
- type SceneApiService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIClient ¶
type APIClient struct { *pairecservice.Client // API Services ExperimentApi *ExperimentApiService ExperimentGroupApi *ExperimentGroupApiService ExperimentRoomApi *ExperimentRoomApiService LayerApi *LayerApiService SceneApi *SceneApiService ParamApi *ParamApiService CrowdApi *CrowdApiService FlowCtrlApi *FlowCtrlApiService FeatureConsistencyCheckApi *FeatureConsistencyCheckService // contains filtered or unexported fields }
APIClient manages communication with the Pairec Experiment Restful Api API v1.0.0 In most cases there should be only one, shared, APIClient.
func NewAPIClient ¶
NewAPIClient creates a new API client. Requires a userAgent string describing your application. optionally a custom http.Client to allow for advanced features such as caching.
type BaseResponse ¶
type CrowdApiService ¶
type CrowdApiService service
func (*CrowdApiService) GetCrowdUsersById ¶
func (a *CrowdApiService) GetCrowdUsersById(crowdId int64) (ListCrowdUsersResponse, error)
CrowdApiService Get Crowd users By crowd ID Get Crowd users By crowd ID
@return ListCrowdUsersResponse
type ExperimentApiService ¶
type ExperimentApiService service
func (*ExperimentApiService) ListExperiments ¶
func (a *ExperimentApiService) ListExperiments(expGroupId int64, localVarOptionals *ExperimentApiListExperimentsOpts) (ListExperimentsResponse, error)
type ExperimentGroupApiService ¶
type ExperimentGroupApiService service
func (*ExperimentGroupApiService) ListExperimentGroups ¶
func (a *ExperimentGroupApiService) ListExperimentGroups(layerId int64, localVarOptionals *ExperimentGroupApiListExperimentGroupsOpts) (ListExperimentGroupsResponse, error)
type ExperimentRoomApiService ¶
type ExperimentRoomApiService service
func (*ExperimentRoomApiService) ListExperimentRooms ¶
func (a *ExperimentRoomApiService) ListExperimentRooms(environment string, localVarOptionals *ExperimentRoomApiListExperimentRoomsOpts) (ListExperimentRoomsResponse, error)
type FeatureConsistencyBackflowResponse ¶ added in v2.0.2
type FeatureConsistencyBackflowResponse struct {
RequestId string `json:"RequestId"`
}
type FeatureConsistencyCheckService ¶ added in v2.0.2
type FeatureConsistencyCheckService service
func (*FeatureConsistencyCheckService) BackflowFeatureConsistencyCheckJobData ¶ added in v2.0.2
func (a *FeatureConsistencyCheckService) BackflowFeatureConsistencyCheckJobData(backflowData *model.FeatureConsistencyBackflowData) (FeatureConsistencyBackflowResponse, error)
BackflowFeatureConsistencyCheckJobData send backflow log data to pairec config server
@return FeatureConsistencyBackflowResponse
func (*FeatureConsistencyCheckService) SyncFeatureConsistencyCheckJobReplayLog ¶ added in v2.0.2
func (a *FeatureConsistencyCheckService) SyncFeatureConsistencyCheckJobReplayLog(replyData *model.FeatureConsistencyReplyData) (FeatureConsistencyReplyResponse, error)
SyncFeatureConsistencyCheckJobReplayLog send reply log data to pairec config server
@return FeatureConsistencyReplyResponse
type FeatureConsistencyReplyResponse ¶ added in v2.0.2
type FeatureConsistencyReplyResponse struct {
RequestId string `json:"RequestId"`
}
type FlowCtrlApiService ¶
type FlowCtrlApiService service
type LayerApiService ¶
type LayerApiService service
func (*LayerApiService) ListLayers ¶
func (a *LayerApiService) ListLayers(expRoomId int64) (ListLayersResponse, error)
LayerApiService list all Layers By filter condition
- @param expRoomId list all layers of the experiment room
@return Response
type ListCrowdUsersResponse ¶
type ListExperimentGroupsResponse ¶
type ListExperimentGroupsResponse struct {
ExperimentGroups []*model.ExperimentGroup
}
type ListExperimentRoomsResponse ¶
type ListExperimentRoomsResponse struct {
ExperimentRooms []*model.ExperimentRoom
}
type ListExperimentsResponse ¶
type ListExperimentsResponse struct {
Experiments []*model.Experiment
}
type ListFlowCtrlPlansResponse ¶
type ListFlowCtrlPlansResponse struct { BaseResponse Data struct { Plans []model.FlowCtrlPlan `json:"plans"` } `json:"data,omitempty"` }
type ListLayersResponse ¶
type ListParamsResponse ¶
type ListScenesResponse ¶
type ParamApiGetParamOpts ¶
type ParamApiService ¶
type ParamApiService service
func (*ParamApiService) GetParam ¶
func (a *ParamApiService) GetParam(sceneId int64, localVarOptionals *ParamApiGetParamOpts) (ListParamsResponse, error)
type Response ¶
type Response struct { BaseResponse Data map[string]interface{} `json:"data,omitempty"` }
type SceneApiService ¶
type SceneApiService service
func (*SceneApiService) ListAllScenes ¶
func (a *SceneApiService) ListAllScenes() (ListScenesResponse, error)
SceneApiService Get all scenes @return ListScenesResponse
Source Files ¶
- api_crowd.go
- api_experiment.go
- api_experiment_group.go
- api_experiment_room.go
- api_feature_consistency_check.go
- api_flow_ctrl.go
- api_layer.go
- api_param.go
- api_scene.go
- client.go
- response.go
- response_crowd_users.go
- response_experiment.go
- response_experiment_group.go
- response_experiment_room.go
- response_feature_consistency_backflow_response.go
- response_feature_consistency_reply_response.go
- response_flow_ctrl_plans.go
- response_layer.go
- response_param.go
- response_scene.go