Codebase list golang-github-go-kit-kit / f62d869
Fix typo in comments Brian Kassouf authored 7 years ago Brian Kassouf committed 7 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
2020 )
2121
2222 // Create a new JWT token generating middleware, specifying signing method and the claims
23 // you would like it to contain. Particulary useful for clients.
23 // you would like it to contain. Particularly useful for clients.
2424 func NewSigner(key string, method jwt.SigningMethod, claims jwt.Claims) endpoint.Middleware {
2525 return func(next endpoint.Endpoint) endpoint.Endpoint {
2626 return func(ctx context.Context, request interface{}) (response interface{}, err error) {
4141
4242 // Create a new JWT token parsing middleware, specifying a jwt.Keyfunc interface and the
4343 // signing method. Adds the resulting claims to endpoint context or returns error on invalid
44 // token. Particualry useful for servers.
44 // token. Particularly useful for servers.
4545 func NewParser(keyFunc jwt.Keyfunc, method jwt.SigningMethod) endpoint.Middleware {
4646 return func(next endpoint.Endpoint) endpoint.Endpoint {
4747 return func(ctx context.Context, request interface{}) (response interface{}, err error) {