Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client interface { CreateSearchJob(ctx context.Context, req *CreateSearchJobReq) (*CreateSearchJobRes, error) GetSearchJobByID(ctx context.Context, req *GetSearchJobByIDReq) (*GetSearchJobByIDRes, error) GetSearchJobResults(ctx context.Context, req *GetSearchJobResultsReq) (*GetSearchJobResultsRes, error) }
type CreateSearchJobReq ¶
type CreateSearchJobReq struct { ID string `url:"id"` ExecMode string `url:"exec_mode"` Search string `url:"search"` StatusBuckets *int `url:"status_buckets,omitempty"` MaxCount *int `url:"max_count,omitempty"` RF []string `url:"rf,omitempty"` EarliestTime *string `url:"earliest_time,omitempty"` LatestTime *string `url:"latest_time,omitempty"` }
type CreateSearchJobRes ¶
type CreateSearchJobRes struct {
Sid string `json:"sid"`
}
type DispatchState ¶
type DispatchState string
const ( DispatchStateQueued DispatchState = "QUEUED" DispatchStateParsing DispatchState = "PARSING" DispatchStateRunning DispatchState = "RUNNING" DispatchStateFinalizing DispatchState = "FINALIZING" DispatchStateDone DispatchState = "DONE" DispatchStatePause DispatchState = "PAUSE" DispatchStateInternalCancel DispatchState = "INTERNAL_CANCEL" DispatchStateUserCancel DispatchState = "USER_CANCEL" DispatchStateBadInputCancel DispatchState = "BAD_INPUT_CANCEL" DispatchStateQuit DispatchState = "QUIT" DispatchStateFailed DispatchState = "FAILED" )
func (DispatchState) Done ¶
func (d DispatchState) Done() bool
func (DispatchState) Failed ¶
func (d DispatchState) Failed() bool
func (DispatchState) Wait ¶
func (d DispatchState) Wait() bool
type GetSearchJobByIDReq ¶
type GetSearchJobByIDReq struct {
ID string
}
type GetSearchJobByIDRes ¶
type GetSearchJobByIDRes struct {
DispatchState DispatchState `json:"dispatchState"`
}
type GetSearchJobResultsReq ¶
type GetSearchJobResultsRes ¶
type GetSearchJobResultsRes struct {
Results []any `json:"results"`
}
Click to show internal directories.
Click to hide internal directories.