execution_context

package
v0.0.28 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2022 License: MIT Imports: 11 Imported by: 17

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	Configuration       *configuration.ConfigurationService
	Services            *service_provider.ServiceProvider
	Caches              *cache.CacheService
	TokenCache          *jwt_token_cache.JwtTokenCacheProvider
	Authorization       *authorization_context.AuthorizationContext
	UserDatabaseAdapter interfaces.UserContextAdapter
	CorrelationId       string
	Environment         string
	IsDevelopment       bool
	Debug               bool
	Init                func() error
}

Context entity

func Get

func Get() *Context

func InitNewContext

func InitNewContext(init func() error) (*Context, error)

func New

func New() (*Context, error)

func (*Context) Refresh

func (c *Context) Refresh() *Context

func (*Context) SetCorrelationId

func (c *Context) SetCorrelationId(correlationId string) *Context

func (*Context) WithAuthorization

func (c *Context) WithAuthorization(options authorization_context.AuthorizationOptions) *Context

func (*Context) WithDefaultAuthorization

func (c *Context) WithDefaultAuthorization() *Context

Jump to

Keyboard shortcuts

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