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: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client for p2 p API

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client

New creates a new p2 p API client.

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

func (*Client) WeaviateP2pGenesisUpdate

func (a *Client) WeaviateP2pGenesisUpdate(params *WeaviateP2pGenesisUpdateParams) (*WeaviateP2pGenesisUpdateOK, error)

WeaviateP2pGenesisUpdate Receive an update from the Genesis server.

func (*Client) WeaviateP2pHealth

func (a *Client) WeaviateP2pHealth(params *WeaviateP2pHealthParams) (*WeaviateP2pHealthOK, error)

WeaviateP2pHealth checks if a peer is alive

Check if a peer is alive and healthy.

type WeaviateP2pGenesisUpdateInternalServerError

type WeaviateP2pGenesisUpdateInternalServerError struct {
	Payload *models.ErrorResponse
}

WeaviateP2pGenesisUpdateInternalServerError handles this case with default header values.

An error has occurred while trying to fulfill the request. Most likely the ErrorResponse will contain more information about the error.

func NewWeaviateP2pGenesisUpdateInternalServerError

func NewWeaviateP2pGenesisUpdateInternalServerError() *WeaviateP2pGenesisUpdateInternalServerError

NewWeaviateP2pGenesisUpdateInternalServerError creates a WeaviateP2pGenesisUpdateInternalServerError with default headers values

func (*WeaviateP2pGenesisUpdateInternalServerError) Error

type WeaviateP2pGenesisUpdateOK

type WeaviateP2pGenesisUpdateOK struct {
}

WeaviateP2pGenesisUpdateOK handles this case with default header values.

Alive and kicking!

func NewWeaviateP2pGenesisUpdateOK

func NewWeaviateP2pGenesisUpdateOK() *WeaviateP2pGenesisUpdateOK

NewWeaviateP2pGenesisUpdateOK creates a WeaviateP2pGenesisUpdateOK with default headers values

func (*WeaviateP2pGenesisUpdateOK) Error

type WeaviateP2pGenesisUpdateParams

type WeaviateP2pGenesisUpdateParams struct {

	/*Peers*/
	Peers models.PeerUpdateList

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

WeaviateP2pGenesisUpdateParams contains all the parameters to send to the API endpoint for the weaviate p2p genesis update operation typically these are written to a http.Request

func NewWeaviateP2pGenesisUpdateParams

func NewWeaviateP2pGenesisUpdateParams() *WeaviateP2pGenesisUpdateParams

NewWeaviateP2pGenesisUpdateParams creates a new WeaviateP2pGenesisUpdateParams object with the default values initialized.

func NewWeaviateP2pGenesisUpdateParamsWithContext

func NewWeaviateP2pGenesisUpdateParamsWithContext(ctx context.Context) *WeaviateP2pGenesisUpdateParams

NewWeaviateP2pGenesisUpdateParamsWithContext creates a new WeaviateP2pGenesisUpdateParams object with the default values initialized, and the ability to set a context for a request

func NewWeaviateP2pGenesisUpdateParamsWithHTTPClient

func NewWeaviateP2pGenesisUpdateParamsWithHTTPClient(client *http.Client) *WeaviateP2pGenesisUpdateParams

NewWeaviateP2pGenesisUpdateParamsWithHTTPClient creates a new WeaviateP2pGenesisUpdateParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewWeaviateP2pGenesisUpdateParamsWithTimeout

func NewWeaviateP2pGenesisUpdateParamsWithTimeout(timeout time.Duration) *WeaviateP2pGenesisUpdateParams

NewWeaviateP2pGenesisUpdateParamsWithTimeout creates a new WeaviateP2pGenesisUpdateParams object with the default values initialized, and the ability to set a timeout on a request

func (*WeaviateP2pGenesisUpdateParams) SetContext

func (o *WeaviateP2pGenesisUpdateParams) SetContext(ctx context.Context)

SetContext adds the context to the weaviate p2p genesis update params

func (*WeaviateP2pGenesisUpdateParams) SetHTTPClient

func (o *WeaviateP2pGenesisUpdateParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the weaviate p2p genesis update params

func (*WeaviateP2pGenesisUpdateParams) SetPeers

SetPeers adds the peers to the weaviate p2p genesis update params

func (*WeaviateP2pGenesisUpdateParams) SetTimeout

func (o *WeaviateP2pGenesisUpdateParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the weaviate p2p genesis update params

func (*WeaviateP2pGenesisUpdateParams) WithContext

WithContext adds the context to the weaviate p2p genesis update params

func (*WeaviateP2pGenesisUpdateParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the weaviate p2p genesis update params

func (*WeaviateP2pGenesisUpdateParams) WithPeers

WithPeers adds the peers to the weaviate p2p genesis update params

func (*WeaviateP2pGenesisUpdateParams) WithTimeout

WithTimeout adds the timeout to the weaviate p2p genesis update params

func (*WeaviateP2pGenesisUpdateParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type WeaviateP2pGenesisUpdateReader

type WeaviateP2pGenesisUpdateReader struct {
	// contains filtered or unexported fields
}

WeaviateP2pGenesisUpdateReader is a Reader for the WeaviateP2pGenesisUpdate structure.

func (*WeaviateP2pGenesisUpdateReader) ReadResponse

func (o *WeaviateP2pGenesisUpdateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type WeaviateP2pGenesisUpdateUnauthorized

type WeaviateP2pGenesisUpdateUnauthorized struct {
}

WeaviateP2pGenesisUpdateUnauthorized handles this case with default header values.

Unauthorized update.

func NewWeaviateP2pGenesisUpdateUnauthorized

func NewWeaviateP2pGenesisUpdateUnauthorized() *WeaviateP2pGenesisUpdateUnauthorized

NewWeaviateP2pGenesisUpdateUnauthorized creates a WeaviateP2pGenesisUpdateUnauthorized with default headers values

func (*WeaviateP2pGenesisUpdateUnauthorized) Error

type WeaviateP2pHealthInternalServerError

type WeaviateP2pHealthInternalServerError struct {
	Payload *models.ErrorResponse
}

WeaviateP2pHealthInternalServerError handles this case with default header values.

An error has occurred while trying to fulfill the request. Most likely the ErrorResponse will contain more information about the error.

func NewWeaviateP2pHealthInternalServerError

func NewWeaviateP2pHealthInternalServerError() *WeaviateP2pHealthInternalServerError

NewWeaviateP2pHealthInternalServerError creates a WeaviateP2pHealthInternalServerError with default headers values

func (*WeaviateP2pHealthInternalServerError) Error

type WeaviateP2pHealthOK

type WeaviateP2pHealthOK struct {
}

WeaviateP2pHealthOK handles this case with default header values.

Alive and kicking!

func NewWeaviateP2pHealthOK

func NewWeaviateP2pHealthOK() *WeaviateP2pHealthOK

NewWeaviateP2pHealthOK creates a WeaviateP2pHealthOK with default headers values

func (*WeaviateP2pHealthOK) Error

func (o *WeaviateP2pHealthOK) Error() string

type WeaviateP2pHealthParams

type WeaviateP2pHealthParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

WeaviateP2pHealthParams contains all the parameters to send to the API endpoint for the weaviate p2p health operation typically these are written to a http.Request

func NewWeaviateP2pHealthParams

func NewWeaviateP2pHealthParams() *WeaviateP2pHealthParams

NewWeaviateP2pHealthParams creates a new WeaviateP2pHealthParams object with the default values initialized.

func NewWeaviateP2pHealthParamsWithContext

func NewWeaviateP2pHealthParamsWithContext(ctx context.Context) *WeaviateP2pHealthParams

NewWeaviateP2pHealthParamsWithContext creates a new WeaviateP2pHealthParams object with the default values initialized, and the ability to set a context for a request

func NewWeaviateP2pHealthParamsWithHTTPClient

func NewWeaviateP2pHealthParamsWithHTTPClient(client *http.Client) *WeaviateP2pHealthParams

NewWeaviateP2pHealthParamsWithHTTPClient creates a new WeaviateP2pHealthParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewWeaviateP2pHealthParamsWithTimeout

func NewWeaviateP2pHealthParamsWithTimeout(timeout time.Duration) *WeaviateP2pHealthParams

NewWeaviateP2pHealthParamsWithTimeout creates a new WeaviateP2pHealthParams object with the default values initialized, and the ability to set a timeout on a request

func (*WeaviateP2pHealthParams) SetContext

func (o *WeaviateP2pHealthParams) SetContext(ctx context.Context)

SetContext adds the context to the weaviate p2p health params

func (*WeaviateP2pHealthParams) SetHTTPClient

func (o *WeaviateP2pHealthParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the weaviate p2p health params

func (*WeaviateP2pHealthParams) SetTimeout

func (o *WeaviateP2pHealthParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the weaviate p2p health params

func (*WeaviateP2pHealthParams) WithContext

WithContext adds the context to the weaviate p2p health params

func (*WeaviateP2pHealthParams) WithHTTPClient

func (o *WeaviateP2pHealthParams) WithHTTPClient(client *http.Client) *WeaviateP2pHealthParams

WithHTTPClient adds the HTTPClient to the weaviate p2p health params

func (*WeaviateP2pHealthParams) WithTimeout

WithTimeout adds the timeout to the weaviate p2p health params

func (*WeaviateP2pHealthParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type WeaviateP2pHealthReader

type WeaviateP2pHealthReader struct {
	// contains filtered or unexported fields
}

WeaviateP2pHealthReader is a Reader for the WeaviateP2pHealth structure.

func (*WeaviateP2pHealthReader) ReadResponse

func (o *WeaviateP2pHealthReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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