Skip to content

Commit

Permalink
add comments
Browse files Browse the repository at this point in the history
Signed-off-by: Jimil Desai <jimildesai42@gmail.com>
  • Loading branch information
jimil749 committed Aug 7, 2021
1 parent e524a64 commit f0b68f3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/plugin/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@ import (
"github.com/cs3org/reva/pkg/appctx"
)

// Ctx represents context to be passed to the plugins
type Ctx struct {
User []*userpb.User
Token []string
}

// GetContextKV retrieves context KV pairs and stores it into Ctx
func GetContextKV(ctx context.Context) *Ctx {
ctxVal := &Ctx{}
m := appctx.GetKeyValuesFromCtx(ctx)
Expand Down

0 comments on commit f0b68f3

Please sign in to comment.