mock package - github.com/graphaelli/zat/zoom/mock - Go Packages

mock

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApiHandler

func ApiHandler(t *testing.T) func(w http.ResponseWriter, r *http.Request)

ApiHandler mocks the zoom API endpoints

func OauthHandler

func OauthHandler(t *testing.T, oauthRedirect string) func(w http.ResponseWriter, r *http.Request)

OauthHandler mocks the zoom OAuth endpoints

Types

type OauthResponse

type OauthResponse struct {
	AccessToken  string `json:"access_token"`
	TokenType    string `json:"token_type"`
	RefreshToken string `json:"refresh_token"`
	ExpiresIn    int    `json:"expires_in"`
	Scope        string `json:"scope"`
}

Jump to

Keyboard shortcuts

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