service

package
v0.0.0-...-fac6e79 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package service application logic

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessControl

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

AccessControl access controller implementation

func NewAccessControl

func NewAccessControl(simpleGraph domain.Graph) *AccessControl

NewAccessControl constructor

func (*AccessControl) ModifyAccessControlList

func (ac *AccessControl) ModifyAccessControlList(_ context.Context, op *domain.UpdateAccessControlList) error

ModifyAccessControlList update existing access control list entry

func (*AccessControl) ServiceRegistered

ServiceRegistered add new entry to access control list

func (*AccessControl) ServiceUpdated

ServiceUpdated todo

func (*AccessControl) VerifyServiceAccess

func (ac *AccessControl) VerifyServiceAccess(_ context.Context, ace *domain.AccessControlEntry) error

VerifyServiceAccess with graph

func (*AccessControl) VerifyUserAccess

func (ac *AccessControl) VerifyUserAccess(_ context.Context, ace *domain.AccessControlEntry) error

VerifyUserAccess with graph

type Bundle

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

Bundle application global

func NewBundle

func NewBundle(logger *zap.Logger, accessControl domain.AccessController, broker pkgdomain.MessageBroker) *Bundle

NewBundle constructor

func (*Bundle) Close

func (b *Bundle) Close() error

Close external service connections

func (*Bundle) Subscribe

func (b *Bundle) Subscribe(ctx context.Context) error

Subscribe to subscriptions topics

Jump to

Keyboard shortcuts

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