operations

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

Documentation

Index

Constants

View Source
const GenesisPeersLeaveForbiddenCode int = 403

GenesisPeersLeaveForbiddenCode is the HTTP code returned for type GenesisPeersLeaveForbidden

View Source
const GenesisPeersLeaveNoContentCode int = 204

GenesisPeersLeaveNoContentCode is the HTTP code returned for type GenesisPeersLeaveNoContent

View Source
const GenesisPeersLeaveNotFoundCode int = 404

GenesisPeersLeaveNotFoundCode is the HTTP code returned for type GenesisPeersLeaveNotFound

View Source
const GenesisPeersLeaveUnauthorizedCode int = 401

GenesisPeersLeaveUnauthorizedCode is the HTTP code returned for type GenesisPeersLeaveUnauthorized

View Source
const GenesisPeersListInternalServerErrorCode int = 500

GenesisPeersListInternalServerErrorCode is the HTTP code returned for type GenesisPeersListInternalServerError

View Source
const GenesisPeersListOKCode int = 200

GenesisPeersListOKCode is the HTTP code returned for type GenesisPeersListOK

View Source
const GenesisPeersPingForbiddenCode int = 403

GenesisPeersPingForbiddenCode is the HTTP code returned for type GenesisPeersPingForbidden

View Source
const GenesisPeersPingNotFoundCode int = 404

GenesisPeersPingNotFoundCode is the HTTP code returned for type GenesisPeersPingNotFound

View Source
const GenesisPeersPingOKCode int = 200

GenesisPeersPingOKCode is the HTTP code returned for type GenesisPeersPingOK

View Source
const GenesisPeersPingUnauthorizedCode int = 401

GenesisPeersPingUnauthorizedCode is the HTTP code returned for type GenesisPeersPingUnauthorized

View Source
const GenesisPeersRegisterBadRequestCode int = 400

GenesisPeersRegisterBadRequestCode is the HTTP code returned for type GenesisPeersRegisterBadRequest

View Source
const GenesisPeersRegisterForbiddenCode int = 403

GenesisPeersRegisterForbiddenCode is the HTTP code returned for type GenesisPeersRegisterForbidden

View Source
const GenesisPeersRegisterOKCode int = 200

GenesisPeersRegisterOKCode is the HTTP code returned for type GenesisPeersRegisterOK

Variables

This section is empty.

Functions

This section is empty.

Types

type GenesisPeersLeave

type GenesisPeersLeave struct {
	Context *middleware.Context
	Handler GenesisPeersLeaveHandler
}

GenesisPeersLeave swagger:route DELETE /peers/{peerId} genesisPeersLeave

Leave the weaviate network

func NewGenesisPeersLeave

func NewGenesisPeersLeave(ctx *middleware.Context, handler GenesisPeersLeaveHandler) *GenesisPeersLeave

NewGenesisPeersLeave creates a new http.Handler for the genesis peers leave operation

func (*GenesisPeersLeave) ServeHTTP

func (o *GenesisPeersLeave) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GenesisPeersLeaveForbidden

type GenesisPeersLeaveForbidden struct {
}

GenesisPeersLeaveForbidden The used API-key has insufficient permissions.

swagger:response genesisPeersLeaveForbidden

func NewGenesisPeersLeaveForbidden

func NewGenesisPeersLeaveForbidden() *GenesisPeersLeaveForbidden

NewGenesisPeersLeaveForbidden creates GenesisPeersLeaveForbidden with default headers values

func (*GenesisPeersLeaveForbidden) WriteResponse

func (o *GenesisPeersLeaveForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GenesisPeersLeaveHandler

type GenesisPeersLeaveHandler interface {
	Handle(GenesisPeersLeaveParams) middleware.Responder
}

GenesisPeersLeaveHandler interface for that can handle valid genesis peers leave params

type GenesisPeersLeaveHandlerFunc

type GenesisPeersLeaveHandlerFunc func(GenesisPeersLeaveParams) middleware.Responder

GenesisPeersLeaveHandlerFunc turns a function with the right signature into a genesis peers leave handler

func (GenesisPeersLeaveHandlerFunc) Handle

Handle executing the request and returning a response

type GenesisPeersLeaveNoContent

type GenesisPeersLeaveNoContent struct {
}

GenesisPeersLeaveNoContent Successful left the network.

swagger:response genesisPeersLeaveNoContent

func NewGenesisPeersLeaveNoContent

func NewGenesisPeersLeaveNoContent() *GenesisPeersLeaveNoContent

NewGenesisPeersLeaveNoContent creates GenesisPeersLeaveNoContent with default headers values

func (*GenesisPeersLeaveNoContent) WriteResponse

func (o *GenesisPeersLeaveNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GenesisPeersLeaveNotFound

type GenesisPeersLeaveNotFound struct {
}

GenesisPeersLeaveNotFound Successful query result but no such peer was found.

swagger:response genesisPeersLeaveNotFound

func NewGenesisPeersLeaveNotFound

func NewGenesisPeersLeaveNotFound() *GenesisPeersLeaveNotFound

NewGenesisPeersLeaveNotFound creates GenesisPeersLeaveNotFound with default headers values

func (*GenesisPeersLeaveNotFound) WriteResponse

func (o *GenesisPeersLeaveNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GenesisPeersLeaveParams

type GenesisPeersLeaveParams struct {

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

	/*Name of the Weaviate peer
	  Required: true
	  In: path
	*/
	PeerID strfmt.UUID
}

GenesisPeersLeaveParams contains all the bound params for the genesis peers leave operation typically these are obtained from a http.Request

swagger:parameters genesis.peers.leave

func NewGenesisPeersLeaveParams

func NewGenesisPeersLeaveParams() GenesisPeersLeaveParams

NewGenesisPeersLeaveParams creates a new GenesisPeersLeaveParams object no default values defined in spec.

func (*GenesisPeersLeaveParams) BindRequest

func (o *GenesisPeersLeaveParams) 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 NewGenesisPeersLeaveParams() beforehand.

type GenesisPeersLeaveURL

type GenesisPeersLeaveURL struct {
	PeerID strfmt.UUID
	// contains filtered or unexported fields
}

GenesisPeersLeaveURL generates an URL for the genesis peers leave operation

func (*GenesisPeersLeaveURL) Build

func (o *GenesisPeersLeaveURL) Build() (*url.URL, error)

Build a url path and query string

func (*GenesisPeersLeaveURL) BuildFull

func (o *GenesisPeersLeaveURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GenesisPeersLeaveURL) Must

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

Must is a helper function to panic when the url builder returns an error

func (*GenesisPeersLeaveURL) SetBasePath

func (o *GenesisPeersLeaveURL) 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 (*GenesisPeersLeaveURL) String

func (o *GenesisPeersLeaveURL) String() string

String returns the string representation of the path with query string

func (*GenesisPeersLeaveURL) StringFull

func (o *GenesisPeersLeaveURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GenesisPeersLeaveURL) WithBasePath

func (o *GenesisPeersLeaveURL) WithBasePath(bp string) *GenesisPeersLeaveURL

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 GenesisPeersLeaveUnauthorized

type GenesisPeersLeaveUnauthorized struct {
}

GenesisPeersLeaveUnauthorized Unauthorized or invalid credentials.

swagger:response genesisPeersLeaveUnauthorized

func NewGenesisPeersLeaveUnauthorized

func NewGenesisPeersLeaveUnauthorized() *GenesisPeersLeaveUnauthorized

NewGenesisPeersLeaveUnauthorized creates GenesisPeersLeaveUnauthorized with default headers values

func (*GenesisPeersLeaveUnauthorized) WriteResponse

func (o *GenesisPeersLeaveUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GenesisPeersList

type GenesisPeersList struct {
	Context *middleware.Context
	Handler GenesisPeersListHandler
}

GenesisPeersList swagger:route GET /peers genesisPeersList

List the registered peers

func NewGenesisPeersList

func NewGenesisPeersList(ctx *middleware.Context, handler GenesisPeersListHandler) *GenesisPeersList

NewGenesisPeersList creates a new http.Handler for the genesis peers list operation

func (*GenesisPeersList) ServeHTTP

func (o *GenesisPeersList) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GenesisPeersListHandler

type GenesisPeersListHandler interface {
	Handle(GenesisPeersListParams) middleware.Responder
}

GenesisPeersListHandler interface for that can handle valid genesis peers list params

type GenesisPeersListHandlerFunc

type GenesisPeersListHandlerFunc func(GenesisPeersListParams) middleware.Responder

GenesisPeersListHandlerFunc turns a function with the right signature into a genesis peers list handler

func (GenesisPeersListHandlerFunc) Handle

Handle executing the request and returning a response

type GenesisPeersListInternalServerError

type GenesisPeersListInternalServerError struct {
}

GenesisPeersListInternalServerError Internal error

swagger:response genesisPeersListInternalServerError

func NewGenesisPeersListInternalServerError

func NewGenesisPeersListInternalServerError() *GenesisPeersListInternalServerError

NewGenesisPeersListInternalServerError creates GenesisPeersListInternalServerError with default headers values

func (*GenesisPeersListInternalServerError) WriteResponse

WriteResponse to the client

type GenesisPeersListOK

type GenesisPeersListOK struct {

	/*
	  In: Body
	*/
	Payload []*models.Peer `json:"body,omitempty"`
}

GenesisPeersListOK The list of registered peers

swagger:response genesisPeersListOK

func NewGenesisPeersListOK

func NewGenesisPeersListOK() *GenesisPeersListOK

NewGenesisPeersListOK creates GenesisPeersListOK with default headers values

func (*GenesisPeersListOK) SetPayload

func (o *GenesisPeersListOK) SetPayload(payload []*models.Peer)

SetPayload sets the payload to the genesis peers list o k response

func (*GenesisPeersListOK) WithPayload

func (o *GenesisPeersListOK) WithPayload(payload []*models.Peer) *GenesisPeersListOK

WithPayload adds the payload to the genesis peers list o k response

func (*GenesisPeersListOK) WriteResponse

func (o *GenesisPeersListOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GenesisPeersListParams

type GenesisPeersListParams struct {

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

GenesisPeersListParams contains all the bound params for the genesis peers list operation typically these are obtained from a http.Request

swagger:parameters genesis.peers.list

func NewGenesisPeersListParams

func NewGenesisPeersListParams() GenesisPeersListParams

NewGenesisPeersListParams creates a new GenesisPeersListParams object no default values defined in spec.

func (*GenesisPeersListParams) BindRequest

func (o *GenesisPeersListParams) 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 NewGenesisPeersListParams() beforehand.

type GenesisPeersListURL

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

GenesisPeersListURL generates an URL for the genesis peers list operation

func (*GenesisPeersListURL) Build

func (o *GenesisPeersListURL) Build() (*url.URL, error)

Build a url path and query string

func (*GenesisPeersListURL) BuildFull

func (o *GenesisPeersListURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GenesisPeersListURL) Must

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

Must is a helper function to panic when the url builder returns an error

func (*GenesisPeersListURL) SetBasePath

func (o *GenesisPeersListURL) 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 (*GenesisPeersListURL) String

func (o *GenesisPeersListURL) String() string

String returns the string representation of the path with query string

func (*GenesisPeersListURL) StringFull

func (o *GenesisPeersListURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GenesisPeersListURL) WithBasePath

func (o *GenesisPeersListURL) WithBasePath(bp string) *GenesisPeersListURL

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 GenesisPeersPing

type GenesisPeersPing struct {
	Context *middleware.Context
	Handler GenesisPeersPingHandler
}

GenesisPeersPing swagger:route POST /peers/{peerId}/ping genesisPeersPing

Ping the Genesis server, to make mark the peer as alive and udpate schema info

func NewGenesisPeersPing

func NewGenesisPeersPing(ctx *middleware.Context, handler GenesisPeersPingHandler) *GenesisPeersPing

NewGenesisPeersPing creates a new http.Handler for the genesis peers ping operation

func (*GenesisPeersPing) ServeHTTP

func (o *GenesisPeersPing) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GenesisPeersPingForbidden

type GenesisPeersPingForbidden struct {
}

GenesisPeersPingForbidden The used API-key has insufficient permissions.

swagger:response genesisPeersPingForbidden

func NewGenesisPeersPingForbidden

func NewGenesisPeersPingForbidden() *GenesisPeersPingForbidden

NewGenesisPeersPingForbidden creates GenesisPeersPingForbidden with default headers values

func (*GenesisPeersPingForbidden) WriteResponse

func (o *GenesisPeersPingForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GenesisPeersPingHandler

type GenesisPeersPingHandler interface {
	Handle(GenesisPeersPingParams) middleware.Responder
}

GenesisPeersPingHandler interface for that can handle valid genesis peers ping params

type GenesisPeersPingHandlerFunc

type GenesisPeersPingHandlerFunc func(GenesisPeersPingParams) middleware.Responder

GenesisPeersPingHandlerFunc turns a function with the right signature into a genesis peers ping handler

func (GenesisPeersPingHandlerFunc) Handle

Handle executing the request and returning a response

type GenesisPeersPingNotFound

type GenesisPeersPingNotFound struct {
}

GenesisPeersPingNotFound Successful query result but no such peer was found.

swagger:response genesisPeersPingNotFound

func NewGenesisPeersPingNotFound

func NewGenesisPeersPingNotFound() *GenesisPeersPingNotFound

NewGenesisPeersPingNotFound creates GenesisPeersPingNotFound with default headers values

func (*GenesisPeersPingNotFound) WriteResponse

func (o *GenesisPeersPingNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GenesisPeersPingOK

type GenesisPeersPingOK struct {
}

GenesisPeersPingOK Ping received

swagger:response genesisPeersPingOK

func NewGenesisPeersPingOK

func NewGenesisPeersPingOK() *GenesisPeersPingOK

NewGenesisPeersPingOK creates GenesisPeersPingOK with default headers values

func (*GenesisPeersPingOK) WriteResponse

func (o *GenesisPeersPingOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GenesisPeersPingParams

type GenesisPeersPingParams struct {

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

	/*Request Body
	  Required: true
	  In: body
	*/
	Body *models.PeerPing
	/*Name of the Weaviate peer
	  Required: true
	  In: path
	*/
	PeerID strfmt.UUID
}

GenesisPeersPingParams contains all the bound params for the genesis peers ping operation typically these are obtained from a http.Request

swagger:parameters genesis.peers.ping

func NewGenesisPeersPingParams

func NewGenesisPeersPingParams() GenesisPeersPingParams

NewGenesisPeersPingParams creates a new GenesisPeersPingParams object no default values defined in spec.

func (*GenesisPeersPingParams) BindRequest

func (o *GenesisPeersPingParams) 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 NewGenesisPeersPingParams() beforehand.

type GenesisPeersPingURL

type GenesisPeersPingURL struct {
	PeerID strfmt.UUID
	// contains filtered or unexported fields
}

GenesisPeersPingURL generates an URL for the genesis peers ping operation

func (*GenesisPeersPingURL) Build

func (o *GenesisPeersPingURL) Build() (*url.URL, error)

Build a url path and query string

func (*GenesisPeersPingURL) BuildFull

func (o *GenesisPeersPingURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GenesisPeersPingURL) Must

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

Must is a helper function to panic when the url builder returns an error

func (*GenesisPeersPingURL) SetBasePath

func (o *GenesisPeersPingURL) 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 (*GenesisPeersPingURL) String

func (o *GenesisPeersPingURL) String() string

String returns the string representation of the path with query string

func (*GenesisPeersPingURL) StringFull

func (o *GenesisPeersPingURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GenesisPeersPingURL) WithBasePath

func (o *GenesisPeersPingURL) WithBasePath(bp string) *GenesisPeersPingURL

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 GenesisPeersPingUnauthorized

type GenesisPeersPingUnauthorized struct {
}

GenesisPeersPingUnauthorized Unauthorized or invalid credentials.

swagger:response genesisPeersPingUnauthorized

func NewGenesisPeersPingUnauthorized

func NewGenesisPeersPingUnauthorized() *GenesisPeersPingUnauthorized

NewGenesisPeersPingUnauthorized creates GenesisPeersPingUnauthorized with default headers values

func (*GenesisPeersPingUnauthorized) WriteResponse

func (o *GenesisPeersPingUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GenesisPeersRegister

type GenesisPeersRegister struct {
	Context *middleware.Context
	Handler GenesisPeersRegisterHandler
}

GenesisPeersRegister swagger:route POST /peers/register genesisPeersRegister

Register a new Weaviate peer in the network

func NewGenesisPeersRegister

func NewGenesisPeersRegister(ctx *middleware.Context, handler GenesisPeersRegisterHandler) *GenesisPeersRegister

NewGenesisPeersRegister creates a new http.Handler for the genesis peers register operation

func (*GenesisPeersRegister) ServeHTTP

func (o *GenesisPeersRegister) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GenesisPeersRegisterBadRequest

type GenesisPeersRegisterBadRequest struct {
}

GenesisPeersRegisterBadRequest The weaviate peer is not reachable from the Gensis service.

swagger:response genesisPeersRegisterBadRequest

func NewGenesisPeersRegisterBadRequest

func NewGenesisPeersRegisterBadRequest() *GenesisPeersRegisterBadRequest

NewGenesisPeersRegisterBadRequest creates GenesisPeersRegisterBadRequest with default headers values

func (*GenesisPeersRegisterBadRequest) WriteResponse

func (o *GenesisPeersRegisterBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GenesisPeersRegisterForbidden

type GenesisPeersRegisterForbidden struct {
}

GenesisPeersRegisterForbidden You are not allowed on the network.

swagger:response genesisPeersRegisterForbidden

func NewGenesisPeersRegisterForbidden

func NewGenesisPeersRegisterForbidden() *GenesisPeersRegisterForbidden

NewGenesisPeersRegisterForbidden creates GenesisPeersRegisterForbidden with default headers values

func (*GenesisPeersRegisterForbidden) WriteResponse

func (o *GenesisPeersRegisterForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GenesisPeersRegisterHandler

type GenesisPeersRegisterHandler interface {
	Handle(GenesisPeersRegisterParams) middleware.Responder
}

GenesisPeersRegisterHandler interface for that can handle valid genesis peers register params

type GenesisPeersRegisterHandlerFunc

type GenesisPeersRegisterHandlerFunc func(GenesisPeersRegisterParams) middleware.Responder

GenesisPeersRegisterHandlerFunc turns a function with the right signature into a genesis peers register handler

func (GenesisPeersRegisterHandlerFunc) Handle

Handle executing the request and returning a response

type GenesisPeersRegisterOK

type GenesisPeersRegisterOK struct {

	/*
	  In: Body
	*/
	Payload *models.PeerRegistrationResponse `json:"body,omitempty"`
}

GenesisPeersRegisterOK Successfully registred the peer to the network.

swagger:response genesisPeersRegisterOK

func NewGenesisPeersRegisterOK

func NewGenesisPeersRegisterOK() *GenesisPeersRegisterOK

NewGenesisPeersRegisterOK creates GenesisPeersRegisterOK with default headers values

func (*GenesisPeersRegisterOK) SetPayload

func (o *GenesisPeersRegisterOK) SetPayload(payload *models.PeerRegistrationResponse)

SetPayload sets the payload to the genesis peers register o k response

func (*GenesisPeersRegisterOK) WithPayload

WithPayload adds the payload to the genesis peers register o k response

func (*GenesisPeersRegisterOK) WriteResponse

func (o *GenesisPeersRegisterOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GenesisPeersRegisterParams

type GenesisPeersRegisterParams struct {

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

	/*
	  Required: true
	  In: body
	*/
	Body *models.PeerUpdate
}

GenesisPeersRegisterParams contains all the bound params for the genesis peers register operation typically these are obtained from a http.Request

swagger:parameters genesis.peers.register

func NewGenesisPeersRegisterParams

func NewGenesisPeersRegisterParams() GenesisPeersRegisterParams

NewGenesisPeersRegisterParams creates a new GenesisPeersRegisterParams object no default values defined in spec.

func (*GenesisPeersRegisterParams) 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 NewGenesisPeersRegisterParams() beforehand.

type GenesisPeersRegisterURL

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

GenesisPeersRegisterURL generates an URL for the genesis peers register operation

func (*GenesisPeersRegisterURL) Build

func (o *GenesisPeersRegisterURL) Build() (*url.URL, error)

Build a url path and query string

func (*GenesisPeersRegisterURL) BuildFull

func (o *GenesisPeersRegisterURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GenesisPeersRegisterURL) Must

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

Must is a helper function to panic when the url builder returns an error

func (*GenesisPeersRegisterURL) SetBasePath

func (o *GenesisPeersRegisterURL) 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 (*GenesisPeersRegisterURL) String

func (o *GenesisPeersRegisterURL) String() string

String returns the string representation of the path with query string

func (*GenesisPeersRegisterURL) StringFull

func (o *GenesisPeersRegisterURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GenesisPeersRegisterURL) 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 WeaviateGenesisAPI

type WeaviateGenesisAPI struct {
	Middleware func(middleware.Builder) http.Handler

	// BasicAuthenticator generates a runtime.Authenticator from the supplied basic auth function.
	// It has a default implemention 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 implemention 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 implemention 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 a "application/json" mime type
	JSONConsumer runtime.Consumer

	// JSONProducer registers a producer for a "application/json" mime type
	JSONProducer runtime.Producer

	// GenesisPeersLeaveHandler sets the operation handler for the genesis peers leave operation
	GenesisPeersLeaveHandler GenesisPeersLeaveHandler
	// GenesisPeersListHandler sets the operation handler for the genesis peers list operation
	GenesisPeersListHandler GenesisPeersListHandler
	// GenesisPeersPingHandler sets the operation handler for the genesis peers ping operation
	GenesisPeersPingHandler GenesisPeersPingHandler
	// GenesisPeersRegisterHandler sets the operation handler for the genesis peers register operation
	GenesisPeersRegisterHandler GenesisPeersRegisterHandler

	// 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)

	// 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
}

WeaviateGenesisAPI The Weaviate Genesis Server is used to bootstrap the P2P network of Weaviate instances

func NewWeaviateGenesisAPI

func NewWeaviateGenesisAPI(spec *loads.Document) *WeaviateGenesisAPI

NewWeaviateGenesisAPI creates a new WeaviateGenesis instance

func (*WeaviateGenesisAPI) AuthenticatorsFor

func (o *WeaviateGenesisAPI) AuthenticatorsFor(schemes map[string]spec.SecurityScheme) map[string]runtime.Authenticator

AuthenticatorsFor gets the authenticators for the specified security schemes

func (*WeaviateGenesisAPI) Authorizer

func (o *WeaviateGenesisAPI) Authorizer() runtime.Authorizer

Authorizer returns the registered authorizer

func (*WeaviateGenesisAPI) ConsumersFor

func (o *WeaviateGenesisAPI) ConsumersFor(mediaTypes []string) map[string]runtime.Consumer

ConsumersFor gets the consumers for the specified media types

func (*WeaviateGenesisAPI) Context

func (o *WeaviateGenesisAPI) Context() *middleware.Context

Context returns the middleware context for the weaviate genesis API

func (*WeaviateGenesisAPI) DefaultConsumes

func (o *WeaviateGenesisAPI) DefaultConsumes() string

DefaultConsumes returns the default consumes media type

func (*WeaviateGenesisAPI) DefaultProduces

func (o *WeaviateGenesisAPI) DefaultProduces() string

DefaultProduces returns the default produces media type

func (*WeaviateGenesisAPI) Formats

func (o *WeaviateGenesisAPI) Formats() strfmt.Registry

Formats returns the registered string formats

func (*WeaviateGenesisAPI) HandlerFor

func (o *WeaviateGenesisAPI) HandlerFor(method, path string) (http.Handler, bool)

HandlerFor gets a http.Handler for the provided operation method and path

func (*WeaviateGenesisAPI) Init

func (o *WeaviateGenesisAPI) Init()

Init allows you to just initialize the handler cache, you can then recompose the middleware as you see fit

func (*WeaviateGenesisAPI) ProducersFor

func (o *WeaviateGenesisAPI) ProducersFor(mediaTypes []string) map[string]runtime.Producer

ProducersFor gets the producers for the specified media types

func (*WeaviateGenesisAPI) RegisterConsumer

func (o *WeaviateGenesisAPI) RegisterConsumer(mediaType string, consumer runtime.Consumer)

RegisterConsumer allows you to add (or override) a consumer for a media type.

func (*WeaviateGenesisAPI) RegisterFormat

func (o *WeaviateGenesisAPI) RegisterFormat(name string, format strfmt.Format, validator strfmt.Validator)

RegisterFormat registers a custom format validator

func (*WeaviateGenesisAPI) RegisterProducer

func (o *WeaviateGenesisAPI) RegisterProducer(mediaType string, producer runtime.Producer)

RegisterProducer allows you to add (or override) a producer for a media type.

func (*WeaviateGenesisAPI) Serve

func (o *WeaviateGenesisAPI) 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 (*WeaviateGenesisAPI) ServeErrorFor

func (o *WeaviateGenesisAPI) ServeErrorFor(operationID string) func(http.ResponseWriter, *http.Request, error)

ServeErrorFor gets a error handler for a given operation id

func (*WeaviateGenesisAPI) SetDefaultConsumes

func (o *WeaviateGenesisAPI) SetDefaultConsumes(mediaType string)

SetDefaultConsumes returns the default consumes media type

func (*WeaviateGenesisAPI) SetDefaultProduces

func (o *WeaviateGenesisAPI) SetDefaultProduces(mediaType string)

SetDefaultProduces sets the default produces media type

func (*WeaviateGenesisAPI) SetSpec

func (o *WeaviateGenesisAPI) SetSpec(spec *loads.Document)

SetSpec sets a spec that will be served for the clients.

func (*WeaviateGenesisAPI) Validate

func (o *WeaviateGenesisAPI) Validate() error

Validate validates the registrations in the WeaviateGenesisAPI

Jump to

Keyboard shortcuts

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