domain

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EventLogIndices = []repos.IndexField{
	{
		Field: []repos.IndexKey{
			{Key: "id", Value: repos.IndexAsc},
		},
		Unique: true,
	},
	{
		Field: []repos.IndexKey{
			{Key: "who.email", Value: repos.IndexAsc},
		},
	},
	{
		Field: []repos.IndexKey{
			{Key: "who.account_id", Value: repos.IndexAsc},
		},
	},
}
View Source
var Module = fx.Module("domain",
	fx.Provide(func(eventsRepo repos.DbRepo[*EventLog]) Domain {
		return &domain{eventsRepo: eventsRepo}
	}),
)

Functions

This section is empty.

Types

type Domain

type Domain interface {
	PushEvent(ctx context.Context, el *EventLog) (*EventLog, error)
}

type EventLog

type EventLog struct {
	repos.BaseEntity     `json:",inline" bson:",inline"`
	beacon.AuditLogEvent `json:",inline" bson:",inline"`
}

Jump to

Keyboard shortcuts

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