ack

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: MIT Imports: 9 Imported by: 0

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 Handler

type Handler interface {
	GetAcker(c echo.Context) error
	GetAcking(c echo.Context) error
}

Handler is the interface for handling HTTP requests

func NewHandler

func NewHandler(service core.AckService) Handler

NewHandler creates a new handler

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

Jump to

Keyboard shortcuts

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