operations

package
v0.0.0-...-86fdd16 Latest Latest
Warning

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

Go to latest
Published: May 18, 2021 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const GetMeetingOKCode int = 200

GetMeetingOKCode is the HTTP code returned for type GetMeetingOK

View Source
const ListRecordingsOKCode int = 200

ListRecordingsOKCode is the HTTP code returned for type ListRecordingsOK

View Source
const ListUpcomingMeetingsOKCode int = 200

ListUpcomingMeetingsOKCode is the HTTP code returned for type ListUpcomingMeetingsOK

Variables

This section is empty.

Functions

This section is empty.

Types

type GetMeeting

type GetMeeting struct {
	Context *middleware.Context
	Handler GetMeetingHandler
}

GetMeeting swagger:route GET /zoom/meetings/{id} getMeeting

GetMeeting get meeting API

func NewGetMeeting

func NewGetMeeting(ctx *middleware.Context, handler GetMeetingHandler) *GetMeeting

NewGetMeeting creates a new http.Handler for the get meeting operation

func (*GetMeeting) ServeHTTP

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

type GetMeetingHandler

type GetMeetingHandler interface {
	Handle(GetMeetingParams) middleware.Responder
}

GetMeetingHandler interface for that can handle valid get meeting params

type GetMeetingHandlerFunc

type GetMeetingHandlerFunc func(GetMeetingParams) middleware.Responder

GetMeetingHandlerFunc turns a function with the right signature into a get meeting handler

func (GetMeetingHandlerFunc) Handle

Handle executing the request and returning a response

type GetMeetingOK

type GetMeetingOK struct {

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

GetMeetingOK Get a given Meeting

swagger:response getMeetingOK

func NewGetMeetingOK

func NewGetMeetingOK() *GetMeetingOK

NewGetMeetingOK creates GetMeetingOK with default headers values

func (*GetMeetingOK) SetPayload

func (o *GetMeetingOK) SetPayload(payload *models.Meeting)

SetPayload sets the payload to the get meeting o k response

func (*GetMeetingOK) WithPayload

func (o *GetMeetingOK) WithPayload(payload *models.Meeting) *GetMeetingOK

WithPayload adds the payload to the get meeting o k response

func (*GetMeetingOK) WriteResponse

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

WriteResponse to the client

type GetMeetingParams

type GetMeetingParams struct {

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

	/*
	  Required: true
	  In: path
	*/
	ID string
}

GetMeetingParams contains all the bound params for the get meeting operation typically these are obtained from a http.Request

swagger:parameters GetMeeting

func NewGetMeetingParams

func NewGetMeetingParams() GetMeetingParams

NewGetMeetingParams creates a new GetMeetingParams object no default values defined in spec.

func (*GetMeetingParams) BindRequest

func (o *GetMeetingParams) 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 NewGetMeetingParams() beforehand.

type GetMeetingURL

type GetMeetingURL struct {
	ID string
	// contains filtered or unexported fields
}

GetMeetingURL generates an URL for the get meeting operation

func (*GetMeetingURL) Build

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

Build a url path and query string

func (*GetMeetingURL) BuildFull

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

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

func (*GetMeetingURL) Must

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

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

func (*GetMeetingURL) SetBasePath

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

func (o *GetMeetingURL) String() string

String returns the string representation of the path with query string

func (*GetMeetingURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetMeetingURL) WithBasePath

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

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 JarvisAPI

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

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

	// JSONProducer registers a producer for the following mime types:
	//   - application/json
	JSONProducer runtime.Producer

	// DictationStatusHandler sets the operation handler for the dictation status operation
	DictationStatusHandler DictationStatusHandler
	// GetMeetingHandler sets the operation handler for the get meeting operation
	GetMeetingHandler GetMeetingHandler
	// HealthHandler sets the operation handler for the health operation
	HealthHandler HealthHandler
	// ListRecordingsHandler sets the operation handler for the list recordings operation
	ListRecordingsHandler ListRecordingsHandler
	// ListUpcomingMeetingsHandler sets the operation handler for the list upcoming meetings operation
	ListUpcomingMeetingsHandler ListUpcomingMeetingsHandler
	// StartHandler sets the operation handler for the start operation
	StartHandler StartHandler
	// StopHandler sets the operation handler for the stop operation
	StopHandler StopHandler
	// 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)

	// PreServerShutdown is called before the HTTP(S) server is shutdown
	// This allows for custom functions to get executed before the HTTP(S) server stops accepting traffic
	PreServerShutdown func()

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

JarvisAPI Jarvis handles your venture's adventures...

func NewJarvisAPI

func NewJarvisAPI(spec *loads.Document) *JarvisAPI

NewJarvisAPI creates a new Jarvis instance

func (*JarvisAPI) AddMiddlewareFor

func (o *JarvisAPI) AddMiddlewareFor(method, path string, builder middleware.Builder)

AddMiddlewareFor adds a http middleware to existing handler

func (*JarvisAPI) AuthenticatorsFor

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

AuthenticatorsFor gets the authenticators for the specified security schemes

func (*JarvisAPI) Authorizer

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

Authorizer returns the registered authorizer

func (*JarvisAPI) ConsumersFor

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

ConsumersFor gets the consumers for the specified media types. MIME type parameters are ignored here.

func (*JarvisAPI) Context

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

Context returns the middleware context for the jarvis API

func (*JarvisAPI) DefaultConsumes

func (o *JarvisAPI) DefaultConsumes() string

DefaultConsumes returns the default consumes media type

func (*JarvisAPI) DefaultProduces

func (o *JarvisAPI) DefaultProduces() string

DefaultProduces returns the default produces media type

func (*JarvisAPI) Formats

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

Formats returns the registered string formats

func (*JarvisAPI) HandlerFor

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

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

func (*JarvisAPI) Init

func (o *JarvisAPI) Init()

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

func (*JarvisAPI) ProducersFor

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

ProducersFor gets the producers for the specified media types. MIME type parameters are ignored here.

func (*JarvisAPI) RegisterConsumer

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

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

func (*JarvisAPI) RegisterFormat

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

RegisterFormat registers a custom format validator

func (*JarvisAPI) RegisterProducer

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

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

func (*JarvisAPI) Serve

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

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

ServeErrorFor gets a error handler for a given operation id

func (*JarvisAPI) SetDefaultConsumes

func (o *JarvisAPI) SetDefaultConsumes(mediaType string)

SetDefaultConsumes returns the default consumes media type

func (*JarvisAPI) SetDefaultProduces

func (o *JarvisAPI) SetDefaultProduces(mediaType string)

SetDefaultProduces sets the default produces media type

func (*JarvisAPI) SetSpec

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

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

func (*JarvisAPI) UseRedoc

func (o *JarvisAPI) UseRedoc()

UseRedoc for documentation at /docs

func (*JarvisAPI) UseSwaggerUI

func (o *JarvisAPI) UseSwaggerUI()

UseSwaggerUI for documentation at /docs

func (*JarvisAPI) Validate

func (o *JarvisAPI) Validate() error

Validate validates the registrations in the JarvisAPI

type ListRecordings

type ListRecordings struct {
	Context *middleware.Context
	Handler ListRecordingsHandler
}

ListRecordings swagger:route GET /zoom/recordings listRecordings

ListRecordings list recordings API

func NewListRecordings

func NewListRecordings(ctx *middleware.Context, handler ListRecordingsHandler) *ListRecordings

NewListRecordings creates a new http.Handler for the list recordings operation

func (*ListRecordings) ServeHTTP

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

type ListRecordingsHandler

type ListRecordingsHandler interface {
	Handle(ListRecordingsParams) middleware.Responder
}

ListRecordingsHandler interface for that can handle valid list recordings params

type ListRecordingsHandlerFunc

type ListRecordingsHandlerFunc func(ListRecordingsParams) middleware.Responder

ListRecordingsHandlerFunc turns a function with the right signature into a list recordings handler

func (ListRecordingsHandlerFunc) Handle

Handle executing the request and returning a response

type ListRecordingsOK

type ListRecordingsOK struct {

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

ListRecordingsOK List of recorded meetings

swagger:response listRecordingsOK

func NewListRecordingsOK

func NewListRecordingsOK() *ListRecordingsOK

NewListRecordingsOK creates ListRecordingsOK with default headers values

func (*ListRecordingsOK) SetPayload

func (o *ListRecordingsOK) SetPayload(payload []*models.Recording)

SetPayload sets the payload to the list recordings o k response

func (*ListRecordingsOK) WithPayload

func (o *ListRecordingsOK) WithPayload(payload []*models.Recording) *ListRecordingsOK

WithPayload adds the payload to the list recordings o k response

func (*ListRecordingsOK) WriteResponse

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

WriteResponse to the client

type ListRecordingsParams

type ListRecordingsParams struct {

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

ListRecordingsParams contains all the bound params for the list recordings operation typically these are obtained from a http.Request

swagger:parameters ListRecordings

func NewListRecordingsParams

func NewListRecordingsParams() ListRecordingsParams

NewListRecordingsParams creates a new ListRecordingsParams object no default values defined in spec.

func (*ListRecordingsParams) BindRequest

func (o *ListRecordingsParams) 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 NewListRecordingsParams() beforehand.

type ListRecordingsURL

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

ListRecordingsURL generates an URL for the list recordings operation

func (*ListRecordingsURL) Build

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

Build a url path and query string

func (*ListRecordingsURL) BuildFull

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

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

func (*ListRecordingsURL) Must

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

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

func (*ListRecordingsURL) SetBasePath

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

func (o *ListRecordingsURL) String() string

String returns the string representation of the path with query string

func (*ListRecordingsURL) StringFull

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

StringFull returns the string representation of a complete url

func (*ListRecordingsURL) WithBasePath

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

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 ListUpcomingMeetings

type ListUpcomingMeetings struct {
	Context *middleware.Context
	Handler ListUpcomingMeetingsHandler
}

ListUpcomingMeetings swagger:route GET /zoom/meetings/upcoming listUpcomingMeetings

ListUpcomingMeetings list upcoming meetings API

func NewListUpcomingMeetings

func NewListUpcomingMeetings(ctx *middleware.Context, handler ListUpcomingMeetingsHandler) *ListUpcomingMeetings

NewListUpcomingMeetings creates a new http.Handler for the list upcoming meetings operation

func (*ListUpcomingMeetings) ServeHTTP

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

type ListUpcomingMeetingsHandler

type ListUpcomingMeetingsHandler interface {
	Handle(ListUpcomingMeetingsParams) middleware.Responder
}

ListUpcomingMeetingsHandler interface for that can handle valid list upcoming meetings params

type ListUpcomingMeetingsHandlerFunc

type ListUpcomingMeetingsHandlerFunc func(ListUpcomingMeetingsParams) middleware.Responder

ListUpcomingMeetingsHandlerFunc turns a function with the right signature into a list upcoming meetings handler

func (ListUpcomingMeetingsHandlerFunc) Handle

Handle executing the request and returning a response

type ListUpcomingMeetingsOK

type ListUpcomingMeetingsOK struct {

	/*
	  In: Body
	*/
	Payload *ListUpcomingMeetingsOKBody `json:"body,omitempty"`
}

ListUpcomingMeetingsOK List upcoming zoom meetings that Jarvis has been invited to

swagger:response listUpcomingMeetingsOK

func NewListUpcomingMeetingsOK

func NewListUpcomingMeetingsOK() *ListUpcomingMeetingsOK

NewListUpcomingMeetingsOK creates ListUpcomingMeetingsOK with default headers values

func (*ListUpcomingMeetingsOK) SetPayload

func (o *ListUpcomingMeetingsOK) SetPayload(payload *ListUpcomingMeetingsOKBody)

SetPayload sets the payload to the list upcoming meetings o k response

func (*ListUpcomingMeetingsOK) WithPayload

WithPayload adds the payload to the list upcoming meetings o k response

func (*ListUpcomingMeetingsOK) WriteResponse

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

WriteResponse to the client

type ListUpcomingMeetingsOKBody

type ListUpcomingMeetingsOKBody struct {

	// meetings
	Meetings []*models.Meeting `json:"meetings"`
}

ListUpcomingMeetingsOKBody list upcoming meetings o k body

swagger:model ListUpcomingMeetingsOKBody

func (*ListUpcomingMeetingsOKBody) MarshalBinary

func (o *ListUpcomingMeetingsOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ListUpcomingMeetingsOKBody) UnmarshalBinary

func (o *ListUpcomingMeetingsOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ListUpcomingMeetingsOKBody) Validate

func (o *ListUpcomingMeetingsOKBody) Validate(formats strfmt.Registry) error

Validate validates this list upcoming meetings o k body

type ListUpcomingMeetingsParams

type ListUpcomingMeetingsParams struct {

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

ListUpcomingMeetingsParams contains all the bound params for the list upcoming meetings operation typically these are obtained from a http.Request

swagger:parameters ListUpcomingMeetings

func NewListUpcomingMeetingsParams

func NewListUpcomingMeetingsParams() ListUpcomingMeetingsParams

NewListUpcomingMeetingsParams creates a new ListUpcomingMeetingsParams object no default values defined in spec.

func (*ListUpcomingMeetingsParams) 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 NewListUpcomingMeetingsParams() beforehand.

type ListUpcomingMeetingsURL

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

ListUpcomingMeetingsURL generates an URL for the list upcoming meetings operation

func (*ListUpcomingMeetingsURL) Build

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

Build a url path and query string

func (*ListUpcomingMeetingsURL) BuildFull

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

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

func (*ListUpcomingMeetingsURL) Must

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

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

func (*ListUpcomingMeetingsURL) SetBasePath

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

func (o *ListUpcomingMeetingsURL) String() string

String returns the string representation of the path with query string

func (*ListUpcomingMeetingsURL) StringFull

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

StringFull returns the string representation of a complete url

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

Jump to

Keyboard shortcuts

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