goasupport

package
v0.0.0-...-2d73068 Latest Latest
Warning

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

Go to latest
Published: May 13, 2020 License: Apache-2.0 Imports: 5 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ForwardContextRequestID

func ForwardContextRequestID(ctx context.Context) context.Context

func NewForwardSigner

func NewForwardSigner(ctx context.Context) goaclient.Signer

NewForwardSigner returns a new signer which uses the token from the context If the caller context is used then the token from this context will be extracted and forwarded to the target Request

Types

type JWTSigner

type JWTSigner struct {
	Token string
}

JWTSigner represents a JWT signer

func (JWTSigner) Sign

func (f JWTSigner) Sign(request *http.Request) error

Sign sets the Auth header

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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