Documentation
¶
Index ¶
- func AttachToAccountGooglePath() string
- func BuildAttachToAccountPayload(googleAttachToAccountAuthorization string, ...) (*google.AttachToAccountPayload, error)
- func BuildDetachFromAccountPayload(googleDetachFromAccountAuthorization string, ...) (*google.DetachFromAccountPayload, error)
- func BuildReceivePayload(googleReceiveCode string, googleReceiveState string, ...) (*google.ReceivePayload, error)
- func BuildRegisterURLPayload(googleRegisterURLAPIKey string, googleRegisterURLRedirectURL string) (*google.RegisterURLPayload, error)
- func DecodeAttachToAccountResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
- func DecodeDetachFromAccountResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
- func DecodeReceiveResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
- func DecodeRegisterURLResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
- func DetachFromAccountGooglePath() string
- func EncodeAttachToAccountRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
- func EncodeDetachFromAccountRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
- func EncodeReceiveRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
- func EncodeRegisterURLRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
- func NewReceiveUserMediaOK(body *ReceiveResponseBody, authorization string, xSession string) *googleviews.UserMediaView
- func ReceiveGooglePath() string
- func RegisterURLGooglePath() string
- type Client
- func (c *Client) AttachToAccount() goa.Endpoint
- func (c *Client) BuildAttachToAccountRequest(ctx context.Context, v interface{}) (*http.Request, error)
- func (c *Client) BuildDetachFromAccountRequest(ctx context.Context, v interface{}) (*http.Request, error)
- func (c *Client) BuildReceiveRequest(ctx context.Context, v interface{}) (*http.Request, error)
- func (c *Client) BuildRegisterURLRequest(ctx context.Context, v interface{}) (*http.Request, error)
- func (c *Client) DetachFromAccount() goa.Endpoint
- func (c *Client) Receive() goa.Endpoint
- func (c *Client) RegisterURL() goa.Endpoint
- type ReceiveResponseBody
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AttachToAccountGooglePath ¶
func AttachToAccountGooglePath() string
AttachToAccountGooglePath returns the URL path to the google service attach-to-account HTTP endpoint.
func BuildAttachToAccountPayload ¶
func BuildAttachToAccountPayload(googleAttachToAccountAuthorization string, googleAttachToAccountXSession string, googleAttachToAccountAPIKey string, googleAttachToAccountRedirectURL string) (*google.AttachToAccountPayload, error)
BuildAttachToAccountPayload builds the payload for the google attach-to-account endpoint from CLI flags.
func BuildDetachFromAccountPayload ¶
func BuildDetachFromAccountPayload(googleDetachFromAccountAuthorization string, googleDetachFromAccountXSession string, googleDetachFromAccountAPIKey string) (*google.DetachFromAccountPayload, error)
BuildDetachFromAccountPayload builds the payload for the google detach-from-account endpoint from CLI flags.
func BuildReceivePayload ¶
func BuildReceivePayload(googleReceiveCode string, googleReceiveState string, googleReceiveAuthorization string, googleReceiveXSession string, googleReceiveRedirectURL string, googleReceiveAPIKey string) (*google.ReceivePayload, error)
BuildReceivePayload builds the payload for the google receive endpoint from CLI flags.
func BuildRegisterURLPayload ¶
func BuildRegisterURLPayload(googleRegisterURLAPIKey string, googleRegisterURLRedirectURL string) (*google.RegisterURLPayload, error)
BuildRegisterURLPayload builds the payload for the google register-url endpoint from CLI flags.
func DecodeAttachToAccountResponse ¶
func DecodeAttachToAccountResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
DecodeAttachToAccountResponse returns a decoder for responses returned by the google attach-to-account endpoint. restoreBody controls whether the response body should be restored after having been read.
func DecodeDetachFromAccountResponse ¶
func DecodeDetachFromAccountResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
DecodeDetachFromAccountResponse returns a decoder for responses returned by the google detach-from-account endpoint. restoreBody controls whether the response body should be restored after having been read.
func DecodeReceiveResponse ¶
func DecodeReceiveResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
DecodeReceiveResponse returns a decoder for responses returned by the google receive endpoint. restoreBody controls whether the response body should be restored after having been read.
func DecodeRegisterURLResponse ¶
func DecodeRegisterURLResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
DecodeRegisterURLResponse returns a decoder for responses returned by the google register-url endpoint. restoreBody controls whether the response body should be restored after having been read.
func DetachFromAccountGooglePath ¶
func DetachFromAccountGooglePath() string
DetachFromAccountGooglePath returns the URL path to the google service detach-from-account HTTP endpoint.
func EncodeAttachToAccountRequest ¶
func EncodeAttachToAccountRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
EncodeAttachToAccountRequest returns an encoder for requests sent to the google attach-to-account server.
func EncodeDetachFromAccountRequest ¶
func EncodeDetachFromAccountRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
EncodeDetachFromAccountRequest returns an encoder for requests sent to the google detach-from-account server.
func EncodeReceiveRequest ¶
func EncodeReceiveRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
EncodeReceiveRequest returns an encoder for requests sent to the google receive server.
func EncodeRegisterURLRequest ¶
func EncodeRegisterURLRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
EncodeRegisterURLRequest returns an encoder for requests sent to the google register-url server.
func NewReceiveUserMediaOK ¶
func NewReceiveUserMediaOK(body *ReceiveResponseBody, authorization string, xSession string) *googleviews.UserMediaView
NewReceiveUserMediaOK builds a "google" service "receive" endpoint result from a HTTP "OK" response.
func ReceiveGooglePath ¶
func ReceiveGooglePath() string
ReceiveGooglePath returns the URL path to the google service receive HTTP endpoint.
func RegisterURLGooglePath ¶
func RegisterURLGooglePath() string
RegisterURLGooglePath returns the URL path to the google service register-url HTTP endpoint.
Types ¶
type Client ¶
type Client struct {
// RegisterURL Doer is the HTTP client used to make requests to the
// register-url endpoint.
RegisterURLDoer goahttp.Doer
// AttachToAccount Doer is the HTTP client used to make requests to the
// attach-to-account endpoint.
AttachToAccountDoer goahttp.Doer
// DetachFromAccount Doer is the HTTP client used to make requests to the
// detach-from-account endpoint.
DetachFromAccountDoer goahttp.Doer
// Receive Doer is the HTTP client used to make requests to the receive
// endpoint.
ReceiveDoer goahttp.Doer
// CORS Doer is the HTTP client used to make requests to the endpoint.
CORSDoer goahttp.Doer
// RestoreResponseBody controls whether the response bodies are reset after
// decoding so they can be read again.
RestoreResponseBody bool
// contains filtered or unexported fields
}
Client lists the google service endpoint HTTP clients.
func NewClient ¶
func NewClient( scheme string, host string, doer goahttp.Doer, enc func(*http.Request) goahttp.Encoder, dec func(*http.Response) goahttp.Decoder, restoreBody bool, ) *Client
NewClient instantiates HTTP clients for all the google service servers.
func (*Client) AttachToAccount ¶
AttachToAccount returns an endpoint that makes HTTP requests to the google service attach-to-account server.
func (*Client) BuildAttachToAccountRequest ¶
func (c *Client) BuildAttachToAccountRequest(ctx context.Context, v interface{}) (*http.Request, error)
BuildAttachToAccountRequest instantiates a HTTP request object with method and path set to call the "google" service "attach-to-account" endpoint
func (*Client) BuildDetachFromAccountRequest ¶
func (c *Client) BuildDetachFromAccountRequest(ctx context.Context, v interface{}) (*http.Request, error)
BuildDetachFromAccountRequest instantiates a HTTP request object with method and path set to call the "google" service "detach-from-account" endpoint
func (*Client) BuildReceiveRequest ¶
BuildReceiveRequest instantiates a HTTP request object with method and path set to call the "google" service "receive" endpoint
func (*Client) BuildRegisterURLRequest ¶
BuildRegisterURLRequest instantiates a HTTP request object with method and path set to call the "google" service "register-url" endpoint
func (*Client) DetachFromAccount ¶
DetachFromAccount returns an endpoint that makes HTTP requests to the google service detach-from-account server.
func (*Client) Receive ¶
Receive returns an endpoint that makes HTTP requests to the google service receive server.
func (*Client) RegisterURL ¶
RegisterURL returns an endpoint that makes HTTP requests to the google service register-url server.
type ReceiveResponseBody ¶
type ReceiveResponseBody struct {
// Unique unchanging user ID
ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
// Given name for the user
FirstName *string `form:"firstName,omitempty" json:"firstName,omitempty" xml:"firstName,omitempty"`
// Family name for the user
LastName *string `form:"lastName,omitempty" json:"lastName,omitempty" xml:"lastName,omitempty"`
// Email attached to the account of the user
Email *string `form:"email,omitempty" json:"email,omitempty" xml:"email,omitempty"`
// Phone Number Of the user
Phone *string `form:"phone,omitempty" json:"phone,omitempty" xml:"phone,omitempty"`
// When the user attempts to change their email, this is what they will change
// it to after they verify that it belongs to them
ChangingEmail *string `form:"changingEmail,omitempty" json:"changingEmail,omitempty" xml:"changingEmail,omitempty"`
// Whether the user has verified their email
VerifiedEmail *bool `form:"verifiedEmail,omitempty" json:"verifiedEmail,omitempty" xml:"verifiedEmail,omitempty"`
// Whether the user is an administrator on the site
IsAdmin *bool `form:"isAdmin,omitempty" json:"isAdmin,omitempty" xml:"isAdmin,omitempty"`
UpdatedAt *string `form:"updatedAt,omitempty" json:"updatedAt,omitempty" xml:"updatedAt,omitempty"`
IsActive *bool `form:"isActive,omitempty" json:"isActive,omitempty" xml:"isActive,omitempty"`
CreatedAt *string `form:"createdAt,omitempty" json:"createdAt,omitempty" xml:"createdAt,omitempty"`
CountryPhoneCode *string `form:"countryPhoneCode,omitempty" json:"countryPhoneCode,omitempty" xml:"countryPhoneCode,omitempty"`
}
ReceiveResponseBody is the type of the "google" service "receive" endpoint HTTP response body.