client

package
v0.0.0-...-50c1148 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2017 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PingInsecurePath

func PingInsecurePath() string

PingInsecurePath computes a request path to the ping action of insecure.

func PingSecurePath

func PingSecurePath() string

PingSecurePath computes a request path to the ping action of secure.

Types

type Client

type Client struct {
	*goaclient.Client
	JWTSigner goaclient.Signer
	Encoder   *goa.HTTPEncoder
	Decoder   *goa.HTTPDecoder
}

Client is the goa-sso-client service client.

func New

func New(c goaclient.Doer) *Client

New instantiates the client.

func (*Client) DecodePong

func (c *Client) DecodePong(resp *http.Response) (*Pong, error)

DecodePong decodes the Pong instance encoded in resp body.

func (*Client) NewPingInsecureRequest

func (c *Client) NewPingInsecureRequest(ctx context.Context, path string) (*http.Request, error)

NewPingInsecureRequest create the request corresponding to the ping action endpoint of the insecure resource.

func (*Client) NewPingSecureRequest

func (c *Client) NewPingSecureRequest(ctx context.Context, path string) (*http.Request, error)

NewPingSecureRequest create the request corresponding to the ping action endpoint of the secure resource.

func (*Client) PingInsecure

func (c *Client) PingInsecure(ctx context.Context, path string) (*http.Response, error)

PingInsecure makes a request to the ping action endpoint of the insecure resource

func (*Client) PingSecure

func (c *Client) PingSecure(ctx context.Context, path string) (*http.Response, error)

PingSecure makes a request to the ping action endpoint of the secure resource

func (*Client) SetJWTSigner

func (c *Client) SetJWTSigner(signer goaclient.Signer)

SetJWTSigner sets the request signer for the jwt security scheme.

type Pong

type Pong struct {
	// like it's 1999
	Msg string `form:"msg" json:"msg" xml:"msg"`
}

Pong media type (default view)

Identifier: application/vnd.goa-sso-client.pong; view=default

func (*Pong) Validate

func (mt *Pong) Validate() (err error)

Validate validates the Pong media type instance.

Jump to

Keyboard shortcuts

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