package
0.0.0-20230424195513-996d0522dd0b
Repository: https://github.com/grbit/swagger-example.git
Documentation: pkg.go.dev
# Functions
NewAddAccUpdater creates a new http.Handler for the add acc updater operation.
NewAddAccUpdaterBadRequest creates AddAccUpdaterBadRequest with default headers values.
NewAddAccUpdaterCreated creates AddAccUpdaterCreated with default headers values.
NewAddAccUpdaterInternalServerError creates AddAccUpdaterInternalServerError with default headers values.
NewAddAccUpdaterOK creates AddAccUpdaterOK with default headers values.
NewAddAccUpdaterParams creates a new AddAccUpdaterParams object
There are no default values defined in the spec.
NewDelAccUpdater creates a new http.Handler for the del acc updater operation.
NewDelAccUpdaterBadRequest creates DelAccUpdaterBadRequest with default headers values.
NewDelAccUpdaterInternalServerError creates DelAccUpdaterInternalServerError with default headers values.
NewDelAccUpdaterOK creates DelAccUpdaterOK with default headers values.
NewDelAccUpdaterParams creates a new DelAccUpdaterParams object
There are no default values defined in the spec.
NewGetAdsStats creates a new http.Handler for the get ads stats operation.
NewGetAdsStatsBadRequest creates GetAdsStatsBadRequest with default headers values.
NewGetAdsStatsInternalServerError creates GetAdsStatsInternalServerError with default headers values.
NewGetAdsStatsOK creates GetAdsStatsOK with default headers values.
NewGetAdsStatsParams creates a new GetAdsStatsParams object
There are no default values defined in the spec.
NewGetAdsStatsUnauthorized creates GetAdsStatsUnauthorized with default headers values.
NewGetCampaignsStats creates a new http.Handler for the get campaigns stats operation.
NewGetCampaignsStatsBadRequest creates GetCampaignsStatsBadRequest with default headers values.
NewGetCampaignsStatsInternalServerError creates GetCampaignsStatsInternalServerError with default headers values.
NewGetCampaignsStatsOK creates GetCampaignsStatsOK with default headers values.
NewGetCampaignsStatsParams creates a new GetCampaignsStatsParams object
There are no default values defined in the spec.
NewGetCampaignsStatsUnauthorized creates GetCampaignsStatsUnauthorized with default headers values.
NewStatsAPI creates a new Stats instance.
# Constants
AddAccUpdaterBadRequestCode is the HTTP code returned for type AddAccUpdaterBadRequest.
AddAccUpdaterCreatedCode is the HTTP code returned for type AddAccUpdaterCreated.
AddAccUpdaterInternalServerErrorCode is the HTTP code returned for type AddAccUpdaterInternalServerError.
AddAccUpdaterOKCode is the HTTP code returned for type AddAccUpdaterOK.
DelAccUpdaterBadRequestCode is the HTTP code returned for type DelAccUpdaterBadRequest.
DelAccUpdaterInternalServerErrorCode is the HTTP code returned for type DelAccUpdaterInternalServerError.
DelAccUpdaterOKCode is the HTTP code returned for type DelAccUpdaterOK.
GetAdsStatsBadRequestCode is the HTTP code returned for type GetAdsStatsBadRequest.
GetAdsStatsInternalServerErrorCode is the HTTP code returned for type GetAdsStatsInternalServerError.
GetAdsStatsOKCode is the HTTP code returned for type GetAdsStatsOK.
GetAdsStatsUnauthorizedCode is the HTTP code returned for type GetAdsStatsUnauthorized.
GetCampaignsStatsBadRequestCode is the HTTP code returned for type GetCampaignsStatsBadRequest.
GetCampaignsStatsInternalServerErrorCode is the HTTP code returned for type GetCampaignsStatsInternalServerError.
GetCampaignsStatsOKCode is the HTTP code returned for type GetCampaignsStatsOK.
GetCampaignsStatsUnauthorizedCode is the HTTP code returned for type GetCampaignsStatsUnauthorized.
# Structs
AddAccUpdater swagger:route POST / addAccUpdater
Starts loading account ad and campaign statistic or raise account loading task in line
Response for new account is 201 CREATED
Response for raising in line is 200 OK
*/.
AddAccUpdaterBadRequest bad request 400
swagger:response addAccUpdaterBadRequest
*/.
AddAccUpdaterCreated created 201
swagger:response addAccUpdaterCreated
*/.
AddAccUpdaterInternalServerError internal server error 500
swagger:response addAccUpdaterInternalServerError
*/.
AddAccUpdaterOK success 200
swagger:response addAccUpdaterOK
*/.
AddAccUpdaterParams contains all the bound params for the add acc updater operation typically these are obtained from a http.Request
swagger:parameters addAccUpdater.
AddAccUpdaterURL generates an URL for the add acc updater operation.
DelAccUpdater swagger:route DELETE /{account_id} delAccUpdater
Delete account from loading queue and stop regularly updates.
DelAccUpdaterBadRequest bad request 400
swagger:response delAccUpdaterBadRequest
*/.
DelAccUpdaterInternalServerError internal server error 500
swagger:response delAccUpdaterInternalServerError
*/.
DelAccUpdaterOK success 200
swagger:response delAccUpdaterOK
*/.
DelAccUpdaterParams contains all the bound params for the del acc updater operation typically these are obtained from a http.Request
swagger:parameters delAccUpdater.
DelAccUpdaterURL generates an URL for the del acc updater operation.
GetAdsStats swagger:route GET /{account_id}/ads getAdsStats
Gives array of stats for set time period.
GetAdsStatsBadRequest bad request 400
swagger:response getAdsStatsBadRequest
*/.
GetAdsStatsInternalServerError internal server error 500
swagger:response getAdsStatsInternalServerError
*/.
GetAdsStatsOK pages of Ad
swagger:response getAdsStatsOK
*/.
GetAdsStatsOKBody get ads stats o k body
swagger:model GetAdsStatsOKBody.
GetAdsStatsParams contains all the bound params for the get ads stats operation typically these are obtained from a http.Request
swagger:parameters getAdsStats.
GetAdsStatsUnauthorized unauthorized 400
swagger:response getAdsStatsUnauthorized
*/.
GetAdsStatsURL generates an URL for the get ads stats operation.
GetCampaignsStats swagger:route GET /{account_id}/campaigns getCampaignsStats
Gives array of stats for set time period.
GetCampaignsStatsBadRequest bad request 400
swagger:response getCampaignsStatsBadRequest
*/.
GetCampaignsStatsInternalServerError internal server error 500
swagger:response getCampaignsStatsInternalServerError
*/.
GetCampaignsStatsOK pages of Campaign
swagger:response getCampaignsStatsOK
*/.
GetCampaignsStatsOKBody get campaigns stats o k body
swagger:model GetCampaignsStatsOKBody.
GetCampaignsStatsParams contains all the bound params for the get campaigns stats operation typically these are obtained from a http.Request
swagger:parameters getCampaignsStats.
GetCampaignsStatsUnauthorized unauthorized 400
swagger:response getCampaignsStatsUnauthorized
*/.
GetCampaignsStatsURL generates an URL for the get campaigns stats operation.
StatsAPI Some description of your amazing service */.
# Interfaces
AddAccUpdaterHandler interface for that can handle valid add acc updater params.
DelAccUpdaterHandler interface for that can handle valid del acc updater params.
GetAdsStatsHandler interface for that can handle valid get ads stats params.
GetCampaignsStatsHandler interface for that can handle valid get campaigns stats params.
# Type aliases
AddAccUpdaterHandlerFunc turns a function with the right signature into a add acc updater handler.
DelAccUpdaterHandlerFunc turns a function with the right signature into a del acc updater handler.
GetAdsStatsHandlerFunc turns a function with the right signature into a get ads stats handler.
GetCampaignsStatsHandlerFunc turns a function with the right signature into a get campaigns stats handler.