sharedHelper

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2026 License: EPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const AuthorizationHeader string = "Authorization"
View Source
const ServiceUnavailableError = "ServiceUnavailable"

Variables

View Source
var (
	ErrMissingAuthorizationHeader error = errors.New(
		"MissingAuthorizationHeader",
	)
	ErrAuthorizationHeaderMissingBearerPrefix error = errors.New(
		"AuthorizationHeaderMissingBearerPrefix",
	)
)

Functions

This section is empty.

Types

type AuthenticationHelper added in v0.3.1

type AuthenticationHelper struct{}

func (AuthenticationHelper) ExtractAccessToken added in v0.3.1

func (AuthenticationHelper) ExtractAccessToken(
	echoContext echo.Context,
) (accessToken tkValueObject.AccessTokenValue, err error)

func (AuthenticationHelper) ExtractIpAddress added in v0.3.1

func (AuthenticationHelper) ExtractIpAddress(
	echoContext echo.Context,
) (tkValueObject.IpAddress, error)

func (AuthenticationHelper) ReadAccessTokenAccountId added in v0.3.1

func (AuthenticationHelper) ReadAccessTokenAccountId(
	authQueryRepo repository.AuthQueryRepo,
	accessToken tkValueObject.AccessTokenValue,
	userIpAddress tkValueObject.IpAddress,
) (accountId tkValueObject.AccountId, err error)

type ServiceAvailabilityInspector

type ServiceAvailabilityInspector struct {
	// contains filtered or unexported fields
}

func NewServiceAvailabilityInspector

func NewServiceAvailabilityInspector(
	persistentDbSvc *internalDbInfra.PersistentDatabaseService,
) *ServiceAvailabilityInspector

func (*ServiceAvailabilityInspector) IsAvailable

func (inspector *ServiceAvailabilityInspector) IsAvailable(
	serviceName valueObject.ServiceName,
) bool

Jump to

Keyboard shortcuts

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