Documentation ¶
Index ¶
- Constants
- type ContactSourceCleanUp
- type ContactSourceCleanUpBadRequest
- type ContactSourceCleanUpHandler
- type ContactSourceCleanUpHandlerFunc
- type ContactSourceCleanUpOK
- type ContactSourceCleanUpParams
- type ContactSourceCleanUpURL
- func (o *ContactSourceCleanUpURL) Build() (*url.URL, error)
- func (o *ContactSourceCleanUpURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ContactSourceCleanUpURL) Must(u *url.URL, err error) *url.URL
- func (o *ContactSourceCleanUpURL) SetBasePath(bp string)
- func (o *ContactSourceCleanUpURL) String() string
- func (o *ContactSourceCleanUpURL) StringFull(scheme, host string) string
- func (o *ContactSourceCleanUpURL) WithBasePath(bp string) *ContactSourceCleanUpURL
- type ContactsJobsAPI
- func (o *ContactsJobsAPI) AddMiddlewareFor(method, path string, builder middleware.Builder)
- func (o *ContactsJobsAPI) AuthenticatorsFor(schemes map[string]spec.SecurityScheme) map[string]runtime.Authenticator
- func (o *ContactsJobsAPI) Authorizer() runtime.Authorizer
- func (o *ContactsJobsAPI) ConsumersFor(mediaTypes []string) map[string]runtime.Consumer
- func (o *ContactsJobsAPI) Context() *middleware.Context
- func (o *ContactsJobsAPI) DefaultConsumes() string
- func (o *ContactsJobsAPI) DefaultProduces() string
- func (o *ContactsJobsAPI) Formats() strfmt.Registry
- func (o *ContactsJobsAPI) HandlerFor(method, path string) (http.Handler, bool)
- func (o *ContactsJobsAPI) Init()
- func (o *ContactsJobsAPI) ProducersFor(mediaTypes []string) map[string]runtime.Producer
- func (o *ContactsJobsAPI) RegisterConsumer(mediaType string, consumer runtime.Consumer)
- func (o *ContactsJobsAPI) RegisterFormat(name string, format strfmt.Format, validator strfmt.Validator)
- func (o *ContactsJobsAPI) RegisterProducer(mediaType string, producer runtime.Producer)
- func (o *ContactsJobsAPI) Serve(builder middleware.Builder) http.Handler
- func (o *ContactsJobsAPI) ServeErrorFor(operationID string) func(http.ResponseWriter, *http.Request, error)
- func (o *ContactsJobsAPI) SetDefaultConsumes(mediaType string)
- func (o *ContactsJobsAPI) SetDefaultProduces(mediaType string)
- func (o *ContactsJobsAPI) SetSpec(spec *loads.Document)
- func (o *ContactsJobsAPI) UseRedoc()
- func (o *ContactsJobsAPI) UseSwaggerUI()
- func (o *ContactsJobsAPI) Validate() error
- type PullContactSource
- type PullContactSourceBadRequest
- type PullContactSourceHandler
- type PullContactSourceHandlerFunc
- type PullContactSourceOK
- type PullContactSourceParams
- type PullContactSourceURL
- func (o *PullContactSourceURL) Build() (*url.URL, error)
- func (o *PullContactSourceURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *PullContactSourceURL) Must(u *url.URL, err error) *url.URL
- func (o *PullContactSourceURL) SetBasePath(bp string)
- func (o *PullContactSourceURL) String() string
- func (o *PullContactSourceURL) StringFull(scheme, host string) string
- func (o *PullContactSourceURL) WithBasePath(bp string) *PullContactSourceURL
- type PullContacts
- type PullContactsBadRequest
- type PullContactsHandler
- type PullContactsHandlerFunc
- type PullContactsOK
- type PullContactsParams
- type PullContactsURL
- func (o *PullContactsURL) Build() (*url.URL, error)
- func (o *PullContactsURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *PullContactsURL) Must(u *url.URL, err error) *url.URL
- func (o *PullContactsURL) SetBasePath(bp string)
- func (o *PullContactsURL) String() string
- func (o *PullContactsURL) StringFull(scheme, host string) string
- func (o *PullContactsURL) WithBasePath(bp string) *PullContactsURL
Constants ¶
const ContactSourceCleanUpBadRequestCode int = 400
ContactSourceCleanUpBadRequestCode is the HTTP code returned for type ContactSourceCleanUpBadRequest
const ContactSourceCleanUpOKCode int = 200
ContactSourceCleanUpOKCode is the HTTP code returned for type ContactSourceCleanUpOK
const PullContactSourceBadRequestCode int = 400
PullContactSourceBadRequestCode is the HTTP code returned for type PullContactSourceBadRequest
const PullContactSourceOKCode int = 200
PullContactSourceOKCode is the HTTP code returned for type PullContactSourceOK
const PullContactsBadRequestCode int = 400
PullContactsBadRequestCode is the HTTP code returned for type PullContactsBadRequest
const PullContactsOKCode int = 200
PullContactsOKCode is the HTTP code returned for type PullContactsOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContactSourceCleanUp ¶
type ContactSourceCleanUp struct { Context *middleware.Context Handler ContactSourceCleanUpHandler }
ContactSourceCleanUp swagger:route POST /contact-source-clean-up contactSourceCleanUp
clean up job after deleting a contact source
func NewContactSourceCleanUp ¶
func NewContactSourceCleanUp(ctx *middleware.Context, handler ContactSourceCleanUpHandler) *ContactSourceCleanUp
NewContactSourceCleanUp creates a new http.Handler for the contact source clean up operation
func (*ContactSourceCleanUp) ServeHTTP ¶
func (o *ContactSourceCleanUp) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type ContactSourceCleanUpBadRequest ¶
type ContactSourceCleanUpBadRequest struct { /* In: Body */ Payload *models.JobError `json:"body,omitempty"` }
ContactSourceCleanUpBadRequest Error
swagger:response contactSourceCleanUpBadRequest
func NewContactSourceCleanUpBadRequest ¶
func NewContactSourceCleanUpBadRequest() *ContactSourceCleanUpBadRequest
NewContactSourceCleanUpBadRequest creates ContactSourceCleanUpBadRequest with default headers values
func (*ContactSourceCleanUpBadRequest) SetPayload ¶
func (o *ContactSourceCleanUpBadRequest) SetPayload(payload *models.JobError)
SetPayload sets the payload to the contact source clean up bad request response
func (*ContactSourceCleanUpBadRequest) WithPayload ¶
func (o *ContactSourceCleanUpBadRequest) WithPayload(payload *models.JobError) *ContactSourceCleanUpBadRequest
WithPayload adds the payload to the contact source clean up bad request response
func (*ContactSourceCleanUpBadRequest) WriteResponse ¶
func (o *ContactSourceCleanUpBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ContactSourceCleanUpHandler ¶
type ContactSourceCleanUpHandler interface {
Handle(ContactSourceCleanUpParams) middleware.Responder
}
ContactSourceCleanUpHandler interface for that can handle valid contact source clean up params
type ContactSourceCleanUpHandlerFunc ¶
type ContactSourceCleanUpHandlerFunc func(ContactSourceCleanUpParams) middleware.Responder
ContactSourceCleanUpHandlerFunc turns a function with the right signature into a contact source clean up handler
func (ContactSourceCleanUpHandlerFunc) Handle ¶
func (fn ContactSourceCleanUpHandlerFunc) Handle(params ContactSourceCleanUpParams) middleware.Responder
Handle executing the request and returning a response
type ContactSourceCleanUpOK ¶
type ContactSourceCleanUpOK struct { /* In: Body */ Payload *models.JobSuccess `json:"body,omitempty"` }
ContactSourceCleanUpOK Triggered
swagger:response contactSourceCleanUpOK
func NewContactSourceCleanUpOK ¶
func NewContactSourceCleanUpOK() *ContactSourceCleanUpOK
NewContactSourceCleanUpOK creates ContactSourceCleanUpOK with default headers values
func (*ContactSourceCleanUpOK) SetPayload ¶
func (o *ContactSourceCleanUpOK) SetPayload(payload *models.JobSuccess)
SetPayload sets the payload to the contact source clean up o k response
func (*ContactSourceCleanUpOK) WithPayload ¶
func (o *ContactSourceCleanUpOK) WithPayload(payload *models.JobSuccess) *ContactSourceCleanUpOK
WithPayload adds the payload to the contact source clean up o k response
func (*ContactSourceCleanUpOK) WriteResponse ¶
func (o *ContactSourceCleanUpOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ContactSourceCleanUpParams ¶
type ContactSourceCleanUpParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* In: body */ Body *models.PubsubMessage }
ContactSourceCleanUpParams contains all the bound params for the contact source clean up operation typically these are obtained from a http.Request
swagger:parameters contact-source-clean-up
func NewContactSourceCleanUpParams ¶
func NewContactSourceCleanUpParams() ContactSourceCleanUpParams
NewContactSourceCleanUpParams creates a new ContactSourceCleanUpParams object
There are no default values defined in the spec.
func (*ContactSourceCleanUpParams) BindRequest ¶
func (o *ContactSourceCleanUpParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewContactSourceCleanUpParams() beforehand.
type ContactSourceCleanUpURL ¶
type ContactSourceCleanUpURL struct {
// contains filtered or unexported fields
}
ContactSourceCleanUpURL generates an URL for the contact source clean up operation
func (*ContactSourceCleanUpURL) Build ¶
func (o *ContactSourceCleanUpURL) Build() (*url.URL, error)
Build a url path and query string
func (*ContactSourceCleanUpURL) BuildFull ¶
func (o *ContactSourceCleanUpURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ContactSourceCleanUpURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*ContactSourceCleanUpURL) SetBasePath ¶
func (o *ContactSourceCleanUpURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*ContactSourceCleanUpURL) String ¶
func (o *ContactSourceCleanUpURL) String() string
String returns the string representation of the path with query string
func (*ContactSourceCleanUpURL) StringFull ¶
func (o *ContactSourceCleanUpURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ContactSourceCleanUpURL) WithBasePath ¶
func (o *ContactSourceCleanUpURL) WithBasePath(bp string) *ContactSourceCleanUpURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type ContactsJobsAPI ¶
type ContactsJobsAPI struct { Middleware func(middleware.Builder) http.Handler // BasicAuthenticator generates a runtime.Authenticator from the supplied basic auth function. // It has a default implementation in the security package, however you can replace it for your particular usage. BasicAuthenticator func(security.UserPassAuthentication) runtime.Authenticator // APIKeyAuthenticator generates a runtime.Authenticator from the supplied token auth function. // It has a default implementation in the security package, however you can replace it for your particular usage. APIKeyAuthenticator func(string, string, security.TokenAuthentication) runtime.Authenticator // BearerAuthenticator generates a runtime.Authenticator from the supplied bearer token auth function. // It has a default implementation in the security package, however you can replace it for your particular usage. BearerAuthenticator func(string, security.ScopedTokenAuthentication) runtime.Authenticator // JSONConsumer registers a consumer for the following mime types: // - application/json JSONConsumer runtime.Consumer // JSONProducer registers a producer for the following mime types: // - application/json JSONProducer runtime.Producer // ContactSourceCleanUpHandler sets the operation handler for the contact source clean up operation ContactSourceCleanUpHandler ContactSourceCleanUpHandler // PullContactSourceHandler sets the operation handler for the pull contact source operation PullContactSourceHandler PullContactSourceHandler // PullContactsHandler sets the operation handler for the pull contacts operation PullContactsHandler PullContactsHandler // ServeError is called when an error is received, there is a default handler // but you can set your own with this ServeError func(http.ResponseWriter, *http.Request, error) // PreServerShutdown is called before the HTTP(S) server is shutdown // This allows for custom functions to get executed before the HTTP(S) server stops accepting traffic PreServerShutdown func() // ServerShutdown is called when the HTTP(S) server is shut down and done // handling all active connections and does not accept connections any more ServerShutdown func() // Custom command line argument groups with their descriptions CommandLineOptionsGroups []swag.CommandLineOptionsGroup // User defined logger function. Logger func(string, ...interface{}) // contains filtered or unexported fields }
ContactsJobsAPI contact karma service
func NewContactsJobsAPI ¶
func NewContactsJobsAPI(spec *loads.Document) *ContactsJobsAPI
NewContactsJobsAPI creates a new ContactsJobs instance
func (*ContactsJobsAPI) AddMiddlewareFor ¶
func (o *ContactsJobsAPI) AddMiddlewareFor(method, path string, builder middleware.Builder)
AddMiddlewareFor adds a http middleware to existing handler
func (*ContactsJobsAPI) AuthenticatorsFor ¶
func (o *ContactsJobsAPI) AuthenticatorsFor(schemes map[string]spec.SecurityScheme) map[string]runtime.Authenticator
AuthenticatorsFor gets the authenticators for the specified security schemes
func (*ContactsJobsAPI) Authorizer ¶
func (o *ContactsJobsAPI) Authorizer() runtime.Authorizer
Authorizer returns the registered authorizer
func (*ContactsJobsAPI) ConsumersFor ¶
func (o *ContactsJobsAPI) ConsumersFor(mediaTypes []string) map[string]runtime.Consumer
ConsumersFor gets the consumers for the specified media types. MIME type parameters are ignored here.
func (*ContactsJobsAPI) Context ¶
func (o *ContactsJobsAPI) Context() *middleware.Context
Context returns the middleware context for the contacts jobs API
func (*ContactsJobsAPI) DefaultConsumes ¶
func (o *ContactsJobsAPI) DefaultConsumes() string
DefaultConsumes returns the default consumes media type
func (*ContactsJobsAPI) DefaultProduces ¶
func (o *ContactsJobsAPI) DefaultProduces() string
DefaultProduces returns the default produces media type
func (*ContactsJobsAPI) Formats ¶
func (o *ContactsJobsAPI) Formats() strfmt.Registry
Formats returns the registered string formats
func (*ContactsJobsAPI) HandlerFor ¶
func (o *ContactsJobsAPI) HandlerFor(method, path string) (http.Handler, bool)
HandlerFor gets a http.Handler for the provided operation method and path
func (*ContactsJobsAPI) Init ¶
func (o *ContactsJobsAPI) Init()
Init allows you to just initialize the handler cache, you can then recompose the middleware as you see fit
func (*ContactsJobsAPI) ProducersFor ¶
func (o *ContactsJobsAPI) ProducersFor(mediaTypes []string) map[string]runtime.Producer
ProducersFor gets the producers for the specified media types. MIME type parameters are ignored here.
func (*ContactsJobsAPI) RegisterConsumer ¶
func (o *ContactsJobsAPI) RegisterConsumer(mediaType string, consumer runtime.Consumer)
RegisterConsumer allows you to add (or override) a consumer for a media type.
func (*ContactsJobsAPI) RegisterFormat ¶
func (o *ContactsJobsAPI) RegisterFormat(name string, format strfmt.Format, validator strfmt.Validator)
RegisterFormat registers a custom format validator
func (*ContactsJobsAPI) RegisterProducer ¶
func (o *ContactsJobsAPI) RegisterProducer(mediaType string, producer runtime.Producer)
RegisterProducer allows you to add (or override) a producer for a media type.
func (*ContactsJobsAPI) Serve ¶
func (o *ContactsJobsAPI) Serve(builder middleware.Builder) http.Handler
Serve creates a http handler to serve the API over HTTP can be used directly in http.ListenAndServe(":8000", api.Serve(nil))
func (*ContactsJobsAPI) ServeErrorFor ¶
func (o *ContactsJobsAPI) ServeErrorFor(operationID string) func(http.ResponseWriter, *http.Request, error)
ServeErrorFor gets a error handler for a given operation id
func (*ContactsJobsAPI) SetDefaultConsumes ¶
func (o *ContactsJobsAPI) SetDefaultConsumes(mediaType string)
SetDefaultConsumes returns the default consumes media type
func (*ContactsJobsAPI) SetDefaultProduces ¶
func (o *ContactsJobsAPI) SetDefaultProduces(mediaType string)
SetDefaultProduces sets the default produces media type
func (*ContactsJobsAPI) SetSpec ¶
func (o *ContactsJobsAPI) SetSpec(spec *loads.Document)
SetSpec sets a spec that will be served for the clients.
func (*ContactsJobsAPI) UseRedoc ¶
func (o *ContactsJobsAPI) UseRedoc()
UseRedoc for documentation at /docs
func (*ContactsJobsAPI) UseSwaggerUI ¶
func (o *ContactsJobsAPI) UseSwaggerUI()
UseSwaggerUI for documentation at /docs
func (*ContactsJobsAPI) Validate ¶
func (o *ContactsJobsAPI) Validate() error
Validate validates the registrations in the ContactsJobsAPI
type PullContactSource ¶
type PullContactSource struct { Context *middleware.Context Handler PullContactSourceHandler }
PullContactSource swagger:route POST /pull-contact-source pullContactSource
sync all contacts from a contact source
func NewPullContactSource ¶
func NewPullContactSource(ctx *middleware.Context, handler PullContactSourceHandler) *PullContactSource
NewPullContactSource creates a new http.Handler for the pull contact source operation
func (*PullContactSource) ServeHTTP ¶
func (o *PullContactSource) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type PullContactSourceBadRequest ¶
type PullContactSourceBadRequest struct { /* In: Body */ Payload *models.JobError `json:"body,omitempty"` }
PullContactSourceBadRequest Error
swagger:response pullContactSourceBadRequest
func NewPullContactSourceBadRequest ¶
func NewPullContactSourceBadRequest() *PullContactSourceBadRequest
NewPullContactSourceBadRequest creates PullContactSourceBadRequest with default headers values
func (*PullContactSourceBadRequest) SetPayload ¶
func (o *PullContactSourceBadRequest) SetPayload(payload *models.JobError)
SetPayload sets the payload to the pull contact source bad request response
func (*PullContactSourceBadRequest) WithPayload ¶
func (o *PullContactSourceBadRequest) WithPayload(payload *models.JobError) *PullContactSourceBadRequest
WithPayload adds the payload to the pull contact source bad request response
func (*PullContactSourceBadRequest) WriteResponse ¶
func (o *PullContactSourceBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PullContactSourceHandler ¶
type PullContactSourceHandler interface {
Handle(PullContactSourceParams) middleware.Responder
}
PullContactSourceHandler interface for that can handle valid pull contact source params
type PullContactSourceHandlerFunc ¶
type PullContactSourceHandlerFunc func(PullContactSourceParams) middleware.Responder
PullContactSourceHandlerFunc turns a function with the right signature into a pull contact source handler
func (PullContactSourceHandlerFunc) Handle ¶
func (fn PullContactSourceHandlerFunc) Handle(params PullContactSourceParams) middleware.Responder
Handle executing the request and returning a response
type PullContactSourceOK ¶
type PullContactSourceOK struct { /* In: Body */ Payload *models.JobSuccess `json:"body,omitempty"` }
PullContactSourceOK Triggered
swagger:response pullContactSourceOK
func NewPullContactSourceOK ¶
func NewPullContactSourceOK() *PullContactSourceOK
NewPullContactSourceOK creates PullContactSourceOK with default headers values
func (*PullContactSourceOK) SetPayload ¶
func (o *PullContactSourceOK) SetPayload(payload *models.JobSuccess)
SetPayload sets the payload to the pull contact source o k response
func (*PullContactSourceOK) WithPayload ¶
func (o *PullContactSourceOK) WithPayload(payload *models.JobSuccess) *PullContactSourceOK
WithPayload adds the payload to the pull contact source o k response
func (*PullContactSourceOK) WriteResponse ¶
func (o *PullContactSourceOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PullContactSourceParams ¶
type PullContactSourceParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* In: body */ Body *models.PubsubMessage }
PullContactSourceParams contains all the bound params for the pull contact source operation typically these are obtained from a http.Request
swagger:parameters pull-contact-source
func NewPullContactSourceParams ¶
func NewPullContactSourceParams() PullContactSourceParams
NewPullContactSourceParams creates a new PullContactSourceParams object
There are no default values defined in the spec.
func (*PullContactSourceParams) BindRequest ¶
func (o *PullContactSourceParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewPullContactSourceParams() beforehand.
type PullContactSourceURL ¶
type PullContactSourceURL struct {
// contains filtered or unexported fields
}
PullContactSourceURL generates an URL for the pull contact source operation
func (*PullContactSourceURL) Build ¶
func (o *PullContactSourceURL) Build() (*url.URL, error)
Build a url path and query string
func (*PullContactSourceURL) BuildFull ¶
func (o *PullContactSourceURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*PullContactSourceURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*PullContactSourceURL) SetBasePath ¶
func (o *PullContactSourceURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*PullContactSourceURL) String ¶
func (o *PullContactSourceURL) String() string
String returns the string representation of the path with query string
func (*PullContactSourceURL) StringFull ¶
func (o *PullContactSourceURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*PullContactSourceURL) WithBasePath ¶
func (o *PullContactSourceURL) WithBasePath(bp string) *PullContactSourceURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type PullContacts ¶
type PullContacts struct { Context *middleware.Context Handler PullContactsHandler }
PullContacts swagger:route POST /pull-contacts pullContacts
publish pull-contact-source for contact-sources
func NewPullContacts ¶
func NewPullContacts(ctx *middleware.Context, handler PullContactsHandler) *PullContacts
NewPullContacts creates a new http.Handler for the pull contacts operation
func (*PullContacts) ServeHTTP ¶
func (o *PullContacts) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type PullContactsBadRequest ¶
type PullContactsBadRequest struct { /* In: Body */ Payload *models.JobError `json:"body,omitempty"` }
PullContactsBadRequest Error
swagger:response pullContactsBadRequest
func NewPullContactsBadRequest ¶
func NewPullContactsBadRequest() *PullContactsBadRequest
NewPullContactsBadRequest creates PullContactsBadRequest with default headers values
func (*PullContactsBadRequest) SetPayload ¶
func (o *PullContactsBadRequest) SetPayload(payload *models.JobError)
SetPayload sets the payload to the pull contacts bad request response
func (*PullContactsBadRequest) WithPayload ¶
func (o *PullContactsBadRequest) WithPayload(payload *models.JobError) *PullContactsBadRequest
WithPayload adds the payload to the pull contacts bad request response
func (*PullContactsBadRequest) WriteResponse ¶
func (o *PullContactsBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PullContactsHandler ¶
type PullContactsHandler interface {
Handle(PullContactsParams) middleware.Responder
}
PullContactsHandler interface for that can handle valid pull contacts params
type PullContactsHandlerFunc ¶
type PullContactsHandlerFunc func(PullContactsParams) middleware.Responder
PullContactsHandlerFunc turns a function with the right signature into a pull contacts handler
func (PullContactsHandlerFunc) Handle ¶
func (fn PullContactsHandlerFunc) Handle(params PullContactsParams) middleware.Responder
Handle executing the request and returning a response
type PullContactsOK ¶
type PullContactsOK struct { /* In: Body */ Payload *models.JobSuccess `json:"body,omitempty"` }
PullContactsOK Triggered
swagger:response pullContactsOK
func NewPullContactsOK ¶
func NewPullContactsOK() *PullContactsOK
NewPullContactsOK creates PullContactsOK with default headers values
func (*PullContactsOK) SetPayload ¶
func (o *PullContactsOK) SetPayload(payload *models.JobSuccess)
SetPayload sets the payload to the pull contacts o k response
func (*PullContactsOK) WithPayload ¶
func (o *PullContactsOK) WithPayload(payload *models.JobSuccess) *PullContactsOK
WithPayload adds the payload to the pull contacts o k response
func (*PullContactsOK) WriteResponse ¶
func (o *PullContactsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PullContactsParams ¶
type PullContactsParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* In: body */ Body *models.PubsubMessage }
PullContactsParams contains all the bound params for the pull contacts operation typically these are obtained from a http.Request
swagger:parameters pull-contacts
func NewPullContactsParams ¶
func NewPullContactsParams() PullContactsParams
NewPullContactsParams creates a new PullContactsParams object
There are no default values defined in the spec.
func (*PullContactsParams) BindRequest ¶
func (o *PullContactsParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewPullContactsParams() beforehand.
type PullContactsURL ¶
type PullContactsURL struct {
// contains filtered or unexported fields
}
PullContactsURL generates an URL for the pull contacts operation
func (*PullContactsURL) Build ¶
func (o *PullContactsURL) Build() (*url.URL, error)
Build a url path and query string
func (*PullContactsURL) BuildFull ¶
func (o *PullContactsURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*PullContactsURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*PullContactsURL) SetBasePath ¶
func (o *PullContactsURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*PullContactsURL) String ¶
func (o *PullContactsURL) String() string
String returns the string representation of the path with query string
func (*PullContactsURL) StringFull ¶
func (o *PullContactsURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*PullContactsURL) WithBasePath ¶
func (o *PullContactsURL) WithBasePath(bp string) *PullContactsURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
Source Files ¶
- contact_source_clean_up.go
- contact_source_clean_up_parameters.go
- contact_source_clean_up_responses.go
- contact_source_clean_up_urlbuilder.go
- contacts_jobs_api.go
- pull_contact_source.go
- pull_contact_source_parameters.go
- pull_contact_source_responses.go
- pull_contact_source_urlbuilder.go
- pull_contacts.go
- pull_contacts_parameters.go
- pull_contacts_responses.go
- pull_contacts_urlbuilder.go