adapter

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AttachAuthInfo added in v0.6.0

func AttachAuthInfo(ctx context.Context, a AuthInfo) context.Context

func AttachOperator

func AttachOperator(ctx context.Context, o *usecase.Operator) context.Context

func AttachUsecases

func AttachUsecases(ctx context.Context, u *interfaces.Container) context.Context

func AttachUser

func AttachUser(ctx context.Context, u *user.User) context.Context

func Lang

func Lang(ctx context.Context, lang *language.Tag) string

func Operator

func Operator(ctx context.Context) *usecase.Operator

func Usecases

func Usecases(ctx context.Context) *interfaces.Container

func User

func User(ctx context.Context) *user.User

Types

type AuthInfo added in v0.6.0

type AuthInfo struct {
	Token         string
	Sub           string
	Iss           string
	Name          string
	Email         string
	EmailVerified *bool
}

func GetAuthInfo added in v0.6.0

func GetAuthInfo(ctx context.Context) *AuthInfo

type ContextKey

type ContextKey string

Directories

Path Synopsis
gql

Jump to

Keyboard shortcuts

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