From f0b68f31ce3c4baddbc85105f2d8eaf850b1f506 Mon Sep 17 00:00:00 2001 From: Jimil Desai Date: Sat, 7 Aug 2021 12:10:00 +0530 Subject: [PATCH] add comments Signed-off-by: Jimil Desai --- pkg/plugin/context.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/plugin/context.go b/pkg/plugin/context.go index 8d1dd9477de..0f64a93de7d 100644 --- a/pkg/plugin/context.go +++ b/pkg/plugin/context.go @@ -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)