Documentation ¶
Index ¶
- func AlsoDoublySecureSecuredServicePath() string
- func DecodeAlsoDoublySecureRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (any, error)
- func DecodeDoublySecureRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (any, error)
- func DecodeSecureRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (any, error)
- func DecodeSigninRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (any, error)
- func DoublySecureSecuredServicePath() string
- func EncodeAlsoDoublySecureError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, ...) func(context.Context, http.ResponseWriter, error) error
- func EncodeAlsoDoublySecureResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, any) error
- func EncodeDoublySecureError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, ...) func(context.Context, http.ResponseWriter, error) error
- func EncodeDoublySecureResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, any) error
- func EncodeSecureError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, ...) func(context.Context, http.ResponseWriter, error) error
- func EncodeSecureResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, any) error
- func EncodeSigninError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, ...) func(context.Context, http.ResponseWriter, error) error
- func EncodeSigninResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, any) error
- func Mount(mux goahttp.Muxer, h *Server)
- func MountAlsoDoublySecureHandler(mux goahttp.Muxer, h http.Handler)
- func MountDoublySecureHandler(mux goahttp.Muxer, h http.Handler)
- func MountSecureHandler(mux goahttp.Muxer, h http.Handler)
- func MountSigninHandler(mux goahttp.Muxer, h http.Handler)
- func NewAlsoDoublySecureHandler(endpoint goa.Endpoint, mux goahttp.Muxer, ...) http.Handler
- func NewAlsoDoublySecurePayload(key *string, oauthToken *string, token *string) *securedservice.AlsoDoublySecurePayload
- func NewDoublySecureHandler(endpoint goa.Endpoint, mux goahttp.Muxer, ...) http.Handler
- func NewDoublySecurePayload(key string, token string) *securedservice.DoublySecurePayload
- func NewSecureHandler(endpoint goa.Endpoint, mux goahttp.Muxer, ...) http.Handler
- func NewSecurePayload(fail *bool, token string) *securedservice.SecurePayload
- func NewSigninHandler(endpoint goa.Endpoint, mux goahttp.Muxer, ...) http.Handler
- func NewSigninPayload() *securedservice.SigninPayload
- func SecureSecuredServicePath() string
- func SigninSecuredServicePath() string
- type MountPoint
- type Server
- type SigninResponseBody
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AlsoDoublySecureSecuredServicePath ¶
func AlsoDoublySecureSecuredServicePath() string
AlsoDoublySecureSecuredServicePath returns the URL path to the secured_service service also_doubly_secure HTTP endpoint.
func DecodeAlsoDoublySecureRequest ¶
func DecodeAlsoDoublySecureRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (any, error)
DecodeAlsoDoublySecureRequest returns a decoder for requests sent to the secured_service also_doubly_secure endpoint.
func DecodeDoublySecureRequest ¶
func DecodeDoublySecureRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (any, error)
DecodeDoublySecureRequest returns a decoder for requests sent to the secured_service doubly_secure endpoint.
func DecodeSecureRequest ¶
func DecodeSecureRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (any, error)
DecodeSecureRequest returns a decoder for requests sent to the secured_service secure endpoint.
func DecodeSigninRequest ¶
func DecodeSigninRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (any, error)
DecodeSigninRequest returns a decoder for requests sent to the secured_service signin endpoint.
func DoublySecureSecuredServicePath ¶
func DoublySecureSecuredServicePath() string
DoublySecureSecuredServicePath returns the URL path to the secured_service service doubly_secure HTTP endpoint.
func EncodeAlsoDoublySecureError ¶
func EncodeAlsoDoublySecureError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, formatter func(ctx context.Context, err error) goahttp.Statuser) func(context.Context, http.ResponseWriter, error) error
EncodeAlsoDoublySecureError returns an encoder for errors returned by the also_doubly_secure secured_service endpoint.
func EncodeAlsoDoublySecureResponse ¶
func EncodeAlsoDoublySecureResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, any) error
EncodeAlsoDoublySecureResponse returns an encoder for responses returned by the secured_service also_doubly_secure endpoint.
func EncodeDoublySecureError ¶
func EncodeDoublySecureError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, formatter func(ctx context.Context, err error) goahttp.Statuser) func(context.Context, http.ResponseWriter, error) error
EncodeDoublySecureError returns an encoder for errors returned by the doubly_secure secured_service endpoint.
func EncodeDoublySecureResponse ¶
func EncodeDoublySecureResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, any) error
EncodeDoublySecureResponse returns an encoder for responses returned by the secured_service doubly_secure endpoint.
func EncodeSecureError ¶
func EncodeSecureError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, formatter func(ctx context.Context, err error) goahttp.Statuser) func(context.Context, http.ResponseWriter, error) error
EncodeSecureError returns an encoder for errors returned by the secure secured_service endpoint.
func EncodeSecureResponse ¶
func EncodeSecureResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, any) error
EncodeSecureResponse returns an encoder for responses returned by the secured_service secure endpoint.
func EncodeSigninError ¶
func EncodeSigninError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, formatter func(ctx context.Context, err error) goahttp.Statuser) func(context.Context, http.ResponseWriter, error) error
EncodeSigninError returns an encoder for errors returned by the signin secured_service endpoint.
func EncodeSigninResponse ¶
func EncodeSigninResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, any) error
EncodeSigninResponse returns an encoder for responses returned by the secured_service signin endpoint.
func MountAlsoDoublySecureHandler ¶
MountAlsoDoublySecureHandler configures the mux to serve the "secured_service" service "also_doubly_secure" endpoint.
func MountDoublySecureHandler ¶
MountDoublySecureHandler configures the mux to serve the "secured_service" service "doubly_secure" endpoint.
func MountSecureHandler ¶
MountSecureHandler configures the mux to serve the "secured_service" service "secure" endpoint.
func MountSigninHandler ¶
MountSigninHandler configures the mux to serve the "secured_service" service "signin" endpoint.
func NewAlsoDoublySecureHandler ¶
func NewAlsoDoublySecureHandler( endpoint goa.Endpoint, mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder, encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, errhandler func(context.Context, http.ResponseWriter, error), formatter func(ctx context.Context, err error) goahttp.Statuser, ) http.Handler
NewAlsoDoublySecureHandler creates a HTTP handler which loads the HTTP request and calls the "secured_service" service "also_doubly_secure" endpoint.
func NewAlsoDoublySecurePayload ¶
func NewAlsoDoublySecurePayload(key *string, oauthToken *string, token *string) *securedservice.AlsoDoublySecurePayload
NewAlsoDoublySecurePayload builds a secured_service service also_doubly_secure endpoint payload.
func NewDoublySecureHandler ¶
func NewDoublySecureHandler( endpoint goa.Endpoint, mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder, encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, errhandler func(context.Context, http.ResponseWriter, error), formatter func(ctx context.Context, err error) goahttp.Statuser, ) http.Handler
NewDoublySecureHandler creates a HTTP handler which loads the HTTP request and calls the "secured_service" service "doubly_secure" endpoint.
func NewDoublySecurePayload ¶
func NewDoublySecurePayload(key string, token string) *securedservice.DoublySecurePayload
NewDoublySecurePayload builds a secured_service service doubly_secure endpoint payload.
func NewSecureHandler ¶
func NewSecureHandler( endpoint goa.Endpoint, mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder, encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, errhandler func(context.Context, http.ResponseWriter, error), formatter func(ctx context.Context, err error) goahttp.Statuser, ) http.Handler
NewSecureHandler creates a HTTP handler which loads the HTTP request and calls the "secured_service" service "secure" endpoint.
func NewSecurePayload ¶
func NewSecurePayload(fail *bool, token string) *securedservice.SecurePayload
NewSecurePayload builds a secured_service service secure endpoint payload.
func NewSigninHandler ¶
func NewSigninHandler( endpoint goa.Endpoint, mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder, encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, errhandler func(context.Context, http.ResponseWriter, error), formatter func(ctx context.Context, err error) goahttp.Statuser, ) http.Handler
NewSigninHandler creates a HTTP handler which loads the HTTP request and calls the "secured_service" service "signin" endpoint.
func NewSigninPayload ¶
func NewSigninPayload() *securedservice.SigninPayload
NewSigninPayload builds a secured_service service signin endpoint payload.
func SecureSecuredServicePath ¶
func SecureSecuredServicePath() string
SecureSecuredServicePath returns the URL path to the secured_service service secure HTTP endpoint.
func SigninSecuredServicePath ¶
func SigninSecuredServicePath() string
SigninSecuredServicePath returns the URL path to the secured_service service signin HTTP endpoint.
Types ¶
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 Server ¶
type Server struct { Mounts []*MountPoint Signin http.Handler Secure http.Handler DoublySecure http.Handler AlsoDoublySecure http.Handler }
Server lists the secured_service service endpoint HTTP handlers.
func New ¶
func New( e *securedservice.Endpoints, mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder, encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, errhandler func(context.Context, http.ResponseWriter, error), formatter func(ctx context.Context, err error) goahttp.Statuser, ) *Server
New instantiates HTTP handlers for all the secured_service service endpoints using the provided encoder and decoder. The handlers are mounted on the given mux using the HTTP verb and path defined in the design. errhandler is called whenever a response fails to be encoded. formatter is used to format errors returned by the service methods prior to encoding. Both errhandler and formatter are optional and can be nil.
func (*Server) MethodNames ¶
MethodNames returns the methods served.
type SigninResponseBody ¶
type SigninResponseBody struct { // JWT token JWT string `form:"jwt" json:"jwt" xml:"jwt"` // API Key APIKey string `form:"api_key" json:"api_key" xml:"api_key"` // OAuth2 token OauthToken string `form:"oauth_token" json:"oauth_token" xml:"oauth_token"` }
SigninResponseBody is the type of the "secured_service" service "signin" endpoint HTTP response body.
func NewSigninResponseBody ¶
func NewSigninResponseBody(res *securedservice.Creds) *SigninResponseBody
NewSigninResponseBody builds the HTTP response body from the result of the "signin" endpoint of the "secured_service" service.