export

package
v0.0.0-...-18a1446 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const GetExportSqliteOKCode int = 200

GetExportSqliteOKCode is the HTTP code returned for type GetExportSqliteOK

Variables

This section is empty.

Functions

This section is empty.

Types

type GetExportSqlite

type GetExportSqlite struct {
	Context *middleware.Context
	Handler GetExportSqliteHandler
}

GetExportSqlite swagger:route GET /export/sqlite export getExportSqlite

Export sqlite3 format of the db dump, which is converted from the main database.

func NewGetExportSqlite

func NewGetExportSqlite(ctx *middleware.Context, handler GetExportSqliteHandler) *GetExportSqlite

NewGetExportSqlite creates a new http.Handler for the get export sqlite operation

func (*GetExportSqlite) ServeHTTP

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

type GetExportSqliteDefault

type GetExportSqliteDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

GetExportSqliteDefault generic error response

swagger:response getExportSqliteDefault

func NewGetExportSqliteDefault

func NewGetExportSqliteDefault(code int) *GetExportSqliteDefault

NewGetExportSqliteDefault creates GetExportSqliteDefault with default headers values

func (*GetExportSqliteDefault) SetPayload

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

SetPayload sets the payload to the get export sqlite default response

func (*GetExportSqliteDefault) SetStatusCode

func (o *GetExportSqliteDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get export sqlite default response

func (*GetExportSqliteDefault) WithPayload

func (o *GetExportSqliteDefault) WithPayload(payload *models.Error) *GetExportSqliteDefault

WithPayload adds the payload to the get export sqlite default response

func (*GetExportSqliteDefault) WithStatusCode

func (o *GetExportSqliteDefault) WithStatusCode(code int) *GetExportSqliteDefault

WithStatusCode adds the status to the get export sqlite default response

func (*GetExportSqliteDefault) WriteResponse

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

WriteResponse to the client

type GetExportSqliteHandler

type GetExportSqliteHandler interface {
	Handle(GetExportSqliteParams) middleware.Responder
}

GetExportSqliteHandler interface for that can handle valid get export sqlite params

type GetExportSqliteHandlerFunc

type GetExportSqliteHandlerFunc func(GetExportSqliteParams) middleware.Responder

GetExportSqliteHandlerFunc turns a function with the right signature into a get export sqlite handler

func (GetExportSqliteHandlerFunc) Handle

Handle executing the request and returning a response

type GetExportSqliteOK

type GetExportSqliteOK struct {

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

GetExportSqliteOK OK

swagger:response getExportSqliteOK

func NewGetExportSqliteOK

func NewGetExportSqliteOK() *GetExportSqliteOK

NewGetExportSqliteOK creates GetExportSqliteOK with default headers values

func (*GetExportSqliteOK) SetPayload

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

SetPayload sets the payload to the get export sqlite o k response

func (*GetExportSqliteOK) WithPayload

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

WithPayload adds the payload to the get export sqlite o k response

func (*GetExportSqliteOK) WriteResponse

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

WriteResponse to the client

type GetExportSqliteParams

type GetExportSqliteParams struct {

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

GetExportSqliteParams contains all the bound params for the get export sqlite operation typically these are obtained from a http.Request

swagger:parameters getExportSQLite

func NewGetExportSqliteParams

func NewGetExportSqliteParams() GetExportSqliteParams

NewGetExportSqliteParams creates a new GetExportSqliteParams object no default values defined in spec.

func (*GetExportSqliteParams) BindRequest

func (o *GetExportSqliteParams) 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 NewGetExportSqliteParams() beforehand.

type GetExportSqliteURL

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

GetExportSqliteURL generates an URL for the get export sqlite operation

func (*GetExportSqliteURL) Build

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

Build a url path and query string

func (*GetExportSqliteURL) BuildFull

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

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

func (*GetExportSqliteURL) Must

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

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

func (*GetExportSqliteURL) SetBasePath

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

func (o *GetExportSqliteURL) String() string

String returns the string representation of the path with query string

func (*GetExportSqliteURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetExportSqliteURL) WithBasePath

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

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