statedb

package
v1.15.4 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const GetStatedbDumpOKCode int = 200

GetStatedbDumpOKCode is the HTTP code returned for type GetStatedbDumpOK

View Source
const GetStatedbQueryTableBadRequestCode int = 400

GetStatedbQueryTableBadRequestCode is the HTTP code returned for type GetStatedbQueryTableBadRequest

View Source
const GetStatedbQueryTableNotFoundCode int = 404

GetStatedbQueryTableNotFoundCode is the HTTP code returned for type GetStatedbQueryTableNotFound

View Source
const GetStatedbQueryTableOKCode int = 200

GetStatedbQueryTableOKCode is the HTTP code returned for type GetStatedbQueryTableOK

Variables

This section is empty.

Functions

This section is empty.

Types

type GetStatedbDump

type GetStatedbDump struct {
	Context *middleware.Context
	Handler GetStatedbDumpHandler
}
GetStatedbDump swagger:route GET /statedb/dump statedb getStatedbDump

Dump StateDB contents

func NewGetStatedbDump

func NewGetStatedbDump(ctx *middleware.Context, handler GetStatedbDumpHandler) *GetStatedbDump

NewGetStatedbDump creates a new http.Handler for the get statedb dump operation

func (*GetStatedbDump) ServeHTTP

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

type GetStatedbDumpHandler

type GetStatedbDumpHandler interface {
	Handle(GetStatedbDumpParams) middleware.Responder
}

GetStatedbDumpHandler interface for that can handle valid get statedb dump params

type GetStatedbDumpHandlerFunc

type GetStatedbDumpHandlerFunc func(GetStatedbDumpParams) middleware.Responder

GetStatedbDumpHandlerFunc turns a function with the right signature into a get statedb dump handler

func (GetStatedbDumpHandlerFunc) Handle

Handle executing the request and returning a response

type GetStatedbDumpOK

type GetStatedbDumpOK struct {

	/*
	  In: Body
	*/
	Payload io.ReadCloser `json:"body,omitempty"`
}

GetStatedbDumpOK Success

swagger:response getStatedbDumpOK

func NewGetStatedbDumpOK

func NewGetStatedbDumpOK() *GetStatedbDumpOK

NewGetStatedbDumpOK creates GetStatedbDumpOK with default headers values

func (*GetStatedbDumpOK) SetPayload

func (o *GetStatedbDumpOK) SetPayload(payload io.ReadCloser)

SetPayload sets the payload to the get statedb dump o k response

func (*GetStatedbDumpOK) WithPayload

func (o *GetStatedbDumpOK) WithPayload(payload io.ReadCloser) *GetStatedbDumpOK

WithPayload adds the payload to the get statedb dump o k response

func (*GetStatedbDumpOK) WriteResponse

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

WriteResponse to the client

type GetStatedbDumpParams

type GetStatedbDumpParams struct {

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

GetStatedbDumpParams contains all the bound params for the get statedb dump operation typically these are obtained from a http.Request

swagger:parameters GetStatedbDump

func NewGetStatedbDumpParams

func NewGetStatedbDumpParams() GetStatedbDumpParams

NewGetStatedbDumpParams creates a new GetStatedbDumpParams object

There are no default values defined in the spec.

func (*GetStatedbDumpParams) BindRequest

func (o *GetStatedbDumpParams) 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 NewGetStatedbDumpParams() beforehand.

type GetStatedbQueryTable added in v1.15.0

type GetStatedbQueryTable struct {
	Context *middleware.Context
	Handler GetStatedbQueryTableHandler
}
GetStatedbQueryTable swagger:route GET /statedb/query/{table} statedb getStatedbQueryTable

Perform a query against a StateDB table

func NewGetStatedbQueryTable added in v1.15.0

func NewGetStatedbQueryTable(ctx *middleware.Context, handler GetStatedbQueryTableHandler) *GetStatedbQueryTable

NewGetStatedbQueryTable creates a new http.Handler for the get statedb query table operation

func (*GetStatedbQueryTable) ServeHTTP added in v1.15.0

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

type GetStatedbQueryTableBadRequest added in v1.15.0

type GetStatedbQueryTableBadRequest struct {

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

GetStatedbQueryTableBadRequest Invalid parameters

swagger:response getStatedbQueryTableBadRequest

func NewGetStatedbQueryTableBadRequest added in v1.15.0

func NewGetStatedbQueryTableBadRequest() *GetStatedbQueryTableBadRequest

NewGetStatedbQueryTableBadRequest creates GetStatedbQueryTableBadRequest with default headers values

func (*GetStatedbQueryTableBadRequest) SetPayload added in v1.15.0

func (o *GetStatedbQueryTableBadRequest) SetPayload(payload models.Error)

SetPayload sets the payload to the get statedb query table bad request response

func (*GetStatedbQueryTableBadRequest) WithPayload added in v1.15.0

WithPayload adds the payload to the get statedb query table bad request response

func (*GetStatedbQueryTableBadRequest) WriteResponse added in v1.15.0

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

WriteResponse to the client

type GetStatedbQueryTableHandler added in v1.15.0

type GetStatedbQueryTableHandler interface {
	Handle(GetStatedbQueryTableParams) middleware.Responder
}

GetStatedbQueryTableHandler interface for that can handle valid get statedb query table params

type GetStatedbQueryTableHandlerFunc added in v1.15.0

type GetStatedbQueryTableHandlerFunc func(GetStatedbQueryTableParams) middleware.Responder

GetStatedbQueryTableHandlerFunc turns a function with the right signature into a get statedb query table handler

func (GetStatedbQueryTableHandlerFunc) Handle added in v1.15.0

Handle executing the request and returning a response

type GetStatedbQueryTableNotFound added in v1.15.0

type GetStatedbQueryTableNotFound struct {
}

GetStatedbQueryTableNotFound Table or Index not found

swagger:response getStatedbQueryTableNotFound

func NewGetStatedbQueryTableNotFound added in v1.15.0

func NewGetStatedbQueryTableNotFound() *GetStatedbQueryTableNotFound

NewGetStatedbQueryTableNotFound creates GetStatedbQueryTableNotFound with default headers values

func (*GetStatedbQueryTableNotFound) WriteResponse added in v1.15.0

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

WriteResponse to the client

type GetStatedbQueryTableOK added in v1.15.0

type GetStatedbQueryTableOK struct {

	/*
	  In: Body
	*/
	Payload io.ReadCloser `json:"body,omitempty"`
}

GetStatedbQueryTableOK Success

swagger:response getStatedbQueryTableOK

func NewGetStatedbQueryTableOK added in v1.15.0

func NewGetStatedbQueryTableOK() *GetStatedbQueryTableOK

NewGetStatedbQueryTableOK creates GetStatedbQueryTableOK with default headers values

func (*GetStatedbQueryTableOK) SetPayload added in v1.15.0

func (o *GetStatedbQueryTableOK) SetPayload(payload io.ReadCloser)

SetPayload sets the payload to the get statedb query table o k response

func (*GetStatedbQueryTableOK) WithPayload added in v1.15.0

WithPayload adds the payload to the get statedb query table o k response

func (*GetStatedbQueryTableOK) WriteResponse added in v1.15.0

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

WriteResponse to the client

type GetStatedbQueryTableParams added in v1.15.0

type GetStatedbQueryTableParams struct {

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

	/*StateDB index name
	  Required: true
	  In: query
	*/
	Index string
	/*Query key (base64 encoded)
	  Required: true
	  In: query
	*/
	Key string
	/*If true perform a LowerBound search
	  Required: true
	  In: query
	*/
	Lowerbound bool
	/*StateDB table name
	  Required: true
	  In: path
	*/
	Table string
}

GetStatedbQueryTableParams contains all the bound params for the get statedb query table operation typically these are obtained from a http.Request

swagger:parameters GetStatedbQueryTable

func NewGetStatedbQueryTableParams added in v1.15.0

func NewGetStatedbQueryTableParams() GetStatedbQueryTableParams

NewGetStatedbQueryTableParams creates a new GetStatedbQueryTableParams object

There are no default values defined in the spec.

func (*GetStatedbQueryTableParams) BindRequest added in v1.15.0

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 NewGetStatedbQueryTableParams() beforehand.

Jump to

Keyboard shortcuts

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