Documentation ¶
Index ¶
- func AttachToAccountTwitterPath() 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 DetachFromAccountTwitterPath() 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) *twitter.AttachToAccountPayload
- func NewCORSHandler() http.Handler
- func NewDetachFromAccountHandler(endpoint goa.Endpoint, mux goahttp.Muxer, ...) http.Handler
- func NewDetachFromAccountPayload(authorization *string, xSession *string, aPIKey *string) *twitter.DetachFromAccountPayload
- func NewReceiveHandler(endpoint goa.Endpoint, mux goahttp.Muxer, ...) http.Handler
- func NewReceivePayload(oauthToken string, oauthVerifier string, state string, authorization *string, ...) *twitter.ReceivePayload
- func NewRegisterURLHandler(endpoint goa.Endpoint, mux goahttp.Muxer, ...) http.Handler
- func NewRegisterURLPayload(aPIKey *string) *twitter.RegisterURLPayload
- func ReceiveTwitterPath() string
- func RegisterURLTwitterPath() string
- type ErrorNamer
- type MountPoint
- type ReceiveResponseBody
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AttachToAccountTwitterPath ¶
func AttachToAccountTwitterPath() string
AttachToAccountTwitterPath returns the URL path to the twitter 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 twitter 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 twitter 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 twitter 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 twitter register-url endpoint.
func DetachFromAccountTwitterPath ¶
func DetachFromAccountTwitterPath() string
DetachFromAccountTwitterPath returns the URL path to the twitter 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 twitter 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 twitter 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 twitter 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 twitter register-url endpoint.
func MountAttachToAccountHandler ¶
MountAttachToAccountHandler configures the mux to serve the "twitter" service "attach-to-account" endpoint.
func MountCORSHandler ¶
MountCORSHandler configures the mux to serve the CORS endpoints for the service twitter.
func MountDetachFromAccountHandler ¶
MountDetachFromAccountHandler configures the mux to serve the "twitter" service "detach-from-account" endpoint.
func MountReceiveHandler ¶
MountReceiveHandler configures the mux to serve the "twitter" service "receive" endpoint.
func MountRegisterURLHandler ¶
MountRegisterURLHandler configures the mux to serve the "twitter" 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 "twitter" service "attach-to-account" endpoint.
func NewAttachToAccountPayload ¶
func NewAttachToAccountPayload(authorization *string, xSession *string, aPIKey *string) *twitter.AttachToAccountPayload
NewAttachToAccountPayload builds a twitter 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 "twitter" service "detach-from-account" endpoint.
func NewDetachFromAccountPayload ¶
func NewDetachFromAccountPayload(authorization *string, xSession *string, aPIKey *string) *twitter.DetachFromAccountPayload
NewDetachFromAccountPayload builds a twitter 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 "twitter" service "receive" endpoint.
func NewReceivePayload ¶
func NewReceivePayload(oauthToken string, oauthVerifier string, state string, authorization *string, xSession *string, redirectURL *string, aPIKey *string) *twitter.ReceivePayload
NewReceivePayload builds a twitter 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 "twitter" service "register-url" endpoint.
func NewRegisterURLPayload ¶
func NewRegisterURLPayload(aPIKey *string) *twitter.RegisterURLPayload
NewRegisterURLPayload builds a twitter service register-url endpoint payload.
func ReceiveTwitterPath ¶
func ReceiveTwitterPath() string
ReceiveTwitterPath returns the URL path to the twitter service receive HTTP endpoint.
func RegisterURLTwitterPath ¶
func RegisterURLTwitterPath() string
RegisterURLTwitterPath returns the URL path to the twitter 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 "twitter" service "receive" endpoint HTTP response body.
func NewReceiveResponseBody ¶
func NewReceiveResponseBody(res *twitterviews.UserMediaView) *ReceiveResponseBody
NewReceiveResponseBody builds the HTTP response body from the result of the "receive" endpoint of the "twitter" 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 twitter service endpoint HTTP handlers.
func New ¶
func New( e *twitter.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 twitter service endpoints.