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 { Get(c echo.Context) error GetAcker(c echo.Context) error GetAcking(c echo.Context) error }
Handler is the interface for handling HTTP requests
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) Get(ctx context.Context, from, to string) (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.