Documentation ¶
Index ¶
- func AttachToAccountFacebookPath() string
- func DecodeAttachToAccountRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (interface{}, error)
- func DecodeDetachFromAccountRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (interface{}, error)
- func DecodeReceiveRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (interface{}, error)
- func DecodeRegisterURLRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (interface{}, error)
- func DetachFromAccountFacebookPath() string
- func EncodeAttachToAccountResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, interface{}) error
- func EncodeDetachFromAccountResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, interface{}) error
- func EncodeReceiveResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, interface{}) error
- func EncodeRegisterURLResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, interface{}) error
- func Mount(mux goahttp.Muxer, h *Server)
- func MountAttachToAccountHandler(mux goahttp.Muxer, h http.Handler)
- func MountCORSHandler(mux goahttp.Muxer, h http.Handler)
- func MountDetachFromAccountHandler(mux goahttp.Muxer, h http.Handler)
- func MountReceiveHandler(mux goahttp.Muxer, h http.Handler)
- func MountRegisterURLHandler(mux goahttp.Muxer, h http.Handler)
- func NewAttachToAccountHandler(endpoint goa.Endpoint, mux goahttp.Muxer, ...) http.Handler
- func NewAttachToAccountPayload(authorization *string, xSession *string, aPIKey *string) *facebook.AttachToAccountPayload
- func NewCORSHandler() http.Handler
- func NewDetachFromAccountHandler(endpoint goa.Endpoint, mux goahttp.Muxer, ...) http.Handler
- func NewDetachFromAccountPayload(authorization *string, xSession *string, aPIKey *string) *facebook.DetachFromAccountPayload
- func NewReceiveHandler(endpoint goa.Endpoint, mux goahttp.Muxer, ...) http.Handler
- func NewReceivePayload(code string, state string, authorization *string, xSession *string, ...) *facebook.ReceivePayload
- func NewRegisterURLHandler(endpoint goa.Endpoint, mux goahttp.Muxer, ...) http.Handler
- func NewRegisterURLPayload(aPIKey *string) *facebook.RegisterURLPayload
- func ReceiveFacebookPath() string
- func RegisterURLFacebookPath() string
- type ErrorNamer
- type MountPoint
- type ReceiveResponseBody
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AttachToAccountFacebookPath ¶
func AttachToAccountFacebookPath() string
AttachToAccountFacebookPath returns the URL path to the facebook service attach-to-account HTTP endpoint.
func DecodeAttachToAccountRequest ¶
func DecodeAttachToAccountRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (interface{}, error)
DecodeAttachToAccountRequest returns a decoder for requests sent to the facebook attach-to-account endpoint.
func DecodeDetachFromAccountRequest ¶
func DecodeDetachFromAccountRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (interface{}, error)
DecodeDetachFromAccountRequest returns a decoder for requests sent to the facebook detach-from-account endpoint.
func DecodeReceiveRequest ¶
func DecodeReceiveRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (interface{}, error)
DecodeReceiveRequest returns a decoder for requests sent to the facebook receive endpoint.
func DecodeRegisterURLRequest ¶
func DecodeRegisterURLRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (interface{}, error)
DecodeRegisterURLRequest returns a decoder for requests sent to the facebook register-url endpoint.
func DetachFromAccountFacebookPath ¶
func DetachFromAccountFacebookPath() string
DetachFromAccountFacebookPath returns the URL path to the facebook service detach-from-account HTTP endpoint.
func EncodeAttachToAccountResponse ¶
func EncodeAttachToAccountResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, interface{}) error
EncodeAttachToAccountResponse returns an encoder for responses returned by the facebook attach-to-account endpoint.
func EncodeDetachFromAccountResponse ¶
func EncodeDetachFromAccountResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, interface{}) error
EncodeDetachFromAccountResponse returns an encoder for responses returned by the facebook detach-from-account endpoint.
func EncodeReceiveResponse ¶
func EncodeReceiveResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, interface{}) error
EncodeReceiveResponse returns an encoder for responses returned by the facebook receive endpoint.
func EncodeRegisterURLResponse ¶
func EncodeRegisterURLResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, interface{}) error
EncodeRegisterURLResponse returns an encoder for responses returned by the facebook register-url endpoint.
func MountAttachToAccountHandler ¶
MountAttachToAccountHandler configures the mux to serve the "facebook" service "attach-to-account" endpoint.
func MountCORSHandler ¶
MountCORSHandler configures the mux to serve the CORS endpoints for the service facebook.
func MountDetachFromAccountHandler ¶
MountDetachFromAccountHandler configures the mux to serve the "facebook" service "detach-from-account" endpoint.
func MountReceiveHandler ¶
MountReceiveHandler configures the mux to serve the "facebook" service "receive" endpoint.
func MountRegisterURLHandler ¶
MountRegisterURLHandler configures the mux to serve the "facebook" service "register-url" endpoint.
func NewAttachToAccountHandler ¶
func NewAttachToAccountHandler( endpoint goa.Endpoint, mux goahttp.Muxer, dec func(*http.Request) goahttp.Decoder, enc func(context.Context, http.ResponseWriter) goahttp.Encoder, eh func(context.Context, http.ResponseWriter, error), ) http.Handler
NewAttachToAccountHandler creates a HTTP handler which loads the HTTP request and calls the "facebook" service "attach-to-account" endpoint.
func NewAttachToAccountPayload ¶
func NewAttachToAccountPayload(authorization *string, xSession *string, aPIKey *string) *facebook.AttachToAccountPayload
NewAttachToAccountPayload builds a facebook service attach-to-account endpoint payload.
func NewCORSHandler ¶
NewCORSHandler creates a HTTP handler which returns a simple 200 response.
func NewDetachFromAccountHandler ¶
func NewDetachFromAccountHandler( endpoint goa.Endpoint, mux goahttp.Muxer, dec func(*http.Request) goahttp.Decoder, enc func(context.Context, http.ResponseWriter) goahttp.Encoder, eh func(context.Context, http.ResponseWriter, error), ) http.Handler
NewDetachFromAccountHandler creates a HTTP handler which loads the HTTP request and calls the "facebook" service "detach-from-account" endpoint.
func NewDetachFromAccountPayload ¶
func NewDetachFromAccountPayload(authorization *string, xSession *string, aPIKey *string) *facebook.DetachFromAccountPayload
NewDetachFromAccountPayload builds a facebook service detach-from-account endpoint payload.
func NewReceiveHandler ¶
func NewReceiveHandler( endpoint goa.Endpoint, mux goahttp.Muxer, dec func(*http.Request) goahttp.Decoder, enc func(context.Context, http.ResponseWriter) goahttp.Encoder, eh func(context.Context, http.ResponseWriter, error), ) http.Handler
NewReceiveHandler creates a HTTP handler which loads the HTTP request and calls the "facebook" service "receive" endpoint.
func NewReceivePayload ¶
func NewReceivePayload(code string, state string, authorization *string, xSession *string, redirectURL *string, aPIKey *string) *facebook.ReceivePayload
NewReceivePayload builds a facebook service receive endpoint payload.
func NewRegisterURLHandler ¶
func NewRegisterURLHandler( endpoint goa.Endpoint, mux goahttp.Muxer, dec func(*http.Request) goahttp.Decoder, enc func(context.Context, http.ResponseWriter) goahttp.Encoder, eh func(context.Context, http.ResponseWriter, error), ) http.Handler
NewRegisterURLHandler creates a HTTP handler which loads the HTTP request and calls the "facebook" service "register-url" endpoint.
func NewRegisterURLPayload ¶
func NewRegisterURLPayload(aPIKey *string) *facebook.RegisterURLPayload
NewRegisterURLPayload builds a facebook service register-url endpoint payload.
func ReceiveFacebookPath ¶
func ReceiveFacebookPath() string
ReceiveFacebookPath returns the URL path to the facebook service receive HTTP endpoint.
func RegisterURLFacebookPath ¶
func RegisterURLFacebookPath() string
RegisterURLFacebookPath returns the URL path to the facebook service register-url HTTP endpoint.
Types ¶
type ErrorNamer ¶
type ErrorNamer interface {
ErrorName() string
}
ErrorNamer is an interface implemented by generated error structs that exposes the name of the error as defined in the design.
type MountPoint ¶
type MountPoint struct { // Method is the name of the service method served by the mounted HTTP handler. Method string // Verb is the HTTP method used to match requests to the mounted handler. Verb string // Pattern is the HTTP request path pattern used to match requests to the // mounted handler. Pattern string }
MountPoint holds information about the mounted endpoints.
type ReceiveResponseBody ¶
type ReceiveResponseBody struct { // Unique unchanging user ID ID string `form:"id" json:"id" xml:"id"` // Phone Number Of the user Phone string `form:"phone" json:"phone" xml:"phone"` // Family name for the user LastName string `form:"lastName" json:"lastName" xml:"lastName"` UpdatedAt *string `form:"updatedAt,omitempty" json:"updatedAt,omitempty" xml:"updatedAt,omitempty"` // Email attached to the account of the user Email string `form:"email" json:"email" xml:"email"` CreatedAt *string `form:"createdAt,omitempty" json:"createdAt,omitempty" xml:"createdAt,omitempty"` // Given name for the user FirstName string `form:"firstName" json:"firstName" xml:"firstName"` CountryPhoneCode *string `form:"countryPhoneCode,omitempty" json:"countryPhoneCode,omitempty" xml:"countryPhoneCode,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 is an administrator on the site IsAdmin *bool `form:"isAdmin,omitempty" json:"isAdmin,omitempty" xml:"isAdmin,omitempty"` // Whether the user has verified their email VerifiedEmail bool `form:"verifiedEmail" json:"verifiedEmail" xml:"verifiedEmail"` }
ReceiveResponseBody is the type of the "facebook" service "receive" endpoint HTTP response body.
func NewReceiveResponseBody ¶
func NewReceiveResponseBody(res *facebookviews.UserMediaView) *ReceiveResponseBody
NewReceiveResponseBody builds the HTTP response body from the result of the "receive" endpoint of the "facebook" service.
type Server ¶
type Server struct { Mounts []*MountPoint RegisterURL http.Handler AttachToAccount http.Handler DetachFromAccount http.Handler Receive http.Handler CORS http.Handler }
Server lists the facebook service endpoint HTTP handlers.
func New ¶
func New( e *facebook.Endpoints, mux goahttp.Muxer, dec func(*http.Request) goahttp.Decoder, enc func(context.Context, http.ResponseWriter) goahttp.Encoder, eh func(context.Context, http.ResponseWriter, error), ) *Server
New instantiates HTTP handlers for all the facebook service endpoints.