Documentation ¶
Index ¶
- Constants
- type WeaviateP2pGenesisUpdate
- type WeaviateP2pGenesisUpdateHandler
- type WeaviateP2pGenesisUpdateHandlerFunc
- type WeaviateP2pGenesisUpdateInternalServerError
- func (o *WeaviateP2pGenesisUpdateInternalServerError) SetPayload(payload *models.ErrorResponse)
- func (o *WeaviateP2pGenesisUpdateInternalServerError) WithPayload(payload *models.ErrorResponse) *WeaviateP2pGenesisUpdateInternalServerError
- func (o *WeaviateP2pGenesisUpdateInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type WeaviateP2pGenesisUpdateOK
- type WeaviateP2pGenesisUpdateParams
- type WeaviateP2pGenesisUpdateURL
- func (o *WeaviateP2pGenesisUpdateURL) Build() (*url.URL, error)
- func (o *WeaviateP2pGenesisUpdateURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *WeaviateP2pGenesisUpdateURL) Must(u *url.URL, err error) *url.URL
- func (o *WeaviateP2pGenesisUpdateURL) SetBasePath(bp string)
- func (o *WeaviateP2pGenesisUpdateURL) String() string
- func (o *WeaviateP2pGenesisUpdateURL) StringFull(scheme, host string) string
- func (o *WeaviateP2pGenesisUpdateURL) WithBasePath(bp string) *WeaviateP2pGenesisUpdateURL
- type WeaviateP2pGenesisUpdateUnauthorized
- type WeaviateP2pHealth
- type WeaviateP2pHealthHandler
- type WeaviateP2pHealthHandlerFunc
- type WeaviateP2pHealthInternalServerError
- func (o *WeaviateP2pHealthInternalServerError) SetPayload(payload *models.ErrorResponse)
- func (o *WeaviateP2pHealthInternalServerError) WithPayload(payload *models.ErrorResponse) *WeaviateP2pHealthInternalServerError
- func (o *WeaviateP2pHealthInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type WeaviateP2pHealthOK
- type WeaviateP2pHealthParams
- type WeaviateP2pHealthURL
- func (o *WeaviateP2pHealthURL) Build() (*url.URL, error)
- func (o *WeaviateP2pHealthURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *WeaviateP2pHealthURL) Must(u *url.URL, err error) *url.URL
- func (o *WeaviateP2pHealthURL) SetBasePath(bp string)
- func (o *WeaviateP2pHealthURL) String() string
- func (o *WeaviateP2pHealthURL) StringFull(scheme, host string) string
- func (o *WeaviateP2pHealthURL) WithBasePath(bp string) *WeaviateP2pHealthURL
Constants ¶
const WeaviateP2pGenesisUpdateInternalServerErrorCode int = 500
WeaviateP2pGenesisUpdateInternalServerErrorCode is the HTTP code returned for type WeaviateP2pGenesisUpdateInternalServerError
const WeaviateP2pGenesisUpdateOKCode int = 200
WeaviateP2pGenesisUpdateOKCode is the HTTP code returned for type WeaviateP2pGenesisUpdateOK
WeaviateP2pGenesisUpdateUnauthorizedCode is the HTTP code returned for type WeaviateP2pGenesisUpdateUnauthorized
const WeaviateP2pHealthInternalServerErrorCode int = 500
WeaviateP2pHealthInternalServerErrorCode is the HTTP code returned for type WeaviateP2pHealthInternalServerError
const WeaviateP2pHealthOKCode int = 200
WeaviateP2pHealthOKCode is the HTTP code returned for type WeaviateP2pHealthOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WeaviateP2pGenesisUpdate ¶
type WeaviateP2pGenesisUpdate struct { Context *middleware.Context Handler WeaviateP2pGenesisUpdateHandler }
WeaviateP2pGenesisUpdate swagger:route PUT /p2p/genesis P2P weaviateP2pGenesisUpdate
Receive an update from the Genesis server.
func NewWeaviateP2pGenesisUpdate ¶
func NewWeaviateP2pGenesisUpdate(ctx *middleware.Context, handler WeaviateP2pGenesisUpdateHandler) *WeaviateP2pGenesisUpdate
NewWeaviateP2pGenesisUpdate creates a new http.Handler for the weaviate p2p genesis update operation
func (*WeaviateP2pGenesisUpdate) ServeHTTP ¶
func (o *WeaviateP2pGenesisUpdate) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type WeaviateP2pGenesisUpdateHandler ¶
type WeaviateP2pGenesisUpdateHandler interface {
Handle(WeaviateP2pGenesisUpdateParams) middleware.Responder
}
WeaviateP2pGenesisUpdateHandler interface for that can handle valid weaviate p2p genesis update params
type WeaviateP2pGenesisUpdateHandlerFunc ¶
type WeaviateP2pGenesisUpdateHandlerFunc func(WeaviateP2pGenesisUpdateParams) middleware.Responder
WeaviateP2pGenesisUpdateHandlerFunc turns a function with the right signature into a weaviate p2p genesis update handler
func (WeaviateP2pGenesisUpdateHandlerFunc) Handle ¶
func (fn WeaviateP2pGenesisUpdateHandlerFunc) Handle(params WeaviateP2pGenesisUpdateParams) middleware.Responder
Handle executing the request and returning a response
type WeaviateP2pGenesisUpdateInternalServerError ¶
type WeaviateP2pGenesisUpdateInternalServerError struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
WeaviateP2pGenesisUpdateInternalServerError An error has occurred while trying to fulfill the request. Most likely the ErrorResponse will contain more information about the error.
swagger:response weaviateP2pGenesisUpdateInternalServerError
func NewWeaviateP2pGenesisUpdateInternalServerError ¶
func NewWeaviateP2pGenesisUpdateInternalServerError() *WeaviateP2pGenesisUpdateInternalServerError
NewWeaviateP2pGenesisUpdateInternalServerError creates WeaviateP2pGenesisUpdateInternalServerError with default headers values
func (*WeaviateP2pGenesisUpdateInternalServerError) SetPayload ¶
func (o *WeaviateP2pGenesisUpdateInternalServerError) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the weaviate p2p genesis update internal server error response
func (*WeaviateP2pGenesisUpdateInternalServerError) WithPayload ¶
func (o *WeaviateP2pGenesisUpdateInternalServerError) WithPayload(payload *models.ErrorResponse) *WeaviateP2pGenesisUpdateInternalServerError
WithPayload adds the payload to the weaviate p2p genesis update internal server error response
func (*WeaviateP2pGenesisUpdateInternalServerError) WriteResponse ¶
func (o *WeaviateP2pGenesisUpdateInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type WeaviateP2pGenesisUpdateOK ¶
type WeaviateP2pGenesisUpdateOK struct { }
WeaviateP2pGenesisUpdateOK Alive and kicking!
swagger:response weaviateP2pGenesisUpdateOK
func NewWeaviateP2pGenesisUpdateOK ¶
func NewWeaviateP2pGenesisUpdateOK() *WeaviateP2pGenesisUpdateOK
NewWeaviateP2pGenesisUpdateOK creates WeaviateP2pGenesisUpdateOK with default headers values
func (*WeaviateP2pGenesisUpdateOK) WriteResponse ¶
func (o *WeaviateP2pGenesisUpdateOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type WeaviateP2pGenesisUpdateParams ¶
type WeaviateP2pGenesisUpdateParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: body */ Peers models.PeerUpdateList }
WeaviateP2pGenesisUpdateParams contains all the bound params for the weaviate p2p genesis update operation typically these are obtained from a http.Request
swagger:parameters weaviate.p2p.genesis_update
func NewWeaviateP2pGenesisUpdateParams ¶
func NewWeaviateP2pGenesisUpdateParams() WeaviateP2pGenesisUpdateParams
NewWeaviateP2pGenesisUpdateParams creates a new WeaviateP2pGenesisUpdateParams object no default values defined in spec.
func (*WeaviateP2pGenesisUpdateParams) BindRequest ¶
func (o *WeaviateP2pGenesisUpdateParams) 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 NewWeaviateP2pGenesisUpdateParams() beforehand.
type WeaviateP2pGenesisUpdateURL ¶
type WeaviateP2pGenesisUpdateURL struct {
// contains filtered or unexported fields
}
WeaviateP2pGenesisUpdateURL generates an URL for the weaviate p2p genesis update operation
func (*WeaviateP2pGenesisUpdateURL) Build ¶
func (o *WeaviateP2pGenesisUpdateURL) Build() (*url.URL, error)
Build a url path and query string
func (*WeaviateP2pGenesisUpdateURL) BuildFull ¶
func (o *WeaviateP2pGenesisUpdateURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*WeaviateP2pGenesisUpdateURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*WeaviateP2pGenesisUpdateURL) SetBasePath ¶
func (o *WeaviateP2pGenesisUpdateURL) 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 (*WeaviateP2pGenesisUpdateURL) String ¶
func (o *WeaviateP2pGenesisUpdateURL) String() string
String returns the string representation of the path with query string
func (*WeaviateP2pGenesisUpdateURL) StringFull ¶
func (o *WeaviateP2pGenesisUpdateURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*WeaviateP2pGenesisUpdateURL) WithBasePath ¶
func (o *WeaviateP2pGenesisUpdateURL) WithBasePath(bp string) *WeaviateP2pGenesisUpdateURL
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 WeaviateP2pGenesisUpdateUnauthorized ¶
type WeaviateP2pGenesisUpdateUnauthorized struct { }
WeaviateP2pGenesisUpdateUnauthorized Unauthorized update.
swagger:response weaviateP2pGenesisUpdateUnauthorized
func NewWeaviateP2pGenesisUpdateUnauthorized ¶
func NewWeaviateP2pGenesisUpdateUnauthorized() *WeaviateP2pGenesisUpdateUnauthorized
NewWeaviateP2pGenesisUpdateUnauthorized creates WeaviateP2pGenesisUpdateUnauthorized with default headers values
func (*WeaviateP2pGenesisUpdateUnauthorized) WriteResponse ¶
func (o *WeaviateP2pGenesisUpdateUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type WeaviateP2pHealth ¶
type WeaviateP2pHealth struct { Context *middleware.Context Handler WeaviateP2pHealthHandler }
WeaviateP2pHealth swagger:route GET /p2p/health P2P weaviateP2pHealth
Check if a peer is alive.
Check if a peer is alive and healthy.
func NewWeaviateP2pHealth ¶
func NewWeaviateP2pHealth(ctx *middleware.Context, handler WeaviateP2pHealthHandler) *WeaviateP2pHealth
NewWeaviateP2pHealth creates a new http.Handler for the weaviate p2p health operation
func (*WeaviateP2pHealth) ServeHTTP ¶
func (o *WeaviateP2pHealth) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type WeaviateP2pHealthHandler ¶
type WeaviateP2pHealthHandler interface {
Handle(WeaviateP2pHealthParams) middleware.Responder
}
WeaviateP2pHealthHandler interface for that can handle valid weaviate p2p health params
type WeaviateP2pHealthHandlerFunc ¶
type WeaviateP2pHealthHandlerFunc func(WeaviateP2pHealthParams) middleware.Responder
WeaviateP2pHealthHandlerFunc turns a function with the right signature into a weaviate p2p health handler
func (WeaviateP2pHealthHandlerFunc) Handle ¶
func (fn WeaviateP2pHealthHandlerFunc) Handle(params WeaviateP2pHealthParams) middleware.Responder
Handle executing the request and returning a response
type WeaviateP2pHealthInternalServerError ¶
type WeaviateP2pHealthInternalServerError struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
WeaviateP2pHealthInternalServerError An error has occurred while trying to fulfill the request. Most likely the ErrorResponse will contain more information about the error.
swagger:response weaviateP2pHealthInternalServerError
func NewWeaviateP2pHealthInternalServerError ¶
func NewWeaviateP2pHealthInternalServerError() *WeaviateP2pHealthInternalServerError
NewWeaviateP2pHealthInternalServerError creates WeaviateP2pHealthInternalServerError with default headers values
func (*WeaviateP2pHealthInternalServerError) SetPayload ¶
func (o *WeaviateP2pHealthInternalServerError) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the weaviate p2p health internal server error response
func (*WeaviateP2pHealthInternalServerError) WithPayload ¶
func (o *WeaviateP2pHealthInternalServerError) WithPayload(payload *models.ErrorResponse) *WeaviateP2pHealthInternalServerError
WithPayload adds the payload to the weaviate p2p health internal server error response
func (*WeaviateP2pHealthInternalServerError) WriteResponse ¶
func (o *WeaviateP2pHealthInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type WeaviateP2pHealthOK ¶
type WeaviateP2pHealthOK struct { }
WeaviateP2pHealthOK Alive and kicking!
swagger:response weaviateP2pHealthOK
func NewWeaviateP2pHealthOK ¶
func NewWeaviateP2pHealthOK() *WeaviateP2pHealthOK
NewWeaviateP2pHealthOK creates WeaviateP2pHealthOK with default headers values
func (*WeaviateP2pHealthOK) WriteResponse ¶
func (o *WeaviateP2pHealthOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type WeaviateP2pHealthParams ¶
WeaviateP2pHealthParams contains all the bound params for the weaviate p2p health operation typically these are obtained from a http.Request
swagger:parameters weaviate.p2p.health
func NewWeaviateP2pHealthParams ¶
func NewWeaviateP2pHealthParams() WeaviateP2pHealthParams
NewWeaviateP2pHealthParams creates a new WeaviateP2pHealthParams object no default values defined in spec.
func (*WeaviateP2pHealthParams) BindRequest ¶
func (o *WeaviateP2pHealthParams) 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 NewWeaviateP2pHealthParams() beforehand.
type WeaviateP2pHealthURL ¶
type WeaviateP2pHealthURL struct {
// contains filtered or unexported fields
}
WeaviateP2pHealthURL generates an URL for the weaviate p2p health operation
func (*WeaviateP2pHealthURL) Build ¶
func (o *WeaviateP2pHealthURL) Build() (*url.URL, error)
Build a url path and query string
func (*WeaviateP2pHealthURL) BuildFull ¶
func (o *WeaviateP2pHealthURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*WeaviateP2pHealthURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*WeaviateP2pHealthURL) SetBasePath ¶
func (o *WeaviateP2pHealthURL) 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 (*WeaviateP2pHealthURL) String ¶
func (o *WeaviateP2pHealthURL) String() string
String returns the string representation of the path with query string
func (*WeaviateP2pHealthURL) StringFull ¶
func (o *WeaviateP2pHealthURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*WeaviateP2pHealthURL) WithBasePath ¶
func (o *WeaviateP2pHealthURL) WithBasePath(bp string) *WeaviateP2pHealthURL
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