statedb

package
v1.14.11 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const GetStatedbDumpOKCode int = 200

GetStatedbDumpOKCode is the HTTP code returned for type GetStatedbDumpOK

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.

Jump to

Keyboard shortcuts

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