Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewService ¶
func NewService(repository Repository, client client.Client, entity core.EntityService, key core.KeyService, config core.Config) core.AckService
NewService creates a new entity service
Types ¶
type Repository ¶
type Repository interface { Ack(ctx context.Context, ack *core.Ack) (core.Ack, error) Unack(ctx context.Context, ack *core.Ack) (core.Ack, error) GetAcker(ctx context.Context, key string) ([]core.Ack, error) GetAcking(ctx context.Context, key string) ([]core.Ack, error) }
Repository is the interface for host repository
func NewRepository ¶
func NewRepository(db *gorm.DB) Repository
NewRepository creates a new host repository
Click to show internal directories.
Click to hide internal directories.