p2_p

package
v0.0.0-...-8832f83 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 7, 2019 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const WeaviateP2pGenesisUpdateInternalServerErrorCode int = 500

WeaviateP2pGenesisUpdateInternalServerErrorCode is the HTTP code returned for type WeaviateP2pGenesisUpdateInternalServerError

View Source
const WeaviateP2pGenesisUpdateOKCode int = 200

WeaviateP2pGenesisUpdateOKCode is the HTTP code returned for type WeaviateP2pGenesisUpdateOK

View Source
const WeaviateP2pGenesisUpdateUnauthorizedCode int = 401

WeaviateP2pGenesisUpdateUnauthorizedCode is the HTTP code returned for type WeaviateP2pGenesisUpdateUnauthorized

View Source
const WeaviateP2pHealthInternalServerErrorCode int = 500

WeaviateP2pHealthInternalServerErrorCode is the HTTP code returned for type WeaviateP2pHealthInternalServerError

View Source
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

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

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

SetPayload sets the payload to the weaviate p2p genesis update internal server error response

func (*WeaviateP2pGenesisUpdateInternalServerError) WithPayload

WithPayload adds the payload to the weaviate p2p genesis update internal server error response

func (*WeaviateP2pGenesisUpdateInternalServerError) WriteResponse

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

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

func (o *WeaviateP2pGenesisUpdateURL) Must(u *url.URL, err error) *url.URL

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

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

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

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

SetPayload sets the payload to the weaviate p2p health internal server error response

func (*WeaviateP2pHealthInternalServerError) WithPayload

WithPayload adds the payload to the weaviate p2p health internal server error response

func (*WeaviateP2pHealthInternalServerError) WriteResponse

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

type WeaviateP2pHealthParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`
}

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

func (o *WeaviateP2pHealthURL) Must(u *url.URL, err error) *url.URL

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL