Documentation
¶
Overview ¶
Package oapi provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.4.1 DO NOT EDIT.
Index ¶
- Constants
- func GetSwagger() (swagger *openapi3.T, err error)
- func NewDeleteApiProfilesProfileIdRequest(server string, profileId int) (*http.Request, error)
- func NewGetApiProfilesProfileIdRequest(server string, profileId int) (*http.Request, error)
- func NewGetApiProfilesRequest(server string) (*http.Request, error)
- func NewGetApiSourcesRedditSubredditsRequest(server string) (*http.Request, error)
- func NewGetApiSourcesRedditSubredditsWithProfileRequest(server string, params *GetApiSourcesRedditSubredditsWithProfileParams) (*http.Request, error)
- func NewGetApiStatisticsProfileIdRequest(server string, profileId int) (*http.Request, error)
- func NewPostApiAnalyzeRequest(server string, body PostApiAnalyzeJSONRequestBody) (*http.Request, error)
- func NewPostApiAnalyzeRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPostApiDetectionsListRequest(server string, body PostApiDetectionsListJSONRequestBody) (*http.Request, error)
- func NewPostApiDetectionsListRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPostApiProfilesProfileIdDryJumpstartRequest(server string, profileId int, ...) (*http.Request, error)
- func NewPostApiProfilesProfileIdDryJumpstartRequestWithBody(server string, profileId int, contentType string, body io.Reader) (*http.Request, error)
- func NewPostApiProfilesProfileIdJumpstartRequest(server string, profileId int, ...) (*http.Request, error)
- func NewPostApiProfilesProfileIdJumpstartRequestWithBody(server string, profileId int, contentType string, body io.Reader) (*http.Request, error)
- func NewPostApiProfilesRequest(server string, body PostApiProfilesJSONRequestBody) (*http.Request, error)
- func NewPostApiProfilesRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPostApiSourcesRedditSubredditsSubredditAddProfilesRequest(server string, subreddit string, ...) (*http.Request, error)
- func NewPostApiSourcesRedditSubredditsSubredditAddProfilesRequestWithBody(server string, subreddit string, contentType string, body io.Reader) (*http.Request, error)
- func NewPostApiSourcesRedditSubredditsSubredditRemoveProfilesRequest(server string, subreddit string, ...) (*http.Request, error)
- func NewPostApiSourcesRedditSubredditsSubredditRemoveProfilesRequestWithBody(server string, subreddit string, contentType string, body io.Reader) (*http.Request, error)
- func NewPutApiDetectionsTagsRequest(server string, body PutApiDetectionsTagsJSONRequestBody) (*http.Request, error)
- func NewPutApiDetectionsTagsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPutApiProfilesProfileIdRequest(server string, profileId int, body PutApiProfilesProfileIdJSONRequestBody) (*http.Request, error)
- func NewPutApiProfilesProfileIdRequestWithBody(server string, profileId int, contentType string, body io.Reader) (*http.Request, error)
- func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)
- func RegisterHandlers(router gin.IRouter, si ServerInterface)
- func RegisterHandlersWithOptions(router gin.IRouter, si ServerInterface, options GinServerOptions)
- type AnalysisTaskParameters
- type AnalyzeRequest
- type Client
- func (c *Client) DeleteApiProfilesProfileId(ctx context.Context, profileId int, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetApiProfiles(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetApiProfilesProfileId(ctx context.Context, profileId int, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetApiSourcesRedditSubreddits(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetApiSourcesRedditSubredditsWithProfile(ctx context.Context, params *GetApiSourcesRedditSubredditsWithProfileParams, ...) (*http.Response, error)
- func (c *Client) GetApiStatisticsProfileId(ctx context.Context, profileId int, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) PostApiAnalyze(ctx context.Context, body PostApiAnalyzeJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PostApiAnalyzeWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PostApiDetectionsList(ctx context.Context, body PostApiDetectionsListJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PostApiDetectionsListWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PostApiProfiles(ctx context.Context, body PostApiProfilesJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PostApiProfilesProfileIdDryJumpstart(ctx context.Context, profileId int, ...) (*http.Response, error)
- func (c *Client) PostApiProfilesProfileIdDryJumpstartWithBody(ctx context.Context, profileId int, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PostApiProfilesProfileIdJumpstart(ctx context.Context, profileId int, ...) (*http.Response, error)
- func (c *Client) PostApiProfilesProfileIdJumpstartWithBody(ctx context.Context, profileId int, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PostApiProfilesWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PostApiSourcesRedditSubredditsSubredditAddProfiles(ctx context.Context, subreddit string, ...) (*http.Response, error)
- func (c *Client) PostApiSourcesRedditSubredditsSubredditAddProfilesWithBody(ctx context.Context, subreddit string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PostApiSourcesRedditSubredditsSubredditRemoveProfiles(ctx context.Context, subreddit string, ...) (*http.Response, error)
- func (c *Client) PostApiSourcesRedditSubredditsSubredditRemoveProfilesWithBody(ctx context.Context, subreddit string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PutApiDetectionsTags(ctx context.Context, body PutApiDetectionsTagsJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PutApiDetectionsTagsWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PutApiProfilesProfileId(ctx context.Context, profileId int, ...) (*http.Response, error)
- func (c *Client) PutApiProfilesProfileIdWithBody(ctx context.Context, profileId int, contentType string, body io.Reader, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) DeleteApiProfilesProfileIdWithResponse(ctx context.Context, profileId int, reqEditors ...RequestEditorFn) (*DeleteApiProfilesProfileIdResponse, error)
- func (c *ClientWithResponses) GetApiProfilesProfileIdWithResponse(ctx context.Context, profileId int, reqEditors ...RequestEditorFn) (*GetApiProfilesProfileIdResponse, error)
- func (c *ClientWithResponses) GetApiProfilesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiProfilesResponse, error)
- func (c *ClientWithResponses) GetApiSourcesRedditSubredditsWithProfileWithResponse(ctx context.Context, params *GetApiSourcesRedditSubredditsWithProfileParams, ...) (*GetApiSourcesRedditSubredditsWithProfileResponse, error)
- func (c *ClientWithResponses) GetApiSourcesRedditSubredditsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiSourcesRedditSubredditsResponse, error)
- func (c *ClientWithResponses) GetApiStatisticsProfileIdWithResponse(ctx context.Context, profileId int, reqEditors ...RequestEditorFn) (*GetApiStatisticsProfileIdResponse, error)
- func (c *ClientWithResponses) PostApiAnalyzeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PostApiAnalyzeResponse, error)
- func (c *ClientWithResponses) PostApiAnalyzeWithResponse(ctx context.Context, body PostApiAnalyzeJSONRequestBody, ...) (*PostApiAnalyzeResponse, error)
- func (c *ClientWithResponses) PostApiDetectionsListWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PostApiDetectionsListResponse, error)
- func (c *ClientWithResponses) PostApiDetectionsListWithResponse(ctx context.Context, body PostApiDetectionsListJSONRequestBody, ...) (*PostApiDetectionsListResponse, error)
- func (c *ClientWithResponses) PostApiProfilesProfileIdDryJumpstartWithBodyWithResponse(ctx context.Context, profileId int, contentType string, body io.Reader, ...) (*PostApiProfilesProfileIdDryJumpstartResponse, error)
- func (c *ClientWithResponses) PostApiProfilesProfileIdDryJumpstartWithResponse(ctx context.Context, profileId int, ...) (*PostApiProfilesProfileIdDryJumpstartResponse, error)
- func (c *ClientWithResponses) PostApiProfilesProfileIdJumpstartWithBodyWithResponse(ctx context.Context, profileId int, contentType string, body io.Reader, ...) (*PostApiProfilesProfileIdJumpstartResponse, error)
- func (c *ClientWithResponses) PostApiProfilesProfileIdJumpstartWithResponse(ctx context.Context, profileId int, ...) (*PostApiProfilesProfileIdJumpstartResponse, error)
- func (c *ClientWithResponses) PostApiProfilesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PostApiProfilesResponse, error)
- func (c *ClientWithResponses) PostApiProfilesWithResponse(ctx context.Context, body PostApiProfilesJSONRequestBody, ...) (*PostApiProfilesResponse, error)
- func (c *ClientWithResponses) PostApiSourcesRedditSubredditsSubredditAddProfilesWithBodyWithResponse(ctx context.Context, subreddit string, contentType string, body io.Reader, ...) (*PostApiSourcesRedditSubredditsSubredditAddProfilesResponse, error)
- func (c *ClientWithResponses) PostApiSourcesRedditSubredditsSubredditAddProfilesWithResponse(ctx context.Context, subreddit string, ...) (*PostApiSourcesRedditSubredditsSubredditAddProfilesResponse, error)
- func (c *ClientWithResponses) PostApiSourcesRedditSubredditsSubredditRemoveProfilesWithBodyWithResponse(ctx context.Context, subreddit string, contentType string, body io.Reader, ...) (*PostApiSourcesRedditSubredditsSubredditRemoveProfilesResponse, error)
- func (c *ClientWithResponses) PostApiSourcesRedditSubredditsSubredditRemoveProfilesWithResponse(ctx context.Context, subreddit string, ...) (*PostApiSourcesRedditSubredditsSubredditRemoveProfilesResponse, error)
- func (c *ClientWithResponses) PutApiDetectionsTagsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PutApiDetectionsTagsResponse, error)
- func (c *ClientWithResponses) PutApiDetectionsTagsWithResponse(ctx context.Context, body PutApiDetectionsTagsJSONRequestBody, ...) (*PutApiDetectionsTagsResponse, error)
- func (c *ClientWithResponses) PutApiProfilesProfileIdWithBodyWithResponse(ctx context.Context, profileId int, contentType string, body io.Reader, ...) (*PutApiProfilesProfileIdResponse, error)
- func (c *ClientWithResponses) PutApiProfilesProfileIdWithResponse(ctx context.Context, profileId int, ...) (*PutApiProfilesProfileIdResponse, error)
- type ClientWithResponsesInterface
- type DeleteApiProfilesProfileId204Response
- type DeleteApiProfilesProfileId404Response
- type DeleteApiProfilesProfileId500JSONResponse
- type DeleteApiProfilesProfileIdRequestObject
- type DeleteApiProfilesProfileIdResponse
- type DeleteApiProfilesProfileIdResponseObject
- type Detection
- type DetectionFilter
- type DetectionListRequest
- type DetectionTagUpdateRequest
- type DetectionTags
- type DetectionTagsFilter
- type Error
- type GetApiProfiles200JSONResponse
- type GetApiProfiles401Response
- type GetApiProfiles500JSONResponse
- type GetApiProfilesProfileId200JSONResponse
- type GetApiProfilesProfileId404Response
- type GetApiProfilesProfileId500JSONResponse
- type GetApiProfilesProfileIdRequestObject
- type GetApiProfilesProfileIdResponse
- type GetApiProfilesProfileIdResponseObject
- type GetApiProfilesRequestObject
- type GetApiProfilesResponse
- type GetApiProfilesResponseObject
- type GetApiSourcesRedditSubreddits200JSONResponse
- type GetApiSourcesRedditSubreddits401Response
- type GetApiSourcesRedditSubreddits500JSONResponse
- type GetApiSourcesRedditSubredditsRequestObject
- type GetApiSourcesRedditSubredditsResponse
- type GetApiSourcesRedditSubredditsResponseObject
- type GetApiSourcesRedditSubredditsWithProfile200JSONResponse
- type GetApiSourcesRedditSubredditsWithProfile401Response
- type GetApiSourcesRedditSubredditsWithProfile500JSONResponse
- type GetApiSourcesRedditSubredditsWithProfileParams
- type GetApiSourcesRedditSubredditsWithProfileRequestObject
- type GetApiSourcesRedditSubredditsWithProfileResponse
- type GetApiSourcesRedditSubredditsWithProfileResponseObject
- type GetApiStatisticsProfileId200JSONResponse
- type GetApiStatisticsProfileId401Response
- type GetApiStatisticsProfileId404Response
- type GetApiStatisticsProfileId500JSONResponse
- type GetApiStatisticsProfileIdRequestObject
- type GetApiStatisticsProfileIdResponse
- type GetApiStatisticsProfileIdResponseObject
- type GinServerOptions
- type HttpRequestDoer
- type ListedDetection
- type MiddlewareFunc
- type PostApiAnalyze200JSONResponse
- type PostApiAnalyze500JSONResponse
- type PostApiAnalyzeJSONRequestBody
- type PostApiAnalyzeRequestObject
- type PostApiAnalyzeResponse
- type PostApiAnalyzeResponseObject
- type PostApiDetectionsList200JSONResponse
- type PostApiDetectionsList401Response
- type PostApiDetectionsList500JSONResponse
- type PostApiDetectionsListJSONRequestBody
- type PostApiDetectionsListRequestObject
- type PostApiDetectionsListResponse
- type PostApiDetectionsListResponseObject
- type PostApiProfiles201JSONResponse
- type PostApiProfiles500JSONResponse
- type PostApiProfilesJSONRequestBody
- type PostApiProfilesProfileIdDryJumpstart200JSONResponse
- type PostApiProfilesProfileIdDryJumpstart404Response
- type PostApiProfilesProfileIdDryJumpstart500JSONResponse
- type PostApiProfilesProfileIdDryJumpstartJSONRequestBody
- type PostApiProfilesProfileIdDryJumpstartRequestObject
- type PostApiProfilesProfileIdDryJumpstartResponse
- type PostApiProfilesProfileIdDryJumpstartResponseObject
- type PostApiProfilesProfileIdJumpstart204Response
- type PostApiProfilesProfileIdJumpstart404Response
- type PostApiProfilesProfileIdJumpstart500JSONResponse
- type PostApiProfilesProfileIdJumpstartJSONRequestBody
- type PostApiProfilesProfileIdJumpstartRequestObject
- type PostApiProfilesProfileIdJumpstartResponse
- type PostApiProfilesProfileIdJumpstartResponseObject
- type PostApiProfilesRequestObject
- type PostApiProfilesResponse
- type PostApiProfilesResponseObject
- type PostApiSourcesRedditSubredditsSubredditAddProfiles204Response
- type PostApiSourcesRedditSubredditsSubredditAddProfiles401Response
- type PostApiSourcesRedditSubredditsSubredditAddProfiles404Response
- type PostApiSourcesRedditSubredditsSubredditAddProfiles500JSONResponse
- type PostApiSourcesRedditSubredditsSubredditAddProfilesJSONBody
- type PostApiSourcesRedditSubredditsSubredditAddProfilesJSONRequestBody
- type PostApiSourcesRedditSubredditsSubredditAddProfilesRequestObject
- type PostApiSourcesRedditSubredditsSubredditAddProfilesResponse
- type PostApiSourcesRedditSubredditsSubredditAddProfilesResponseObject
- type PostApiSourcesRedditSubredditsSubredditRemoveProfiles204Response
- type PostApiSourcesRedditSubredditsSubredditRemoveProfiles401Response
- type PostApiSourcesRedditSubredditsSubredditRemoveProfiles404Response
- type PostApiSourcesRedditSubredditsSubredditRemoveProfiles500JSONResponse
- type PostApiSourcesRedditSubredditsSubredditRemoveProfilesJSONBody
- type PostApiSourcesRedditSubredditsSubredditRemoveProfilesJSONRequestBody
- type PostApiSourcesRedditSubredditsSubredditRemoveProfilesRequestObject
- type PostApiSourcesRedditSubredditsSubredditRemoveProfilesResponse
- type PostApiSourcesRedditSubredditsSubredditRemoveProfilesResponseObject
- type Profile
- type ProfileFilter
- type ProfileJumpstartRequest
- type ProfileSettings
- type ProfileSettingsUpdate
- type ProfileStatistics
- type ProfileUpdate
- type PutApiDetectionsTags200JSONResponse
- type PutApiDetectionsTags401Response
- type PutApiDetectionsTags500JSONResponse
- type PutApiDetectionsTagsJSONRequestBody
- type PutApiDetectionsTagsRequestObject
- type PutApiDetectionsTagsResponse
- type PutApiDetectionsTagsResponseObject
- type PutApiProfilesProfileId200Response
- type PutApiProfilesProfileId404Response
- type PutApiProfilesProfileId500JSONResponse
- type PutApiProfilesProfileIdJSONRequestBody
- type PutApiProfilesProfileIdRequestObject
- type PutApiProfilesProfileIdResponse
- type PutApiProfilesProfileIdResponseObject
- type RequestEditorFn
- type ServerInterface
- type ServerInterfaceWrapper
- func (siw *ServerInterfaceWrapper) DeleteApiProfilesProfileId(c *gin.Context)
- func (siw *ServerInterfaceWrapper) GetApiProfiles(c *gin.Context)
- func (siw *ServerInterfaceWrapper) GetApiProfilesProfileId(c *gin.Context)
- func (siw *ServerInterfaceWrapper) GetApiSourcesRedditSubreddits(c *gin.Context)
- func (siw *ServerInterfaceWrapper) GetApiSourcesRedditSubredditsWithProfile(c *gin.Context)
- func (siw *ServerInterfaceWrapper) GetApiStatisticsProfileId(c *gin.Context)
- func (siw *ServerInterfaceWrapper) PostApiAnalyze(c *gin.Context)
- func (siw *ServerInterfaceWrapper) PostApiDetectionsList(c *gin.Context)
- func (siw *ServerInterfaceWrapper) PostApiProfiles(c *gin.Context)
- func (siw *ServerInterfaceWrapper) PostApiProfilesProfileIdDryJumpstart(c *gin.Context)
- func (siw *ServerInterfaceWrapper) PostApiProfilesProfileIdJumpstart(c *gin.Context)
- func (siw *ServerInterfaceWrapper) PostApiSourcesRedditSubredditsSubredditAddProfiles(c *gin.Context)
- func (siw *ServerInterfaceWrapper) PostApiSourcesRedditSubredditsSubredditRemoveProfiles(c *gin.Context)
- func (siw *ServerInterfaceWrapper) PutApiDetectionsTags(c *gin.Context)
- func (siw *ServerInterfaceWrapper) PutApiProfilesProfileId(c *gin.Context)
- type SourceSettingsVersionsFilter
- type StrictHandlerFunc
- type StrictMiddlewareFunc
- type StrictServerInterface
- type SubredditSettings
Constants ¶
const (
BasicAuthScopes = "basicAuth.Scopes"
)
Variables ¶
This section is empty.
Functions ¶
func GetSwagger ¶
GetSwagger returns the Swagger specification corresponding to the generated code in this file. The external references of Swagger specification are resolved. The logic of resolving external references is tightly connected to "import-mapping" feature. Externally referenced files must be embedded in the corresponding golang packages. Urls can be supported but this task was out of the scope.
func NewDeleteApiProfilesProfileIdRequest ¶
NewDeleteApiProfilesProfileIdRequest generates requests for DeleteApiProfilesProfileId
func NewGetApiProfilesProfileIdRequest ¶
NewGetApiProfilesProfileIdRequest generates requests for GetApiProfilesProfileId
func NewGetApiProfilesRequest ¶
NewGetApiProfilesRequest generates requests for GetApiProfiles
func NewGetApiSourcesRedditSubredditsRequest ¶
NewGetApiSourcesRedditSubredditsRequest generates requests for GetApiSourcesRedditSubreddits
func NewGetApiSourcesRedditSubredditsWithProfileRequest ¶
func NewGetApiSourcesRedditSubredditsWithProfileRequest(server string, params *GetApiSourcesRedditSubredditsWithProfileParams) (*http.Request, error)
NewGetApiSourcesRedditSubredditsWithProfileRequest generates requests for GetApiSourcesRedditSubredditsWithProfile
func NewGetApiStatisticsProfileIdRequest ¶
NewGetApiStatisticsProfileIdRequest generates requests for GetApiStatisticsProfileId
func NewPostApiAnalyzeRequest ¶
func NewPostApiAnalyzeRequest(server string, body PostApiAnalyzeJSONRequestBody) (*http.Request, error)
NewPostApiAnalyzeRequest calls the generic PostApiAnalyze builder with application/json body
func NewPostApiAnalyzeRequestWithBody ¶
func NewPostApiAnalyzeRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPostApiAnalyzeRequestWithBody generates requests for PostApiAnalyze with any type of body
func NewPostApiDetectionsListRequest ¶
func NewPostApiDetectionsListRequest(server string, body PostApiDetectionsListJSONRequestBody) (*http.Request, error)
NewPostApiDetectionsListRequest calls the generic PostApiDetectionsList builder with application/json body
func NewPostApiDetectionsListRequestWithBody ¶
func NewPostApiDetectionsListRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPostApiDetectionsListRequestWithBody generates requests for PostApiDetectionsList with any type of body
func NewPostApiProfilesProfileIdDryJumpstartRequest ¶
func NewPostApiProfilesProfileIdDryJumpstartRequest(server string, profileId int, body PostApiProfilesProfileIdDryJumpstartJSONRequestBody) (*http.Request, error)
NewPostApiProfilesProfileIdDryJumpstartRequest calls the generic PostApiProfilesProfileIdDryJumpstart builder with application/json body
func NewPostApiProfilesProfileIdDryJumpstartRequestWithBody ¶
func NewPostApiProfilesProfileIdDryJumpstartRequestWithBody(server string, profileId int, contentType string, body io.Reader) (*http.Request, error)
NewPostApiProfilesProfileIdDryJumpstartRequestWithBody generates requests for PostApiProfilesProfileIdDryJumpstart with any type of body
func NewPostApiProfilesProfileIdJumpstartRequest ¶
func NewPostApiProfilesProfileIdJumpstartRequest(server string, profileId int, body PostApiProfilesProfileIdJumpstartJSONRequestBody) (*http.Request, error)
NewPostApiProfilesProfileIdJumpstartRequest calls the generic PostApiProfilesProfileIdJumpstart builder with application/json body
func NewPostApiProfilesProfileIdJumpstartRequestWithBody ¶
func NewPostApiProfilesProfileIdJumpstartRequestWithBody(server string, profileId int, contentType string, body io.Reader) (*http.Request, error)
NewPostApiProfilesProfileIdJumpstartRequestWithBody generates requests for PostApiProfilesProfileIdJumpstart with any type of body
func NewPostApiProfilesRequest ¶
func NewPostApiProfilesRequest(server string, body PostApiProfilesJSONRequestBody) (*http.Request, error)
NewPostApiProfilesRequest calls the generic PostApiProfiles builder with application/json body
func NewPostApiProfilesRequestWithBody ¶
func NewPostApiProfilesRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPostApiProfilesRequestWithBody generates requests for PostApiProfiles with any type of body
func NewPostApiSourcesRedditSubredditsSubredditAddProfilesRequest ¶
func NewPostApiSourcesRedditSubredditsSubredditAddProfilesRequest(server string, subreddit string, body PostApiSourcesRedditSubredditsSubredditAddProfilesJSONRequestBody) (*http.Request, error)
NewPostApiSourcesRedditSubredditsSubredditAddProfilesRequest calls the generic PostApiSourcesRedditSubredditsSubredditAddProfiles builder with application/json body
func NewPostApiSourcesRedditSubredditsSubredditAddProfilesRequestWithBody ¶
func NewPostApiSourcesRedditSubredditsSubredditAddProfilesRequestWithBody(server string, subreddit string, contentType string, body io.Reader) (*http.Request, error)
NewPostApiSourcesRedditSubredditsSubredditAddProfilesRequestWithBody generates requests for PostApiSourcesRedditSubredditsSubredditAddProfiles with any type of body
func NewPostApiSourcesRedditSubredditsSubredditRemoveProfilesRequest ¶
func NewPostApiSourcesRedditSubredditsSubredditRemoveProfilesRequest(server string, subreddit string, body PostApiSourcesRedditSubredditsSubredditRemoveProfilesJSONRequestBody) (*http.Request, error)
NewPostApiSourcesRedditSubredditsSubredditRemoveProfilesRequest calls the generic PostApiSourcesRedditSubredditsSubredditRemoveProfiles builder with application/json body
func NewPostApiSourcesRedditSubredditsSubredditRemoveProfilesRequestWithBody ¶
func NewPostApiSourcesRedditSubredditsSubredditRemoveProfilesRequestWithBody(server string, subreddit string, contentType string, body io.Reader) (*http.Request, error)
NewPostApiSourcesRedditSubredditsSubredditRemoveProfilesRequestWithBody generates requests for PostApiSourcesRedditSubredditsSubredditRemoveProfiles with any type of body
func NewPutApiDetectionsTagsRequest ¶
func NewPutApiDetectionsTagsRequest(server string, body PutApiDetectionsTagsJSONRequestBody) (*http.Request, error)
NewPutApiDetectionsTagsRequest calls the generic PutApiDetectionsTags builder with application/json body
func NewPutApiDetectionsTagsRequestWithBody ¶
func NewPutApiDetectionsTagsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPutApiDetectionsTagsRequestWithBody generates requests for PutApiDetectionsTags with any type of body
func NewPutApiProfilesProfileIdRequest ¶
func NewPutApiProfilesProfileIdRequest(server string, profileId int, body PutApiProfilesProfileIdJSONRequestBody) (*http.Request, error)
NewPutApiProfilesProfileIdRequest calls the generic PutApiProfilesProfileId builder with application/json body
func NewPutApiProfilesProfileIdRequestWithBody ¶
func NewPutApiProfilesProfileIdRequestWithBody(server string, profileId int, contentType string, body io.Reader) (*http.Request, error)
NewPutApiProfilesProfileIdRequestWithBody generates requests for PutApiProfilesProfileId with any type of body
func PathToRawSpec ¶
Constructs a synthetic filesystem for resolving external references when loading openapi specifications.
func RegisterHandlers ¶
func RegisterHandlers(router gin.IRouter, si ServerInterface)
RegisterHandlers creates http.Handler with routing matching OpenAPI spec.
func RegisterHandlersWithOptions ¶
func RegisterHandlersWithOptions(router gin.IRouter, si ServerInterface, options GinServerOptions)
RegisterHandlersWithOptions creates http.Handler with additional options
Types ¶
type AnalysisTaskParameters ¶
type AnalysisTaskParameters struct {
ProfileId int `json:"profile_id"`
ShouldSave bool `json:"should_save"`
Source string `json:"source"`
SourceId string `json:"source_id"`
}
AnalysisTaskParameters defines model for AnalysisTaskParameters.
type AnalyzeRequest ¶
type AnalyzeRequest struct {
ExtractedProperties map[string]string `json:"extracted_properties"`
RelevancyFilter string `json:"relevancy_filter"`
Source string `json:"source"`
SourceId string `json:"source_id"`
}
AnalyzeRequest defines model for AnalyzeRequest.
type Client ¶
type Client struct {
// The endpoint of the server conforming to this interface, with scheme,
// https://api.deepmap.com for example. This can contain a path relative
// to the server, such as https://api.deepmap.com/dev-test, and all the
// paths in the swagger spec will be appended to the server.
Server string
// Doer for performing requests, typically a *http.Client with any
// customized settings, such as certificate chains.
Client HttpRequestDoer
// A list of callbacks for modifying requests which are generated before sending over
// the network.
RequestEditors []RequestEditorFn
}
Client which conforms to the OpenAPI3 specification for this service.
func NewClient ¶
func NewClient(server string, opts ...ClientOption) (*Client, error)
Creates a new Client, with reasonable defaults
func (*Client) DeleteApiProfilesProfileId ¶
func (*Client) GetApiProfiles ¶
func (*Client) GetApiProfilesProfileId ¶
func (*Client) GetApiSourcesRedditSubreddits ¶
func (*Client) GetApiSourcesRedditSubredditsWithProfile ¶
func (c *Client) GetApiSourcesRedditSubredditsWithProfile(ctx context.Context, params *GetApiSourcesRedditSubredditsWithProfileParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetApiStatisticsProfileId ¶
func (*Client) PostApiAnalyze ¶
func (c *Client) PostApiAnalyze(ctx context.Context, body PostApiAnalyzeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PostApiAnalyzeWithBody ¶
func (*Client) PostApiDetectionsList ¶
func (c *Client) PostApiDetectionsList(ctx context.Context, body PostApiDetectionsListJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PostApiDetectionsListWithBody ¶
func (*Client) PostApiProfiles ¶
func (c *Client) PostApiProfiles(ctx context.Context, body PostApiProfilesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PostApiProfilesProfileIdDryJumpstart ¶
func (c *Client) PostApiProfilesProfileIdDryJumpstart(ctx context.Context, profileId int, body PostApiProfilesProfileIdDryJumpstartJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PostApiProfilesProfileIdDryJumpstartWithBody ¶
func (*Client) PostApiProfilesProfileIdJumpstart ¶
func (c *Client) PostApiProfilesProfileIdJumpstart(ctx context.Context, profileId int, body PostApiProfilesProfileIdJumpstartJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PostApiProfilesProfileIdJumpstartWithBody ¶
func (*Client) PostApiProfilesWithBody ¶
func (*Client) PostApiSourcesRedditSubredditsSubredditAddProfiles ¶
func (c *Client) PostApiSourcesRedditSubredditsSubredditAddProfiles(ctx context.Context, subreddit string, body PostApiSourcesRedditSubredditsSubredditAddProfilesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PostApiSourcesRedditSubredditsSubredditAddProfilesWithBody ¶
func (*Client) PostApiSourcesRedditSubredditsSubredditRemoveProfiles ¶
func (c *Client) PostApiSourcesRedditSubredditsSubredditRemoveProfiles(ctx context.Context, subreddit string, body PostApiSourcesRedditSubredditsSubredditRemoveProfilesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PostApiSourcesRedditSubredditsSubredditRemoveProfilesWithBody ¶
func (*Client) PutApiDetectionsTags ¶
func (c *Client) PutApiDetectionsTags(ctx context.Context, body PutApiDetectionsTagsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PutApiDetectionsTagsWithBody ¶
func (*Client) PutApiProfilesProfileId ¶
func (c *Client) PutApiProfilesProfileId(ctx context.Context, profileId int, body PutApiProfilesProfileIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
type ClientInterface ¶
type ClientInterface interface {
// PostApiAnalyzeWithBody request with any body
PostApiAnalyzeWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PostApiAnalyze(ctx context.Context, body PostApiAnalyzeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiDetectionsListWithBody request with any body
PostApiDetectionsListWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PostApiDetectionsList(ctx context.Context, body PostApiDetectionsListJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// PutApiDetectionsTagsWithBody request with any body
PutApiDetectionsTagsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PutApiDetectionsTags(ctx context.Context, body PutApiDetectionsTagsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetApiProfiles request
GetApiProfiles(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiProfilesWithBody request with any body
PostApiProfilesWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PostApiProfiles(ctx context.Context, body PostApiProfilesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteApiProfilesProfileId request
DeleteApiProfilesProfileId(ctx context.Context, profileId int, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetApiProfilesProfileId request
GetApiProfilesProfileId(ctx context.Context, profileId int, reqEditors ...RequestEditorFn) (*http.Response, error)
// PutApiProfilesProfileIdWithBody request with any body
PutApiProfilesProfileIdWithBody(ctx context.Context, profileId int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PutApiProfilesProfileId(ctx context.Context, profileId int, body PutApiProfilesProfileIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiProfilesProfileIdDryJumpstartWithBody request with any body
PostApiProfilesProfileIdDryJumpstartWithBody(ctx context.Context, profileId int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PostApiProfilesProfileIdDryJumpstart(ctx context.Context, profileId int, body PostApiProfilesProfileIdDryJumpstartJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiProfilesProfileIdJumpstartWithBody request with any body
PostApiProfilesProfileIdJumpstartWithBody(ctx context.Context, profileId int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PostApiProfilesProfileIdJumpstart(ctx context.Context, profileId int, body PostApiProfilesProfileIdJumpstartJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetApiSourcesRedditSubreddits request
GetApiSourcesRedditSubreddits(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiSourcesRedditSubredditsSubredditAddProfilesWithBody request with any body
PostApiSourcesRedditSubredditsSubredditAddProfilesWithBody(ctx context.Context, subreddit string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PostApiSourcesRedditSubredditsSubredditAddProfiles(ctx context.Context, subreddit string, body PostApiSourcesRedditSubredditsSubredditAddProfilesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiSourcesRedditSubredditsSubredditRemoveProfilesWithBody request with any body
PostApiSourcesRedditSubredditsSubredditRemoveProfilesWithBody(ctx context.Context, subreddit string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PostApiSourcesRedditSubredditsSubredditRemoveProfiles(ctx context.Context, subreddit string, body PostApiSourcesRedditSubredditsSubredditRemoveProfilesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetApiSourcesRedditSubredditsWithProfile request
GetApiSourcesRedditSubredditsWithProfile(ctx context.Context, params *GetApiSourcesRedditSubredditsWithProfileParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetApiStatisticsProfileId request
GetApiStatisticsProfileId(ctx context.Context, profileId int, reqEditors ...RequestEditorFn) (*http.Response, error)
}
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
func WithHTTPClient ¶
func WithHTTPClient(doer HttpRequestDoer) ClientOption
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.
func WithRequestEditorFn ¶
func WithRequestEditorFn(fn RequestEditorFn) ClientOption
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.
type ClientWithResponses ¶
type ClientWithResponses struct {
ClientInterface
}
ClientWithResponses builds on ClientInterface to offer response payloads
func NewClientWithResponses ¶
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
func (*ClientWithResponses) DeleteApiProfilesProfileIdWithResponse ¶
func (c *ClientWithResponses) DeleteApiProfilesProfileIdWithResponse(ctx context.Context, profileId int, reqEditors ...RequestEditorFn) (*DeleteApiProfilesProfileIdResponse, error)
DeleteApiProfilesProfileIdWithResponse request returning *DeleteApiProfilesProfileIdResponse
func (*ClientWithResponses) GetApiProfilesProfileIdWithResponse ¶
func (c *ClientWithResponses) GetApiProfilesProfileIdWithResponse(ctx context.Context, profileId int, reqEditors ...RequestEditorFn) (*GetApiProfilesProfileIdResponse, error)
GetApiProfilesProfileIdWithResponse request returning *GetApiProfilesProfileIdResponse
func (*ClientWithResponses) GetApiProfilesWithResponse ¶
func (c *ClientWithResponses) GetApiProfilesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiProfilesResponse, error)
GetApiProfilesWithResponse request returning *GetApiProfilesResponse
func (*ClientWithResponses) GetApiSourcesRedditSubredditsWithProfileWithResponse ¶
func (c *ClientWithResponses) GetApiSourcesRedditSubredditsWithProfileWithResponse(ctx context.Context, params *GetApiSourcesRedditSubredditsWithProfileParams, reqEditors ...RequestEditorFn) (*GetApiSourcesRedditSubredditsWithProfileResponse, error)
GetApiSourcesRedditSubredditsWithProfileWithResponse request returning *GetApiSourcesRedditSubredditsWithProfileResponse
func (*ClientWithResponses) GetApiSourcesRedditSubredditsWithResponse ¶
func (c *ClientWithResponses) GetApiSourcesRedditSubredditsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiSourcesRedditSubredditsResponse, error)
GetApiSourcesRedditSubredditsWithResponse request returning *GetApiSourcesRedditSubredditsResponse
func (*ClientWithResponses) GetApiStatisticsProfileIdWithResponse ¶
func (c *ClientWithResponses) GetApiStatisticsProfileIdWithResponse(ctx context.Context, profileId int, reqEditors ...RequestEditorFn) (*GetApiStatisticsProfileIdResponse, error)
GetApiStatisticsProfileIdWithResponse request returning *GetApiStatisticsProfileIdResponse
func (*ClientWithResponses) PostApiAnalyzeWithBodyWithResponse ¶
func (c *ClientWithResponses) PostApiAnalyzeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiAnalyzeResponse, error)
PostApiAnalyzeWithBodyWithResponse request with arbitrary body returning *PostApiAnalyzeResponse
func (*ClientWithResponses) PostApiAnalyzeWithResponse ¶
func (c *ClientWithResponses) PostApiAnalyzeWithResponse(ctx context.Context, body PostApiAnalyzeJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiAnalyzeResponse, error)
func (*ClientWithResponses) PostApiDetectionsListWithBodyWithResponse ¶
func (c *ClientWithResponses) PostApiDetectionsListWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiDetectionsListResponse, error)
PostApiDetectionsListWithBodyWithResponse request with arbitrary body returning *PostApiDetectionsListResponse
func (*ClientWithResponses) PostApiDetectionsListWithResponse ¶
func (c *ClientWithResponses) PostApiDetectionsListWithResponse(ctx context.Context, body PostApiDetectionsListJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiDetectionsListResponse, error)
func (*ClientWithResponses) PostApiProfilesProfileIdDryJumpstartWithBodyWithResponse ¶
func (c *ClientWithResponses) PostApiProfilesProfileIdDryJumpstartWithBodyWithResponse(ctx context.Context, profileId int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiProfilesProfileIdDryJumpstartResponse, error)
PostApiProfilesProfileIdDryJumpstartWithBodyWithResponse request with arbitrary body returning *PostApiProfilesProfileIdDryJumpstartResponse
func (*ClientWithResponses) PostApiProfilesProfileIdDryJumpstartWithResponse ¶
func (c *ClientWithResponses) PostApiProfilesProfileIdDryJumpstartWithResponse(ctx context.Context, profileId int, body PostApiProfilesProfileIdDryJumpstartJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiProfilesProfileIdDryJumpstartResponse, error)
func (*ClientWithResponses) PostApiProfilesProfileIdJumpstartWithBodyWithResponse ¶
func (c *ClientWithResponses) PostApiProfilesProfileIdJumpstartWithBodyWithResponse(ctx context.Context, profileId int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiProfilesProfileIdJumpstartResponse, error)
PostApiProfilesProfileIdJumpstartWithBodyWithResponse request with arbitrary body returning *PostApiProfilesProfileIdJumpstartResponse
func (*ClientWithResponses) PostApiProfilesProfileIdJumpstartWithResponse ¶
func (c *ClientWithResponses) PostApiProfilesProfileIdJumpstartWithResponse(ctx context.Context, profileId int, body PostApiProfilesProfileIdJumpstartJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiProfilesProfileIdJumpstartResponse, error)
func (*ClientWithResponses) PostApiProfilesWithBodyWithResponse ¶
func (c *ClientWithResponses) PostApiProfilesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiProfilesResponse, error)
PostApiProfilesWithBodyWithResponse request with arbitrary body returning *PostApiProfilesResponse
func (*ClientWithResponses) PostApiProfilesWithResponse ¶
func (c *ClientWithResponses) PostApiProfilesWithResponse(ctx context.Context, body PostApiProfilesJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiProfilesResponse, error)
func (*ClientWithResponses) PostApiSourcesRedditSubredditsSubredditAddProfilesWithBodyWithResponse ¶
func (c *ClientWithResponses) PostApiSourcesRedditSubredditsSubredditAddProfilesWithBodyWithResponse(ctx context.Context, subreddit string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiSourcesRedditSubredditsSubredditAddProfilesResponse, error)
PostApiSourcesRedditSubredditsSubredditAddProfilesWithBodyWithResponse request with arbitrary body returning *PostApiSourcesRedditSubredditsSubredditAddProfilesResponse
func (*ClientWithResponses) PostApiSourcesRedditSubredditsSubredditAddProfilesWithResponse ¶
func (c *ClientWithResponses) PostApiSourcesRedditSubredditsSubredditAddProfilesWithResponse(ctx context.Context, subreddit string, body PostApiSourcesRedditSubredditsSubredditAddProfilesJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiSourcesRedditSubredditsSubredditAddProfilesResponse, error)
func (*ClientWithResponses) PostApiSourcesRedditSubredditsSubredditRemoveProfilesWithBodyWithResponse ¶
func (c *ClientWithResponses) PostApiSourcesRedditSubredditsSubredditRemoveProfilesWithBodyWithResponse(ctx context.Context, subreddit string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiSourcesRedditSubredditsSubredditRemoveProfilesResponse, error)
PostApiSourcesRedditSubredditsSubredditRemoveProfilesWithBodyWithResponse request with arbitrary body returning *PostApiSourcesRedditSubredditsSubredditRemoveProfilesResponse
func (*ClientWithResponses) PostApiSourcesRedditSubredditsSubredditRemoveProfilesWithResponse ¶
func (c *ClientWithResponses) PostApiSourcesRedditSubredditsSubredditRemoveProfilesWithResponse(ctx context.Context, subreddit string, body PostApiSourcesRedditSubredditsSubredditRemoveProfilesJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiSourcesRedditSubredditsSubredditRemoveProfilesResponse, error)
func (*ClientWithResponses) PutApiDetectionsTagsWithBodyWithResponse ¶
func (c *ClientWithResponses) PutApiDetectionsTagsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutApiDetectionsTagsResponse, error)
PutApiDetectionsTagsWithBodyWithResponse request with arbitrary body returning *PutApiDetectionsTagsResponse
func (*ClientWithResponses) PutApiDetectionsTagsWithResponse ¶
func (c *ClientWithResponses) PutApiDetectionsTagsWithResponse(ctx context.Context, body PutApiDetectionsTagsJSONRequestBody, reqEditors ...RequestEditorFn) (*PutApiDetectionsTagsResponse, error)
func (*ClientWithResponses) PutApiProfilesProfileIdWithBodyWithResponse ¶
func (c *ClientWithResponses) PutApiProfilesProfileIdWithBodyWithResponse(ctx context.Context, profileId int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutApiProfilesProfileIdResponse, error)
PutApiProfilesProfileIdWithBodyWithResponse request with arbitrary body returning *PutApiProfilesProfileIdResponse
func (*ClientWithResponses) PutApiProfilesProfileIdWithResponse ¶
func (c *ClientWithResponses) PutApiProfilesProfileIdWithResponse(ctx context.Context, profileId int, body PutApiProfilesProfileIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PutApiProfilesProfileIdResponse, error)
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// PostApiAnalyzeWithBodyWithResponse request with any body
PostApiAnalyzeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiAnalyzeResponse, error)
PostApiAnalyzeWithResponse(ctx context.Context, body PostApiAnalyzeJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiAnalyzeResponse, error)
// PostApiDetectionsListWithBodyWithResponse request with any body
PostApiDetectionsListWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiDetectionsListResponse, error)
PostApiDetectionsListWithResponse(ctx context.Context, body PostApiDetectionsListJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiDetectionsListResponse, error)
// PutApiDetectionsTagsWithBodyWithResponse request with any body
PutApiDetectionsTagsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutApiDetectionsTagsResponse, error)
PutApiDetectionsTagsWithResponse(ctx context.Context, body PutApiDetectionsTagsJSONRequestBody, reqEditors ...RequestEditorFn) (*PutApiDetectionsTagsResponse, error)
// GetApiProfilesWithResponse request
GetApiProfilesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiProfilesResponse, error)
// PostApiProfilesWithBodyWithResponse request with any body
PostApiProfilesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiProfilesResponse, error)
PostApiProfilesWithResponse(ctx context.Context, body PostApiProfilesJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiProfilesResponse, error)
// DeleteApiProfilesProfileIdWithResponse request
DeleteApiProfilesProfileIdWithResponse(ctx context.Context, profileId int, reqEditors ...RequestEditorFn) (*DeleteApiProfilesProfileIdResponse, error)
// GetApiProfilesProfileIdWithResponse request
GetApiProfilesProfileIdWithResponse(ctx context.Context, profileId int, reqEditors ...RequestEditorFn) (*GetApiProfilesProfileIdResponse, error)
// PutApiProfilesProfileIdWithBodyWithResponse request with any body
PutApiProfilesProfileIdWithBodyWithResponse(ctx context.Context, profileId int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutApiProfilesProfileIdResponse, error)
PutApiProfilesProfileIdWithResponse(ctx context.Context, profileId int, body PutApiProfilesProfileIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PutApiProfilesProfileIdResponse, error)
// PostApiProfilesProfileIdDryJumpstartWithBodyWithResponse request with any body
PostApiProfilesProfileIdDryJumpstartWithBodyWithResponse(ctx context.Context, profileId int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiProfilesProfileIdDryJumpstartResponse, error)
PostApiProfilesProfileIdDryJumpstartWithResponse(ctx context.Context, profileId int, body PostApiProfilesProfileIdDryJumpstartJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiProfilesProfileIdDryJumpstartResponse, error)
// PostApiProfilesProfileIdJumpstartWithBodyWithResponse request with any body
PostApiProfilesProfileIdJumpstartWithBodyWithResponse(ctx context.Context, profileId int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiProfilesProfileIdJumpstartResponse, error)
PostApiProfilesProfileIdJumpstartWithResponse(ctx context.Context, profileId int, body PostApiProfilesProfileIdJumpstartJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiProfilesProfileIdJumpstartResponse, error)
// GetApiSourcesRedditSubredditsWithResponse request
GetApiSourcesRedditSubredditsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiSourcesRedditSubredditsResponse, error)
// PostApiSourcesRedditSubredditsSubredditAddProfilesWithBodyWithResponse request with any body
PostApiSourcesRedditSubredditsSubredditAddProfilesWithBodyWithResponse(ctx context.Context, subreddit string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiSourcesRedditSubredditsSubredditAddProfilesResponse, error)
PostApiSourcesRedditSubredditsSubredditAddProfilesWithResponse(ctx context.Context, subreddit string, body PostApiSourcesRedditSubredditsSubredditAddProfilesJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiSourcesRedditSubredditsSubredditAddProfilesResponse, error)
// PostApiSourcesRedditSubredditsSubredditRemoveProfilesWithBodyWithResponse request with any body
PostApiSourcesRedditSubredditsSubredditRemoveProfilesWithBodyWithResponse(ctx context.Context, subreddit string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiSourcesRedditSubredditsSubredditRemoveProfilesResponse, error)
PostApiSourcesRedditSubredditsSubredditRemoveProfilesWithResponse(ctx context.Context, subreddit string, body PostApiSourcesRedditSubredditsSubredditRemoveProfilesJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiSourcesRedditSubredditsSubredditRemoveProfilesResponse, error)
// GetApiSourcesRedditSubredditsWithProfileWithResponse request
GetApiSourcesRedditSubredditsWithProfileWithResponse(ctx context.Context, params *GetApiSourcesRedditSubredditsWithProfileParams, reqEditors ...RequestEditorFn) (*GetApiSourcesRedditSubredditsWithProfileResponse, error)
// GetApiStatisticsProfileIdWithResponse request
GetApiStatisticsProfileIdWithResponse(ctx context.Context, profileId int, reqEditors ...RequestEditorFn) (*GetApiStatisticsProfileIdResponse, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type DeleteApiProfilesProfileId204Response ¶
type DeleteApiProfilesProfileId204Response struct {
}
func (DeleteApiProfilesProfileId204Response) VisitDeleteApiProfilesProfileIdResponse ¶
func (response DeleteApiProfilesProfileId204Response) VisitDeleteApiProfilesProfileIdResponse(w http.ResponseWriter) error
type DeleteApiProfilesProfileId404Response ¶
type DeleteApiProfilesProfileId404Response struct {
}
func (DeleteApiProfilesProfileId404Response) VisitDeleteApiProfilesProfileIdResponse ¶
func (response DeleteApiProfilesProfileId404Response) VisitDeleteApiProfilesProfileIdResponse(w http.ResponseWriter) error
type DeleteApiProfilesProfileId500JSONResponse ¶
type DeleteApiProfilesProfileId500JSONResponse Error
func (DeleteApiProfilesProfileId500JSONResponse) VisitDeleteApiProfilesProfileIdResponse ¶
func (response DeleteApiProfilesProfileId500JSONResponse) VisitDeleteApiProfilesProfileIdResponse(w http.ResponseWriter) error
type DeleteApiProfilesProfileIdRequestObject ¶
type DeleteApiProfilesProfileIdRequestObject struct {
ProfileId int `json:"profileId"`
}
type DeleteApiProfilesProfileIdResponse ¶
type DeleteApiProfilesProfileIdResponse struct {
Body []byte
HTTPResponse *http.Response
JSON500 *Error
}
func ParseDeleteApiProfilesProfileIdResponse ¶
func ParseDeleteApiProfilesProfileIdResponse(rsp *http.Response) (*DeleteApiProfilesProfileIdResponse, error)
ParseDeleteApiProfilesProfileIdResponse parses an HTTP response from a DeleteApiProfilesProfileIdWithResponse call
func (DeleteApiProfilesProfileIdResponse) Status ¶
func (r DeleteApiProfilesProfileIdResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteApiProfilesProfileIdResponse) StatusCode ¶
func (r DeleteApiProfilesProfileIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteApiProfilesProfileIdResponseObject ¶
type DeleteApiProfilesProfileIdResponseObject interface {
VisitDeleteApiProfilesProfileIdResponse(w http.ResponseWriter) error
}
type Detection ¶
type Detection struct {
CreatedAt string `json:"created_at"`
Id int `json:"id"`
IsRelevant bool `json:"is_relevant"`
ProfileId int `json:"profile_id"`
Properties map[string]string `json:"properties"`
SettingsVersion int `json:"settings_version"`
Source string `json:"source"`
SourceId string `json:"source_id"`
}
Detection defines model for Detection.
type DetectionFilter ¶
type DetectionFilter struct {
IsRelevant *bool `json:"is_relevant,omitempty"`
Profiles *[]ProfileFilter `json:"profiles,omitempty"`
Sources *[]string `json:"sources,omitempty"`
Tags *DetectionTagsFilter `json:"tags,omitempty"`
}
DetectionFilter defines model for DetectionFilter.
type DetectionListRequest ¶
type DetectionListRequest struct {
Filter *DetectionFilter `json:"filter,omitempty"`
LastSeenId *int `json:"last_seen_id,omitempty"`
Limit *int `json:"limit,omitempty"`
}
DetectionListRequest defines model for DetectionListRequest.
type DetectionTagUpdateRequest ¶
type DetectionTagUpdateRequest struct {
DetectionId int `json:"detection_id"`
Tags struct {
RelevancyDetectedCorrectly nullable.Nullable[bool] `json:"relevancy_detected_correctly,omitempty"`
} `json:"tags"`
}
DetectionTagUpdateRequest defines model for DetectionTagUpdateRequest.
type DetectionTags ¶
type DetectionTags struct {
RelevancyDetectedCorrectly *bool `json:"relevancy_detected_correctly,omitempty"`
}
DetectionTags defines model for DetectionTags.
type DetectionTagsFilter ¶
type DetectionTagsFilter struct {
RelevancyDetectedCorrectly *[]*bool `json:"relevancy_detected_correctly,omitempty"`
}
DetectionTagsFilter defines model for DetectionTagsFilter.
type GetApiProfiles200JSONResponse ¶
type GetApiProfiles200JSONResponse []Profile
func (GetApiProfiles200JSONResponse) VisitGetApiProfilesResponse ¶
func (response GetApiProfiles200JSONResponse) VisitGetApiProfilesResponse(w http.ResponseWriter) error
type GetApiProfiles401Response ¶
type GetApiProfiles401Response struct {
}
func (GetApiProfiles401Response) VisitGetApiProfilesResponse ¶
func (response GetApiProfiles401Response) VisitGetApiProfilesResponse(w http.ResponseWriter) error
type GetApiProfiles500JSONResponse ¶
type GetApiProfiles500JSONResponse Error
func (GetApiProfiles500JSONResponse) VisitGetApiProfilesResponse ¶
func (response GetApiProfiles500JSONResponse) VisitGetApiProfilesResponse(w http.ResponseWriter) error
type GetApiProfilesProfileId200JSONResponse ¶
type GetApiProfilesProfileId200JSONResponse Profile
func (GetApiProfilesProfileId200JSONResponse) VisitGetApiProfilesProfileIdResponse ¶
func (response GetApiProfilesProfileId200JSONResponse) VisitGetApiProfilesProfileIdResponse(w http.ResponseWriter) error
type GetApiProfilesProfileId404Response ¶
type GetApiProfilesProfileId404Response struct {
}
func (GetApiProfilesProfileId404Response) VisitGetApiProfilesProfileIdResponse ¶
func (response GetApiProfilesProfileId404Response) VisitGetApiProfilesProfileIdResponse(w http.ResponseWriter) error
type GetApiProfilesProfileId500JSONResponse ¶
type GetApiProfilesProfileId500JSONResponse Error
func (GetApiProfilesProfileId500JSONResponse) VisitGetApiProfilesProfileIdResponse ¶
func (response GetApiProfilesProfileId500JSONResponse) VisitGetApiProfilesProfileIdResponse(w http.ResponseWriter) error
type GetApiProfilesProfileIdRequestObject ¶
type GetApiProfilesProfileIdRequestObject struct {
ProfileId int `json:"profileId"`
}
type GetApiProfilesProfileIdResponse ¶
type GetApiProfilesProfileIdResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Profile
JSON500 *Error
}
func ParseGetApiProfilesProfileIdResponse ¶
func ParseGetApiProfilesProfileIdResponse(rsp *http.Response) (*GetApiProfilesProfileIdResponse, error)
ParseGetApiProfilesProfileIdResponse parses an HTTP response from a GetApiProfilesProfileIdWithResponse call
func (GetApiProfilesProfileIdResponse) Status ¶
func (r GetApiProfilesProfileIdResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiProfilesProfileIdResponse) StatusCode ¶
func (r GetApiProfilesProfileIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiProfilesProfileIdResponseObject ¶
type GetApiProfilesProfileIdResponseObject interface {
VisitGetApiProfilesProfileIdResponse(w http.ResponseWriter) error
}
type GetApiProfilesRequestObject ¶
type GetApiProfilesRequestObject struct {
}
type GetApiProfilesResponse ¶
type GetApiProfilesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]Profile
JSON500 *Error
}
func ParseGetApiProfilesResponse ¶
func ParseGetApiProfilesResponse(rsp *http.Response) (*GetApiProfilesResponse, error)
ParseGetApiProfilesResponse parses an HTTP response from a GetApiProfilesWithResponse call
func (GetApiProfilesResponse) Status ¶
func (r GetApiProfilesResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiProfilesResponse) StatusCode ¶
func (r GetApiProfilesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiProfilesResponseObject ¶
type GetApiProfilesResponseObject interface {
VisitGetApiProfilesResponse(w http.ResponseWriter) error
}
type GetApiSourcesRedditSubreddits200JSONResponse ¶
type GetApiSourcesRedditSubreddits200JSONResponse []SubredditSettings
func (GetApiSourcesRedditSubreddits200JSONResponse) VisitGetApiSourcesRedditSubredditsResponse ¶
func (response GetApiSourcesRedditSubreddits200JSONResponse) VisitGetApiSourcesRedditSubredditsResponse(w http.ResponseWriter) error
type GetApiSourcesRedditSubreddits401Response ¶
type GetApiSourcesRedditSubreddits401Response struct {
}
func (GetApiSourcesRedditSubreddits401Response) VisitGetApiSourcesRedditSubredditsResponse ¶
func (response GetApiSourcesRedditSubreddits401Response) VisitGetApiSourcesRedditSubredditsResponse(w http.ResponseWriter) error
type GetApiSourcesRedditSubreddits500JSONResponse ¶
type GetApiSourcesRedditSubreddits500JSONResponse Error
func (GetApiSourcesRedditSubreddits500JSONResponse) VisitGetApiSourcesRedditSubredditsResponse ¶
func (response GetApiSourcesRedditSubreddits500JSONResponse) VisitGetApiSourcesRedditSubredditsResponse(w http.ResponseWriter) error
type GetApiSourcesRedditSubredditsRequestObject ¶
type GetApiSourcesRedditSubredditsRequestObject struct {
}
type GetApiSourcesRedditSubredditsResponse ¶
type GetApiSourcesRedditSubredditsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]SubredditSettings
JSON500 *Error
}
func ParseGetApiSourcesRedditSubredditsResponse ¶
func ParseGetApiSourcesRedditSubredditsResponse(rsp *http.Response) (*GetApiSourcesRedditSubredditsResponse, error)
ParseGetApiSourcesRedditSubredditsResponse parses an HTTP response from a GetApiSourcesRedditSubredditsWithResponse call
func (GetApiSourcesRedditSubredditsResponse) Status ¶
func (r GetApiSourcesRedditSubredditsResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiSourcesRedditSubredditsResponse) StatusCode ¶
func (r GetApiSourcesRedditSubredditsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiSourcesRedditSubredditsResponseObject ¶
type GetApiSourcesRedditSubredditsResponseObject interface {
VisitGetApiSourcesRedditSubredditsResponse(w http.ResponseWriter) error
}
type GetApiSourcesRedditSubredditsWithProfile200JSONResponse ¶
type GetApiSourcesRedditSubredditsWithProfile200JSONResponse []SubredditSettings
func (GetApiSourcesRedditSubredditsWithProfile200JSONResponse) VisitGetApiSourcesRedditSubredditsWithProfileResponse ¶
func (response GetApiSourcesRedditSubredditsWithProfile200JSONResponse) VisitGetApiSourcesRedditSubredditsWithProfileResponse(w http.ResponseWriter) error
type GetApiSourcesRedditSubredditsWithProfile401Response ¶
type GetApiSourcesRedditSubredditsWithProfile401Response struct {
}
func (GetApiSourcesRedditSubredditsWithProfile401Response) VisitGetApiSourcesRedditSubredditsWithProfileResponse ¶
func (response GetApiSourcesRedditSubredditsWithProfile401Response) VisitGetApiSourcesRedditSubredditsWithProfileResponse(w http.ResponseWriter) error
type GetApiSourcesRedditSubredditsWithProfile500JSONResponse ¶
type GetApiSourcesRedditSubredditsWithProfile500JSONResponse Error
func (GetApiSourcesRedditSubredditsWithProfile500JSONResponse) VisitGetApiSourcesRedditSubredditsWithProfileResponse ¶
func (response GetApiSourcesRedditSubredditsWithProfile500JSONResponse) VisitGetApiSourcesRedditSubredditsWithProfileResponse(w http.ResponseWriter) error
type GetApiSourcesRedditSubredditsWithProfileParams ¶
type GetApiSourcesRedditSubredditsWithProfileParams struct {
ProfileId int `form:"profile_id" json:"profile_id"`
}
GetApiSourcesRedditSubredditsWithProfileParams defines parameters for GetApiSourcesRedditSubredditsWithProfile.
type GetApiSourcesRedditSubredditsWithProfileRequestObject ¶
type GetApiSourcesRedditSubredditsWithProfileRequestObject struct {
Params GetApiSourcesRedditSubredditsWithProfileParams
}
type GetApiSourcesRedditSubredditsWithProfileResponse ¶
type GetApiSourcesRedditSubredditsWithProfileResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]SubredditSettings
JSON500 *Error
}
func ParseGetApiSourcesRedditSubredditsWithProfileResponse ¶
func ParseGetApiSourcesRedditSubredditsWithProfileResponse(rsp *http.Response) (*GetApiSourcesRedditSubredditsWithProfileResponse, error)
ParseGetApiSourcesRedditSubredditsWithProfileResponse parses an HTTP response from a GetApiSourcesRedditSubredditsWithProfileWithResponse call
func (GetApiSourcesRedditSubredditsWithProfileResponse) Status ¶
func (r GetApiSourcesRedditSubredditsWithProfileResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiSourcesRedditSubredditsWithProfileResponse) StatusCode ¶
func (r GetApiSourcesRedditSubredditsWithProfileResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiSourcesRedditSubredditsWithProfileResponseObject ¶
type GetApiSourcesRedditSubredditsWithProfileResponseObject interface {
VisitGetApiSourcesRedditSubredditsWithProfileResponse(w http.ResponseWriter) error
}
type GetApiStatisticsProfileId200JSONResponse ¶
type GetApiStatisticsProfileId200JSONResponse ProfileStatistics
func (GetApiStatisticsProfileId200JSONResponse) VisitGetApiStatisticsProfileIdResponse ¶
func (response GetApiStatisticsProfileId200JSONResponse) VisitGetApiStatisticsProfileIdResponse(w http.ResponseWriter) error
type GetApiStatisticsProfileId401Response ¶
type GetApiStatisticsProfileId401Response struct {
}
func (GetApiStatisticsProfileId401Response) VisitGetApiStatisticsProfileIdResponse ¶
func (response GetApiStatisticsProfileId401Response) VisitGetApiStatisticsProfileIdResponse(w http.ResponseWriter) error
type GetApiStatisticsProfileId404Response ¶
type GetApiStatisticsProfileId404Response struct {
}
func (GetApiStatisticsProfileId404Response) VisitGetApiStatisticsProfileIdResponse ¶
func (response GetApiStatisticsProfileId404Response) VisitGetApiStatisticsProfileIdResponse(w http.ResponseWriter) error
type GetApiStatisticsProfileId500JSONResponse ¶
type GetApiStatisticsProfileId500JSONResponse Error
func (GetApiStatisticsProfileId500JSONResponse) VisitGetApiStatisticsProfileIdResponse ¶
func (response GetApiStatisticsProfileId500JSONResponse) VisitGetApiStatisticsProfileIdResponse(w http.ResponseWriter) error
type GetApiStatisticsProfileIdRequestObject ¶
type GetApiStatisticsProfileIdRequestObject struct {
ProfileId int `json:"profileId"`
}
type GetApiStatisticsProfileIdResponse ¶
type GetApiStatisticsProfileIdResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ProfileStatistics
JSON500 *Error
}
func ParseGetApiStatisticsProfileIdResponse ¶
func ParseGetApiStatisticsProfileIdResponse(rsp *http.Response) (*GetApiStatisticsProfileIdResponse, error)
ParseGetApiStatisticsProfileIdResponse parses an HTTP response from a GetApiStatisticsProfileIdWithResponse call
func (GetApiStatisticsProfileIdResponse) Status ¶
func (r GetApiStatisticsProfileIdResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiStatisticsProfileIdResponse) StatusCode ¶
func (r GetApiStatisticsProfileIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiStatisticsProfileIdResponseObject ¶
type GetApiStatisticsProfileIdResponseObject interface {
VisitGetApiStatisticsProfileIdResponse(w http.ResponseWriter) error
}
type GinServerOptions ¶
type GinServerOptions struct {
BaseURL string
Middlewares []MiddlewareFunc
ErrorHandler func(*gin.Context, error, int)
}
GinServerOptions provides options for the Gin server.
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type ListedDetection ¶
type ListedDetection struct {
Detection Detection `json:"detection"`
SourcePost *json.RawMessage `json:"source_post,omitempty"`
Tags *DetectionTags `json:"tags,omitempty"`
}
ListedDetection defines model for ListedDetection.
type MiddlewareFunc ¶
type PostApiAnalyze200JSONResponse ¶
type PostApiAnalyze200JSONResponse Detection
func (PostApiAnalyze200JSONResponse) VisitPostApiAnalyzeResponse ¶
func (response PostApiAnalyze200JSONResponse) VisitPostApiAnalyzeResponse(w http.ResponseWriter) error
type PostApiAnalyze500JSONResponse ¶
type PostApiAnalyze500JSONResponse Error
func (PostApiAnalyze500JSONResponse) VisitPostApiAnalyzeResponse ¶
func (response PostApiAnalyze500JSONResponse) VisitPostApiAnalyzeResponse(w http.ResponseWriter) error
type PostApiAnalyzeJSONRequestBody ¶
type PostApiAnalyzeJSONRequestBody = AnalyzeRequest
PostApiAnalyzeJSONRequestBody defines body for PostApiAnalyze for application/json ContentType.
type PostApiAnalyzeRequestObject ¶
type PostApiAnalyzeRequestObject struct {
Body *PostApiAnalyzeJSONRequestBody
}
type PostApiAnalyzeResponse ¶
type PostApiAnalyzeResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Detection
JSON500 *Error
}
func ParsePostApiAnalyzeResponse ¶
func ParsePostApiAnalyzeResponse(rsp *http.Response) (*PostApiAnalyzeResponse, error)
ParsePostApiAnalyzeResponse parses an HTTP response from a PostApiAnalyzeWithResponse call
func (PostApiAnalyzeResponse) Status ¶
func (r PostApiAnalyzeResponse) Status() string
Status returns HTTPResponse.Status
func (PostApiAnalyzeResponse) StatusCode ¶
func (r PostApiAnalyzeResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostApiAnalyzeResponseObject ¶
type PostApiAnalyzeResponseObject interface {
VisitPostApiAnalyzeResponse(w http.ResponseWriter) error
}
type PostApiDetectionsList200JSONResponse ¶
type PostApiDetectionsList200JSONResponse []ListedDetection
func (PostApiDetectionsList200JSONResponse) VisitPostApiDetectionsListResponse ¶
func (response PostApiDetectionsList200JSONResponse) VisitPostApiDetectionsListResponse(w http.ResponseWriter) error
type PostApiDetectionsList401Response ¶
type PostApiDetectionsList401Response struct {
}
func (PostApiDetectionsList401Response) VisitPostApiDetectionsListResponse ¶
func (response PostApiDetectionsList401Response) VisitPostApiDetectionsListResponse(w http.ResponseWriter) error
type PostApiDetectionsList500JSONResponse ¶
type PostApiDetectionsList500JSONResponse Error
func (PostApiDetectionsList500JSONResponse) VisitPostApiDetectionsListResponse ¶
func (response PostApiDetectionsList500JSONResponse) VisitPostApiDetectionsListResponse(w http.ResponseWriter) error
type PostApiDetectionsListJSONRequestBody ¶
type PostApiDetectionsListJSONRequestBody = DetectionListRequest
PostApiDetectionsListJSONRequestBody defines body for PostApiDetectionsList for application/json ContentType.
type PostApiDetectionsListRequestObject ¶
type PostApiDetectionsListRequestObject struct {
Body *PostApiDetectionsListJSONRequestBody
}
type PostApiDetectionsListResponse ¶
type PostApiDetectionsListResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]ListedDetection
JSON500 *Error
}
func ParsePostApiDetectionsListResponse ¶
func ParsePostApiDetectionsListResponse(rsp *http.Response) (*PostApiDetectionsListResponse, error)
ParsePostApiDetectionsListResponse parses an HTTP response from a PostApiDetectionsListWithResponse call
func (PostApiDetectionsListResponse) Status ¶
func (r PostApiDetectionsListResponse) Status() string
Status returns HTTPResponse.Status
func (PostApiDetectionsListResponse) StatusCode ¶
func (r PostApiDetectionsListResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostApiDetectionsListResponseObject ¶
type PostApiDetectionsListResponseObject interface {
VisitPostApiDetectionsListResponse(w http.ResponseWriter) error
}
type PostApiProfiles201JSONResponse ¶
type PostApiProfiles201JSONResponse struct {
Id int `json:"id"`
}
func (PostApiProfiles201JSONResponse) VisitPostApiProfilesResponse ¶
func (response PostApiProfiles201JSONResponse) VisitPostApiProfilesResponse(w http.ResponseWriter) error
type PostApiProfiles500JSONResponse ¶
type PostApiProfiles500JSONResponse Error
func (PostApiProfiles500JSONResponse) VisitPostApiProfilesResponse ¶
func (response PostApiProfiles500JSONResponse) VisitPostApiProfilesResponse(w http.ResponseWriter) error
type PostApiProfilesJSONRequestBody ¶
type PostApiProfilesJSONRequestBody = Profile
PostApiProfilesJSONRequestBody defines body for PostApiProfiles for application/json ContentType.
type PostApiProfilesProfileIdDryJumpstart200JSONResponse ¶
type PostApiProfilesProfileIdDryJumpstart200JSONResponse []AnalysisTaskParameters
func (PostApiProfilesProfileIdDryJumpstart200JSONResponse) VisitPostApiProfilesProfileIdDryJumpstartResponse ¶
func (response PostApiProfilesProfileIdDryJumpstart200JSONResponse) VisitPostApiProfilesProfileIdDryJumpstartResponse(w http.ResponseWriter) error
type PostApiProfilesProfileIdDryJumpstart404Response ¶
type PostApiProfilesProfileIdDryJumpstart404Response struct {
}
func (PostApiProfilesProfileIdDryJumpstart404Response) VisitPostApiProfilesProfileIdDryJumpstartResponse ¶
func (response PostApiProfilesProfileIdDryJumpstart404Response) VisitPostApiProfilesProfileIdDryJumpstartResponse(w http.ResponseWriter) error
type PostApiProfilesProfileIdDryJumpstart500JSONResponse ¶
type PostApiProfilesProfileIdDryJumpstart500JSONResponse Error
func (PostApiProfilesProfileIdDryJumpstart500JSONResponse) VisitPostApiProfilesProfileIdDryJumpstartResponse ¶
func (response PostApiProfilesProfileIdDryJumpstart500JSONResponse) VisitPostApiProfilesProfileIdDryJumpstartResponse(w http.ResponseWriter) error
type PostApiProfilesProfileIdDryJumpstartJSONRequestBody ¶
type PostApiProfilesProfileIdDryJumpstartJSONRequestBody = ProfileJumpstartRequest
PostApiProfilesProfileIdDryJumpstartJSONRequestBody defines body for PostApiProfilesProfileIdDryJumpstart for application/json ContentType.
type PostApiProfilesProfileIdDryJumpstartRequestObject ¶
type PostApiProfilesProfileIdDryJumpstartRequestObject struct {
ProfileId int `json:"profileId"`
Body *PostApiProfilesProfileIdDryJumpstartJSONRequestBody
}
type PostApiProfilesProfileIdDryJumpstartResponse ¶
type PostApiProfilesProfileIdDryJumpstartResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]AnalysisTaskParameters
JSON500 *Error
}
func ParsePostApiProfilesProfileIdDryJumpstartResponse ¶
func ParsePostApiProfilesProfileIdDryJumpstartResponse(rsp *http.Response) (*PostApiProfilesProfileIdDryJumpstartResponse, error)
ParsePostApiProfilesProfileIdDryJumpstartResponse parses an HTTP response from a PostApiProfilesProfileIdDryJumpstartWithResponse call
func (PostApiProfilesProfileIdDryJumpstartResponse) Status ¶
func (r PostApiProfilesProfileIdDryJumpstartResponse) Status() string
Status returns HTTPResponse.Status
func (PostApiProfilesProfileIdDryJumpstartResponse) StatusCode ¶
func (r PostApiProfilesProfileIdDryJumpstartResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostApiProfilesProfileIdDryJumpstartResponseObject ¶
type PostApiProfilesProfileIdDryJumpstartResponseObject interface {
VisitPostApiProfilesProfileIdDryJumpstartResponse(w http.ResponseWriter) error
}
type PostApiProfilesProfileIdJumpstart204Response ¶
type PostApiProfilesProfileIdJumpstart204Response struct {
}
func (PostApiProfilesProfileIdJumpstart204Response) VisitPostApiProfilesProfileIdJumpstartResponse ¶
func (response PostApiProfilesProfileIdJumpstart204Response) VisitPostApiProfilesProfileIdJumpstartResponse(w http.ResponseWriter) error
type PostApiProfilesProfileIdJumpstart404Response ¶
type PostApiProfilesProfileIdJumpstart404Response struct {
}
func (PostApiProfilesProfileIdJumpstart404Response) VisitPostApiProfilesProfileIdJumpstartResponse ¶
func (response PostApiProfilesProfileIdJumpstart404Response) VisitPostApiProfilesProfileIdJumpstartResponse(w http.ResponseWriter) error
type PostApiProfilesProfileIdJumpstart500JSONResponse ¶
type PostApiProfilesProfileIdJumpstart500JSONResponse Error
func (PostApiProfilesProfileIdJumpstart500JSONResponse) VisitPostApiProfilesProfileIdJumpstartResponse ¶
func (response PostApiProfilesProfileIdJumpstart500JSONResponse) VisitPostApiProfilesProfileIdJumpstartResponse(w http.ResponseWriter) error
type PostApiProfilesProfileIdJumpstartJSONRequestBody ¶
type PostApiProfilesProfileIdJumpstartJSONRequestBody = ProfileJumpstartRequest
PostApiProfilesProfileIdJumpstartJSONRequestBody defines body for PostApiProfilesProfileIdJumpstart for application/json ContentType.
type PostApiProfilesProfileIdJumpstartRequestObject ¶
type PostApiProfilesProfileIdJumpstartRequestObject struct {
ProfileId int `json:"profileId"`
Body *PostApiProfilesProfileIdJumpstartJSONRequestBody
}
type PostApiProfilesProfileIdJumpstartResponse ¶
type PostApiProfilesProfileIdJumpstartResponse struct {
Body []byte
HTTPResponse *http.Response
JSON500 *Error
}
func ParsePostApiProfilesProfileIdJumpstartResponse ¶
func ParsePostApiProfilesProfileIdJumpstartResponse(rsp *http.Response) (*PostApiProfilesProfileIdJumpstartResponse, error)
ParsePostApiProfilesProfileIdJumpstartResponse parses an HTTP response from a PostApiProfilesProfileIdJumpstartWithResponse call
func (PostApiProfilesProfileIdJumpstartResponse) Status ¶
func (r PostApiProfilesProfileIdJumpstartResponse) Status() string
Status returns HTTPResponse.Status
func (PostApiProfilesProfileIdJumpstartResponse) StatusCode ¶
func (r PostApiProfilesProfileIdJumpstartResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostApiProfilesProfileIdJumpstartResponseObject ¶
type PostApiProfilesProfileIdJumpstartResponseObject interface {
VisitPostApiProfilesProfileIdJumpstartResponse(w http.ResponseWriter) error
}
type PostApiProfilesRequestObject ¶
type PostApiProfilesRequestObject struct {
Body *PostApiProfilesJSONRequestBody
}
type PostApiProfilesResponse ¶
type PostApiProfilesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *struct {
Id int `json:"id"`
}
JSON500 *Error
}
func ParsePostApiProfilesResponse ¶
func ParsePostApiProfilesResponse(rsp *http.Response) (*PostApiProfilesResponse, error)
ParsePostApiProfilesResponse parses an HTTP response from a PostApiProfilesWithResponse call
func (PostApiProfilesResponse) Status ¶
func (r PostApiProfilesResponse) Status() string
Status returns HTTPResponse.Status
func (PostApiProfilesResponse) StatusCode ¶
func (r PostApiProfilesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostApiProfilesResponseObject ¶
type PostApiProfilesResponseObject interface {
VisitPostApiProfilesResponse(w http.ResponseWriter) error
}
type PostApiSourcesRedditSubredditsSubredditAddProfiles204Response ¶
type PostApiSourcesRedditSubredditsSubredditAddProfiles204Response struct {
}
func (PostApiSourcesRedditSubredditsSubredditAddProfiles204Response) VisitPostApiSourcesRedditSubredditsSubredditAddProfilesResponse ¶
func (response PostApiSourcesRedditSubredditsSubredditAddProfiles204Response) VisitPostApiSourcesRedditSubredditsSubredditAddProfilesResponse(w http.ResponseWriter) error
type PostApiSourcesRedditSubredditsSubredditAddProfiles401Response ¶
type PostApiSourcesRedditSubredditsSubredditAddProfiles401Response struct {
}
func (PostApiSourcesRedditSubredditsSubredditAddProfiles401Response) VisitPostApiSourcesRedditSubredditsSubredditAddProfilesResponse ¶
func (response PostApiSourcesRedditSubredditsSubredditAddProfiles401Response) VisitPostApiSourcesRedditSubredditsSubredditAddProfilesResponse(w http.ResponseWriter) error
type PostApiSourcesRedditSubredditsSubredditAddProfiles404Response ¶
type PostApiSourcesRedditSubredditsSubredditAddProfiles404Response struct {
}
func (PostApiSourcesRedditSubredditsSubredditAddProfiles404Response) VisitPostApiSourcesRedditSubredditsSubredditAddProfilesResponse ¶
func (response PostApiSourcesRedditSubredditsSubredditAddProfiles404Response) VisitPostApiSourcesRedditSubredditsSubredditAddProfilesResponse(w http.ResponseWriter) error
type PostApiSourcesRedditSubredditsSubredditAddProfiles500JSONResponse ¶
type PostApiSourcesRedditSubredditsSubredditAddProfiles500JSONResponse Error
func (PostApiSourcesRedditSubredditsSubredditAddProfiles500JSONResponse) VisitPostApiSourcesRedditSubredditsSubredditAddProfilesResponse ¶
func (response PostApiSourcesRedditSubredditsSubredditAddProfiles500JSONResponse) VisitPostApiSourcesRedditSubredditsSubredditAddProfilesResponse(w http.ResponseWriter) error
type PostApiSourcesRedditSubredditsSubredditAddProfilesJSONBody ¶
type PostApiSourcesRedditSubredditsSubredditAddProfilesJSONBody struct {
ProfileIds []int `json:"profile_ids"`
}
PostApiSourcesRedditSubredditsSubredditAddProfilesJSONBody defines parameters for PostApiSourcesRedditSubredditsSubredditAddProfiles.
type PostApiSourcesRedditSubredditsSubredditAddProfilesJSONRequestBody ¶
type PostApiSourcesRedditSubredditsSubredditAddProfilesJSONRequestBody PostApiSourcesRedditSubredditsSubredditAddProfilesJSONBody
PostApiSourcesRedditSubredditsSubredditAddProfilesJSONRequestBody defines body for PostApiSourcesRedditSubredditsSubredditAddProfiles for application/json ContentType.
type PostApiSourcesRedditSubredditsSubredditAddProfilesRequestObject ¶
type PostApiSourcesRedditSubredditsSubredditAddProfilesRequestObject struct {
Subreddit string `json:"subreddit"`
Body *PostApiSourcesRedditSubredditsSubredditAddProfilesJSONRequestBody
}
type PostApiSourcesRedditSubredditsSubredditAddProfilesResponse ¶
type PostApiSourcesRedditSubredditsSubredditAddProfilesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON500 *Error
}
func ParsePostApiSourcesRedditSubredditsSubredditAddProfilesResponse ¶
func ParsePostApiSourcesRedditSubredditsSubredditAddProfilesResponse(rsp *http.Response) (*PostApiSourcesRedditSubredditsSubredditAddProfilesResponse, error)
ParsePostApiSourcesRedditSubredditsSubredditAddProfilesResponse parses an HTTP response from a PostApiSourcesRedditSubredditsSubredditAddProfilesWithResponse call
func (PostApiSourcesRedditSubredditsSubredditAddProfilesResponse) Status ¶
func (r PostApiSourcesRedditSubredditsSubredditAddProfilesResponse) Status() string
Status returns HTTPResponse.Status
func (PostApiSourcesRedditSubredditsSubredditAddProfilesResponse) StatusCode ¶
func (r PostApiSourcesRedditSubredditsSubredditAddProfilesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostApiSourcesRedditSubredditsSubredditAddProfilesResponseObject ¶
type PostApiSourcesRedditSubredditsSubredditAddProfilesResponseObject interface {
VisitPostApiSourcesRedditSubredditsSubredditAddProfilesResponse(w http.ResponseWriter) error
}
type PostApiSourcesRedditSubredditsSubredditRemoveProfiles204Response ¶
type PostApiSourcesRedditSubredditsSubredditRemoveProfiles204Response struct {
}
func (PostApiSourcesRedditSubredditsSubredditRemoveProfiles204Response) VisitPostApiSourcesRedditSubredditsSubredditRemoveProfilesResponse ¶
func (response PostApiSourcesRedditSubredditsSubredditRemoveProfiles204Response) VisitPostApiSourcesRedditSubredditsSubredditRemoveProfilesResponse(w http.ResponseWriter) error
type PostApiSourcesRedditSubredditsSubredditRemoveProfiles401Response ¶
type PostApiSourcesRedditSubredditsSubredditRemoveProfiles401Response struct {
}
func (PostApiSourcesRedditSubredditsSubredditRemoveProfiles401Response) VisitPostApiSourcesRedditSubredditsSubredditRemoveProfilesResponse ¶
func (response PostApiSourcesRedditSubredditsSubredditRemoveProfiles401Response) VisitPostApiSourcesRedditSubredditsSubredditRemoveProfilesResponse(w http.ResponseWriter) error
type PostApiSourcesRedditSubredditsSubredditRemoveProfiles404Response ¶
type PostApiSourcesRedditSubredditsSubredditRemoveProfiles404Response struct {
}
func (PostApiSourcesRedditSubredditsSubredditRemoveProfiles404Response) VisitPostApiSourcesRedditSubredditsSubredditRemoveProfilesResponse ¶
func (response PostApiSourcesRedditSubredditsSubredditRemoveProfiles404Response) VisitPostApiSourcesRedditSubredditsSubredditRemoveProfilesResponse(w http.ResponseWriter) error
type PostApiSourcesRedditSubredditsSubredditRemoveProfiles500JSONResponse ¶
type PostApiSourcesRedditSubredditsSubredditRemoveProfiles500JSONResponse Error
func (PostApiSourcesRedditSubredditsSubredditRemoveProfiles500JSONResponse) VisitPostApiSourcesRedditSubredditsSubredditRemoveProfilesResponse ¶
func (response PostApiSourcesRedditSubredditsSubredditRemoveProfiles500JSONResponse) VisitPostApiSourcesRedditSubredditsSubredditRemoveProfilesResponse(w http.ResponseWriter) error
type PostApiSourcesRedditSubredditsSubredditRemoveProfilesJSONBody ¶
type PostApiSourcesRedditSubredditsSubredditRemoveProfilesJSONBody struct {
ProfileIds []int `json:"profile_ids"`
}
PostApiSourcesRedditSubredditsSubredditRemoveProfilesJSONBody defines parameters for PostApiSourcesRedditSubredditsSubredditRemoveProfiles.
type PostApiSourcesRedditSubredditsSubredditRemoveProfilesJSONRequestBody ¶
type PostApiSourcesRedditSubredditsSubredditRemoveProfilesJSONRequestBody PostApiSourcesRedditSubredditsSubredditRemoveProfilesJSONBody
PostApiSourcesRedditSubredditsSubredditRemoveProfilesJSONRequestBody defines body for PostApiSourcesRedditSubredditsSubredditRemoveProfiles for application/json ContentType.
type PostApiSourcesRedditSubredditsSubredditRemoveProfilesRequestObject ¶
type PostApiSourcesRedditSubredditsSubredditRemoveProfilesRequestObject struct {
Subreddit string `json:"subreddit"`
Body *PostApiSourcesRedditSubredditsSubredditRemoveProfilesJSONRequestBody
}
type PostApiSourcesRedditSubredditsSubredditRemoveProfilesResponse ¶
type PostApiSourcesRedditSubredditsSubredditRemoveProfilesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON500 *Error
}
func ParsePostApiSourcesRedditSubredditsSubredditRemoveProfilesResponse ¶
func ParsePostApiSourcesRedditSubredditsSubredditRemoveProfilesResponse(rsp *http.Response) (*PostApiSourcesRedditSubredditsSubredditRemoveProfilesResponse, error)
ParsePostApiSourcesRedditSubredditsSubredditRemoveProfilesResponse parses an HTTP response from a PostApiSourcesRedditSubredditsSubredditRemoveProfilesWithResponse call
func (PostApiSourcesRedditSubredditsSubredditRemoveProfilesResponse) Status ¶
func (r PostApiSourcesRedditSubredditsSubredditRemoveProfilesResponse) Status() string
Status returns HTTPResponse.Status
func (PostApiSourcesRedditSubredditsSubredditRemoveProfilesResponse) StatusCode ¶
func (r PostApiSourcesRedditSubredditsSubredditRemoveProfilesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostApiSourcesRedditSubredditsSubredditRemoveProfilesResponseObject ¶
type PostApiSourcesRedditSubredditsSubredditRemoveProfilesResponseObject interface {
VisitPostApiSourcesRedditSubredditsSubredditRemoveProfilesResponse(w http.ResponseWriter) error
}
type Profile ¶
type Profile struct {
Active bool `json:"active"`
CreatedAt *string `json:"created_at,omitempty"`
DefaultSettings *ProfileSettings `json:"default_settings,omitempty"`
Id int `json:"id"`
Name string `json:"name"`
SourcesSettings *map[string]ProfileSettings `json:"sources_settings,omitempty"`
UpdatedAt *string `json:"updated_at,omitempty"`
}
Profile defines model for Profile.
type ProfileFilter ¶
type ProfileFilter struct {
ProfileId int `json:"profile_id"`
SourceSettingsVersions []SourceSettingsVersionsFilter `json:"source_settings_versions"`
}
ProfileFilter defines model for ProfileFilter.
type ProfileJumpstartRequest ¶
type ProfileJumpstartRequest struct {
// ExcludeAlreadyAnalyzed Whether to exclude already analyzed posts.
ExcludeAlreadyAnalyzed *bool `json:"exclude_already_analyzed,omitempty"`
// JumpstartPeriod How many days to go back in time to analyze. If null, analyze all posts.
JumpstartPeriod *int `json:"jumpstart_period,omitempty"`
// Limit How many posts to analyze. If null, analyze all posts.
Limit *int `json:"limit,omitempty"`
}
ProfileJumpstartRequest defines model for ProfileJumpstartRequest.
type ProfileSettings ¶
type ProfileSettings struct {
CreatedAt *string `json:"created_at,omitempty"`
ExtractedProperties map[string]string `json:"extracted_properties"`
RelevancyFilter string `json:"relevancy_filter"`
UpdatedAt *string `json:"updated_at,omitempty"`
Version int `json:"version"`
}
ProfileSettings defines model for ProfileSettings.
type ProfileSettingsUpdate ¶
type ProfileSettingsUpdate struct {
ExtractedProperties *map[string]*string `json:"extracted_properties,omitempty"`
RelevancyFilter *string `json:"relevancy_filter,omitempty"`
}
ProfileSettingsUpdate defines model for ProfileSettingsUpdate.
type ProfileStatistics ¶
type ProfileStatistics struct {
AutoTasks int `json:"auto_tasks"`
ManualTasks int `json:"manual_tasks"`
}
ProfileStatistics defines model for ProfileStatistics.
type ProfileUpdate ¶
type ProfileUpdate struct {
Active *bool `json:"active,omitempty"`
DefaultSettings nullable.Nullable[ProfileSettingsUpdate] `json:"default_settings,omitempty"`
Name *string `json:"name,omitempty"`
SourcesSettings *map[string]*ProfileSettingsUpdate `json:"sources_settings,omitempty"`
}
ProfileUpdate defines model for ProfileUpdate.
type PutApiDetectionsTags200JSONResponse ¶
type PutApiDetectionsTags200JSONResponse DetectionTags
func (PutApiDetectionsTags200JSONResponse) VisitPutApiDetectionsTagsResponse ¶
func (response PutApiDetectionsTags200JSONResponse) VisitPutApiDetectionsTagsResponse(w http.ResponseWriter) error
type PutApiDetectionsTags401Response ¶
type PutApiDetectionsTags401Response struct {
}
func (PutApiDetectionsTags401Response) VisitPutApiDetectionsTagsResponse ¶
func (response PutApiDetectionsTags401Response) VisitPutApiDetectionsTagsResponse(w http.ResponseWriter) error
type PutApiDetectionsTags500JSONResponse ¶
type PutApiDetectionsTags500JSONResponse Error
func (PutApiDetectionsTags500JSONResponse) VisitPutApiDetectionsTagsResponse ¶
func (response PutApiDetectionsTags500JSONResponse) VisitPutApiDetectionsTagsResponse(w http.ResponseWriter) error
type PutApiDetectionsTagsJSONRequestBody ¶
type PutApiDetectionsTagsJSONRequestBody = DetectionTagUpdateRequest
PutApiDetectionsTagsJSONRequestBody defines body for PutApiDetectionsTags for application/json ContentType.
type PutApiDetectionsTagsRequestObject ¶
type PutApiDetectionsTagsRequestObject struct {
Body *PutApiDetectionsTagsJSONRequestBody
}
type PutApiDetectionsTagsResponse ¶
type PutApiDetectionsTagsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *DetectionTags
JSON500 *Error
}
func ParsePutApiDetectionsTagsResponse ¶
func ParsePutApiDetectionsTagsResponse(rsp *http.Response) (*PutApiDetectionsTagsResponse, error)
ParsePutApiDetectionsTagsResponse parses an HTTP response from a PutApiDetectionsTagsWithResponse call
func (PutApiDetectionsTagsResponse) Status ¶
func (r PutApiDetectionsTagsResponse) Status() string
Status returns HTTPResponse.Status
func (PutApiDetectionsTagsResponse) StatusCode ¶
func (r PutApiDetectionsTagsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PutApiDetectionsTagsResponseObject ¶
type PutApiDetectionsTagsResponseObject interface {
VisitPutApiDetectionsTagsResponse(w http.ResponseWriter) error
}
type PutApiProfilesProfileId200Response ¶
type PutApiProfilesProfileId200Response struct {
}
func (PutApiProfilesProfileId200Response) VisitPutApiProfilesProfileIdResponse ¶
func (response PutApiProfilesProfileId200Response) VisitPutApiProfilesProfileIdResponse(w http.ResponseWriter) error
type PutApiProfilesProfileId404Response ¶
type PutApiProfilesProfileId404Response struct {
}
func (PutApiProfilesProfileId404Response) VisitPutApiProfilesProfileIdResponse ¶
func (response PutApiProfilesProfileId404Response) VisitPutApiProfilesProfileIdResponse(w http.ResponseWriter) error
type PutApiProfilesProfileId500JSONResponse ¶
type PutApiProfilesProfileId500JSONResponse Error
func (PutApiProfilesProfileId500JSONResponse) VisitPutApiProfilesProfileIdResponse ¶
func (response PutApiProfilesProfileId500JSONResponse) VisitPutApiProfilesProfileIdResponse(w http.ResponseWriter) error
type PutApiProfilesProfileIdJSONRequestBody ¶
type PutApiProfilesProfileIdJSONRequestBody = ProfileUpdate
PutApiProfilesProfileIdJSONRequestBody defines body for PutApiProfilesProfileId for application/json ContentType.
type PutApiProfilesProfileIdRequestObject ¶
type PutApiProfilesProfileIdRequestObject struct {
ProfileId int `json:"profileId"`
Body *PutApiProfilesProfileIdJSONRequestBody
}
type PutApiProfilesProfileIdResponse ¶
type PutApiProfilesProfileIdResponse struct {
Body []byte
HTTPResponse *http.Response
JSON500 *Error
}
func ParsePutApiProfilesProfileIdResponse ¶
func ParsePutApiProfilesProfileIdResponse(rsp *http.Response) (*PutApiProfilesProfileIdResponse, error)
ParsePutApiProfilesProfileIdResponse parses an HTTP response from a PutApiProfilesProfileIdWithResponse call
func (PutApiProfilesProfileIdResponse) Status ¶
func (r PutApiProfilesProfileIdResponse) Status() string
Status returns HTTPResponse.Status
func (PutApiProfilesProfileIdResponse) StatusCode ¶
func (r PutApiProfilesProfileIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PutApiProfilesProfileIdResponseObject ¶
type PutApiProfilesProfileIdResponseObject interface {
VisitPutApiProfilesProfileIdResponse(w http.ResponseWriter) error
}
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type ServerInterface ¶
type ServerInterface interface {
// Analyze a post
// (POST /api/analyze)
PostApiAnalyze(c *gin.Context)
// List detections
// (POST /api/detections/list)
PostApiDetectionsList(c *gin.Context)
// Detection tag update
// (PUT /api/detections/tags)
PutApiDetectionsTags(c *gin.Context)
// Get all profiles
// (GET /api/profiles)
GetApiProfiles(c *gin.Context)
// Create a new profile
// (POST /api/profiles)
PostApiProfiles(c *gin.Context)
// Delete a profile by ID
// (DELETE /api/profiles/{profileId})
DeleteApiProfilesProfileId(c *gin.Context, profileId int)
// Get a profile by ID
// (GET /api/profiles/{profileId})
GetApiProfilesProfileId(c *gin.Context, profileId int)
// Update a profile by ID
// (PUT /api/profiles/{profileId})
PutApiProfilesProfileId(c *gin.Context, profileId int)
// Dry jumpstart a profile - load tasks to be spawned
// (POST /api/profiles/{profileId}/dry_jumpstart)
PostApiProfilesProfileIdDryJumpstart(c *gin.Context, profileId int)
// Jumpstart a profile - run analysis on old posts
// (POST /api/profiles/{profileId}/jumpstart)
PostApiProfilesProfileIdJumpstart(c *gin.Context, profileId int)
// Get all subreddits
// (GET /api/sources/reddit/subreddits)
GetApiSourcesRedditSubreddits(c *gin.Context)
// Add profiles
// (POST /api/sources/reddit/subreddits/{subreddit}/add_profiles)
PostApiSourcesRedditSubredditsSubredditAddProfiles(c *gin.Context, subreddit string)
// Remove profiles
// (POST /api/sources/reddit/subreddits/{subreddit}/remove_profiles)
PostApiSourcesRedditSubredditsSubredditRemoveProfiles(c *gin.Context, subreddit string)
// Get all subreddits by profile
// (GET /api/sources/reddit/subreddits_with_profile)
GetApiSourcesRedditSubredditsWithProfile(c *gin.Context, params GetApiSourcesRedditSubredditsWithProfileParams)
// Get statistics for a profile
// (GET /api/statistics/{profileId})
GetApiStatisticsProfileId(c *gin.Context, profileId int)
}
ServerInterface represents all server handlers.
func NewStrictHandler ¶
func NewStrictHandler(ssi StrictServerInterface, middlewares []StrictMiddlewareFunc) ServerInterface
type ServerInterfaceWrapper ¶
type ServerInterfaceWrapper struct {
Handler ServerInterface
HandlerMiddlewares []MiddlewareFunc
ErrorHandler func(*gin.Context, error, int)
}
ServerInterfaceWrapper converts contexts to parameters.
func (*ServerInterfaceWrapper) DeleteApiProfilesProfileId ¶
func (siw *ServerInterfaceWrapper) DeleteApiProfilesProfileId(c *gin.Context)
DeleteApiProfilesProfileId operation middleware
func (*ServerInterfaceWrapper) GetApiProfiles ¶
func (siw *ServerInterfaceWrapper) GetApiProfiles(c *gin.Context)
GetApiProfiles operation middleware
func (*ServerInterfaceWrapper) GetApiProfilesProfileId ¶
func (siw *ServerInterfaceWrapper) GetApiProfilesProfileId(c *gin.Context)
GetApiProfilesProfileId operation middleware
func (*ServerInterfaceWrapper) GetApiSourcesRedditSubreddits ¶
func (siw *ServerInterfaceWrapper) GetApiSourcesRedditSubreddits(c *gin.Context)
GetApiSourcesRedditSubreddits operation middleware
func (*ServerInterfaceWrapper) GetApiSourcesRedditSubredditsWithProfile ¶
func (siw *ServerInterfaceWrapper) GetApiSourcesRedditSubredditsWithProfile(c *gin.Context)
GetApiSourcesRedditSubredditsWithProfile operation middleware
func (*ServerInterfaceWrapper) GetApiStatisticsProfileId ¶
func (siw *ServerInterfaceWrapper) GetApiStatisticsProfileId(c *gin.Context)
GetApiStatisticsProfileId operation middleware
func (*ServerInterfaceWrapper) PostApiAnalyze ¶
func (siw *ServerInterfaceWrapper) PostApiAnalyze(c *gin.Context)
PostApiAnalyze operation middleware
func (*ServerInterfaceWrapper) PostApiDetectionsList ¶
func (siw *ServerInterfaceWrapper) PostApiDetectionsList(c *gin.Context)
PostApiDetectionsList operation middleware
func (*ServerInterfaceWrapper) PostApiProfiles ¶
func (siw *ServerInterfaceWrapper) PostApiProfiles(c *gin.Context)
PostApiProfiles operation middleware
func (*ServerInterfaceWrapper) PostApiProfilesProfileIdDryJumpstart ¶
func (siw *ServerInterfaceWrapper) PostApiProfilesProfileIdDryJumpstart(c *gin.Context)
PostApiProfilesProfileIdDryJumpstart operation middleware
func (*ServerInterfaceWrapper) PostApiProfilesProfileIdJumpstart ¶
func (siw *ServerInterfaceWrapper) PostApiProfilesProfileIdJumpstart(c *gin.Context)
PostApiProfilesProfileIdJumpstart operation middleware
func (*ServerInterfaceWrapper) PostApiSourcesRedditSubredditsSubredditAddProfiles ¶
func (siw *ServerInterfaceWrapper) PostApiSourcesRedditSubredditsSubredditAddProfiles(c *gin.Context)
PostApiSourcesRedditSubredditsSubredditAddProfiles operation middleware
func (*ServerInterfaceWrapper) PostApiSourcesRedditSubredditsSubredditRemoveProfiles ¶
func (siw *ServerInterfaceWrapper) PostApiSourcesRedditSubredditsSubredditRemoveProfiles(c *gin.Context)
PostApiSourcesRedditSubredditsSubredditRemoveProfiles operation middleware
func (*ServerInterfaceWrapper) PutApiDetectionsTags ¶
func (siw *ServerInterfaceWrapper) PutApiDetectionsTags(c *gin.Context)
PutApiDetectionsTags operation middleware
func (*ServerInterfaceWrapper) PutApiProfilesProfileId ¶
func (siw *ServerInterfaceWrapper) PutApiProfilesProfileId(c *gin.Context)
PutApiProfilesProfileId operation middleware
type SourceSettingsVersionsFilter ¶
type SourceSettingsVersionsFilter struct {
Source *string `json:"source,omitempty"`
Versions []int `json:"versions"`
}
SourceSettingsVersionsFilter defines model for SourceSettingsVersionsFilter.
type StrictHandlerFunc ¶
type StrictHandlerFunc = strictgin.StrictGinHandlerFunc
type StrictMiddlewareFunc ¶
type StrictMiddlewareFunc = strictgin.StrictGinMiddlewareFunc
type StrictServerInterface ¶
type StrictServerInterface interface {
// Analyze a post
// (POST /api/analyze)
PostApiAnalyze(ctx context.Context, request PostApiAnalyzeRequestObject) (PostApiAnalyzeResponseObject, error)
// List detections
// (POST /api/detections/list)
PostApiDetectionsList(ctx context.Context, request PostApiDetectionsListRequestObject) (PostApiDetectionsListResponseObject, error)
// Detection tag update
// (PUT /api/detections/tags)
PutApiDetectionsTags(ctx context.Context, request PutApiDetectionsTagsRequestObject) (PutApiDetectionsTagsResponseObject, error)
// Get all profiles
// (GET /api/profiles)
GetApiProfiles(ctx context.Context, request GetApiProfilesRequestObject) (GetApiProfilesResponseObject, error)
// Create a new profile
// (POST /api/profiles)
PostApiProfiles(ctx context.Context, request PostApiProfilesRequestObject) (PostApiProfilesResponseObject, error)
// Delete a profile by ID
// (DELETE /api/profiles/{profileId})
DeleteApiProfilesProfileId(ctx context.Context, request DeleteApiProfilesProfileIdRequestObject) (DeleteApiProfilesProfileIdResponseObject, error)
// Get a profile by ID
// (GET /api/profiles/{profileId})
GetApiProfilesProfileId(ctx context.Context, request GetApiProfilesProfileIdRequestObject) (GetApiProfilesProfileIdResponseObject, error)
// Update a profile by ID
// (PUT /api/profiles/{profileId})
PutApiProfilesProfileId(ctx context.Context, request PutApiProfilesProfileIdRequestObject) (PutApiProfilesProfileIdResponseObject, error)
// Dry jumpstart a profile - load tasks to be spawned
// (POST /api/profiles/{profileId}/dry_jumpstart)
PostApiProfilesProfileIdDryJumpstart(ctx context.Context, request PostApiProfilesProfileIdDryJumpstartRequestObject) (PostApiProfilesProfileIdDryJumpstartResponseObject, error)
// Jumpstart a profile - run analysis on old posts
// (POST /api/profiles/{profileId}/jumpstart)
PostApiProfilesProfileIdJumpstart(ctx context.Context, request PostApiProfilesProfileIdJumpstartRequestObject) (PostApiProfilesProfileIdJumpstartResponseObject, error)
// Get all subreddits
// (GET /api/sources/reddit/subreddits)
GetApiSourcesRedditSubreddits(ctx context.Context, request GetApiSourcesRedditSubredditsRequestObject) (GetApiSourcesRedditSubredditsResponseObject, error)
// Add profiles
// (POST /api/sources/reddit/subreddits/{subreddit}/add_profiles)
PostApiSourcesRedditSubredditsSubredditAddProfiles(ctx context.Context, request PostApiSourcesRedditSubredditsSubredditAddProfilesRequestObject) (PostApiSourcesRedditSubredditsSubredditAddProfilesResponseObject, error)
// Remove profiles
// (POST /api/sources/reddit/subreddits/{subreddit}/remove_profiles)
PostApiSourcesRedditSubredditsSubredditRemoveProfiles(ctx context.Context, request PostApiSourcesRedditSubredditsSubredditRemoveProfilesRequestObject) (PostApiSourcesRedditSubredditsSubredditRemoveProfilesResponseObject, error)
// Get all subreddits by profile
// (GET /api/sources/reddit/subreddits_with_profile)
GetApiSourcesRedditSubredditsWithProfile(ctx context.Context, request GetApiSourcesRedditSubredditsWithProfileRequestObject) (GetApiSourcesRedditSubredditsWithProfileResponseObject, error)
// Get statistics for a profile
// (GET /api/statistics/{profileId})
GetApiStatisticsProfileId(ctx context.Context, request GetApiStatisticsProfileIdRequestObject) (GetApiStatisticsProfileIdResponseObject, error)
}
StrictServerInterface represents all server handlers.
type SubredditSettings ¶
type SubredditSettings struct {
Profiles []int `json:"profiles"`
Subreddit string `json:"subreddit"`
}
SubredditSettings defines model for SubredditSettings.