Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type ResourceRepository ¶
type ResourceRepository interface { Save(context.Context, *model.Resource) (*model.Resource, error) Update(context.Context, *model.Resource, uuid.UUID) (*model.Resource, error) Delete(context.Context, uuid.UUID) (*model.Resource, error) FindByID(context.Context, uuid.UUID) (*model.Resource, error) FindByReporterResourceId(context.Context, model.ReporterResourceId) (*model.Resource, error) ListAll(context.Context) ([]*model.Resource, error) }
type Usecase ¶
type Usecase struct { Authz authzapi.Authorizer Eventer eventingapi.Manager Namespace string Server server.Server DisablePersistence bool // contains filtered or unexported fields }
func New ¶
func New(repository ResourceRepository, authz authzapi.Authorizer, eventer eventingapi.Manager, namespace string, logger log.Logger, disablePersistence bool) *Usecase
Click to show internal directories.
Click to hide internal directories.