Documentation ¶
Index ¶
- Variables
- func CloseBody(res *http.Response) error
- func CreateMeeting(platformName string, client *http.Client, endpoint string, ...) error
- func CreateRequest(httpMethod string, url string, jsonBody interface{}, oauth domain.OAuthInfo) (*http.Request, error)
- func DeleteMeeting(platformName string, client *http.Client, endpoint string, ...) error
- func GetMeeting(platformName string, client *http.Client, endpoint string, ...) error
- func GetMeetings(platformName string, client *http.Client, endpoint string, ...) error
- type APIError
- type AddPagination
- type NotFoundError
- type RequestCreationError
- type RequestExecutionError
- type ResponseDecodingError
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotFound = NotFoundError{} ErrReqCreation = RequestCreationError{} ErrReqExecution = RequestExecutionError{} ErrResDecoding = ResponseDecodingError{} )
Functions ¶
func CreateMeeting ¶
func CreateMeeting(platformName string, client *http.Client, endpoint string, oauth domain.OAuthInfo, meeting interface{}, result interface{}, successCode int) error
CreateMeeting creates a meeting.
func CreateRequest ¶
func CreateRequest(httpMethod string, url string, jsonBody interface{}, oauth domain.OAuthInfo) (*http.Request, error)
CreateRequest is a helper function that creates a request to be sent to a platform API. This function appends the provided OAuth token to the request in the Authorization header.
func DeleteMeeting ¶
func DeleteMeeting(platformName string, client *http.Client, endpoint string, oauth domain.OAuthInfo, result interface{}, successCode int, meetingID string) error
DeleteMeeting deletes a meeting.
Types ¶
type AddPagination ¶
AddPagination is a function that takes a URL, adds information to it to get a specific page, and returns the URL
type NotFoundError ¶
func NewNotFoundError ¶
func NewNotFoundError(resource string, resourceID string, requester string, requesterID string) NotFoundError
func (NotFoundError) Error ¶
func (n NotFoundError) Error() string
func (NotFoundError) Is ¶
func (n NotFoundError) Is(tgt error) bool
type RequestCreationError ¶
func NewRequestCreationError ¶
func NewRequestCreationError(url string, err error) RequestCreationError
func (RequestCreationError) Error ¶
func (r RequestCreationError) Error() string
func (RequestCreationError) Is ¶
func (r RequestCreationError) Is(tgt error) bool
type RequestExecutionError ¶
func NewRequestExecutionError ¶
func NewRequestExecutionError(url string, err error) RequestExecutionError
func (RequestExecutionError) Error ¶
func (r RequestExecutionError) Error() string
func (RequestExecutionError) Is ¶
func (r RequestExecutionError) Is(tgt error) bool
type ResponseDecodingError ¶
func NewResponseDecodingError ¶
func NewResponseDecodingError(url string, err error) ResponseDecodingError
func (ResponseDecodingError) Error ¶
func (r ResponseDecodingError) Error() string
func (ResponseDecodingError) Is ¶
func (r ResponseDecodingError) Is(tgt error) bool
Click to show internal directories.
Click to hide internal directories.