compat

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2023 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const GetCustomStreamBadRequestCode int = 400

GetCustomStreamBadRequestCode is the HTTP code returned for type GetCustomStreamBadRequest

View Source
const GetCustomStreamInternalServerErrorCode int = 500

GetCustomStreamInternalServerErrorCode is the HTTP code returned for type GetCustomStreamInternalServerError

View Source
const GetCustomStreamOKCode int = 200

GetCustomStreamOKCode is the HTTP code returned for type GetCustomStreamOK

Variables

This section is empty.

Functions

This section is empty.

Types

type GetCustomStream

type GetCustomStream struct {
	Context *middleware.Context
	Handler GetCustomStreamHandler
}
GetCustomStream swagger:route GET /v1/monitor-streams/{streamId}/results compat getCustomStream

ACRCloud Custom Streams Full Day Endpoint

This endpoint implements the same API as upstream ACRCloud does.

func NewGetCustomStream

func NewGetCustomStream(ctx *middleware.Context, handler GetCustomStreamHandler) *GetCustomStream

NewGetCustomStream creates a new http.Handler for the get custom stream operation

func (*GetCustomStream) ServeHTTP

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

type GetCustomStreamBadRequest

type GetCustomStreamBadRequest struct {
}

GetCustomStreamBadRequest Bad Request

swagger:response getCustomStreamBadRequest

func NewGetCustomStreamBadRequest

func NewGetCustomStreamBadRequest() *GetCustomStreamBadRequest

NewGetCustomStreamBadRequest creates GetCustomStreamBadRequest with default headers values

func (*GetCustomStreamBadRequest) WriteResponse

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

WriteResponse to the client

type GetCustomStreamHandler

type GetCustomStreamHandler interface {
	Handle(GetCustomStreamParams) middleware.Responder
}

GetCustomStreamHandler interface for that can handle valid get custom stream params

type GetCustomStreamHandlerFunc

type GetCustomStreamHandlerFunc func(GetCustomStreamParams) middleware.Responder

GetCustomStreamHandlerFunc turns a function with the right signature into a get custom stream handler

func (GetCustomStreamHandlerFunc) Handle

Handle executing the request and returning a response

type GetCustomStreamInternalServerError

type GetCustomStreamInternalServerError struct {
}

GetCustomStreamInternalServerError Server Error

swagger:response getCustomStreamInternalServerError

func NewGetCustomStreamInternalServerError

func NewGetCustomStreamInternalServerError() *GetCustomStreamInternalServerError

NewGetCustomStreamInternalServerError creates GetCustomStreamInternalServerError with default headers values

func (*GetCustomStreamInternalServerError) WriteResponse

WriteResponse to the client

type GetCustomStreamOK

type GetCustomStreamOK struct {

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

GetCustomStreamOK Results without local ID

swagger:response getCustomStreamOK

func NewGetCustomStreamOK

func NewGetCustomStreamOK() *GetCustomStreamOK

NewGetCustomStreamOK creates GetCustomStreamOK with default headers values

func (*GetCustomStreamOK) SetPayload

func (o *GetCustomStreamOK) SetPayload(payload []*models.Data)

SetPayload sets the payload to the get custom stream o k response

func (*GetCustomStreamOK) WithPayload

func (o *GetCustomStreamOK) WithPayload(payload []*models.Data) *GetCustomStreamOK

WithPayload adds the payload to the get custom stream o k response

func (*GetCustomStreamOK) WriteResponse

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

WriteResponse to the client

type GetCustomStreamParams

type GetCustomStreamParams struct {

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

	/*
	  In: header
	*/
	XRequestID *string
	/*Ignored but available for compatibility with upstream.
	  In: query
	*/
	AccessKey *string
	/*The UTC date in the format 'YYYYMMDD'
	  Required: true
	  In: query
	*/
	Date string
	/*Stream ID, default is the non-realtime RaBe program.
	  Required: true
	  In: path
	  Default: "s-qXuJARB"
	*/
	StreamID string
}

GetCustomStreamParams contains all the bound params for the get custom stream operation typically these are obtained from a http.Request

swagger:parameters getCustomStream

func NewGetCustomStreamParams

func NewGetCustomStreamParams() GetCustomStreamParams

NewGetCustomStreamParams creates a new GetCustomStreamParams object with the default values initialized.

func (*GetCustomStreamParams) BindRequest

func (o *GetCustomStreamParams) 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 NewGetCustomStreamParams() beforehand.

type GetCustomStreamURL

type GetCustomStreamURL struct {
	StreamID string

	AccessKey *string
	Date      string
	// contains filtered or unexported fields
}

GetCustomStreamURL generates an URL for the get custom stream operation

func (*GetCustomStreamURL) Build

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

Build a url path and query string

func (*GetCustomStreamURL) BuildFull

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

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

func (*GetCustomStreamURL) Must

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

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

func (*GetCustomStreamURL) SetBasePath

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

func (o *GetCustomStreamURL) String() string

String returns the string representation of the path with query string

func (*GetCustomStreamURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetCustomStreamURL) WithBasePath

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

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