context

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthTokenFromContext

func AuthTokenFromContext(ctx context.Context) (*fbauth.Token, error)

func AuthTokenFromMeta

func AuthTokenFromMeta(meta metadata.MD) (string, error)

func NamespaceFromContext

func NamespaceFromContext(ctx context.Context) (string, error)

func ProcedureFromContext

func ProcedureFromContext(ctx context.Context) (string, error)

func QualifiedWorkspaceFromContext added in v0.1.7

func QualifiedWorkspaceFromContext(ctx context.Context) (string, error)

func SubscriptionFromContext

func SubscriptionFromContext(ctx context.Context) (string, error)

func UserFromContext

func UserFromContext(ctx context.Context) (string, error)

func UserRecordFromContext added in v0.1.5

func UserRecordFromContext(ctx context.Context) (*fbauth.UserRecord, error)

func WorkspaceFromContext

func WorkspaceFromContext(ctx context.Context) (string, error)

func WorkspaceFromMeta

func WorkspaceFromMeta(meta metadata.MD) (string, error)

Types

type ContextKeyNamespace

type ContextKeyNamespace struct{}

type ContextKeyProcedure

type ContextKeyProcedure struct{}

type ContextKeyQualifiedWorkspace added in v0.1.7

type ContextKeyQualifiedWorkspace struct{}

type ContextKeySubscription

type ContextKeySubscription struct{}

type ContextKeyToken

type ContextKeyToken struct{}

type ContextKeyUser

type ContextKeyUser struct{}

type ContextKeyUserRecord added in v0.1.5

type ContextKeyUserRecord struct{}

type ContextKeyWorkspace

type ContextKeyWorkspace struct{}

Jump to

Keyboard shortcuts

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