MCPcopy Create free account
hub / github.com/PaperDebugger/paperdebugger / SetActor

Function SetActor

internal/libs/contextutil/contextutil.go:34–36  ·  view source on GitHub ↗
(ctx context.Context, actor *accesscontrol.Actor)

Source from the content-addressed store, hash-verified

32}
33
34func SetActor(ctx context.Context, actor *accesscontrol.Actor) context.Context {
35 return Set(ctx, actorKey, actor)
36}
37
38// GetActor returns the actor from the context. It usually represents the user who is interacting with the system.
39func GetActor(ctx context.Context) (*accesscontrol.Actor, error) {

Callers 2

Calls 1

SetFunction · 0.85

Tested by

no test coverage detected