domainlog

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2025 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateDomainLogUsecase

type CreateDomainLogUsecase struct {
	// contains filtered or unexported fields
}

func NewCreateDomainLogUsecase

func NewCreateDomainLogUsecase(store DomainLogStorage) *CreateDomainLogUsecase

func (*CreateDomainLogUsecase) Create

func (uc *CreateDomainLogUsecase) Create(domain *happydns.Domain, log *happydns.DomainLog) error

type DeleteDomainLogUsecase

type DeleteDomainLogUsecase struct {
	// contains filtered or unexported fields
}

func NewDeleteDomainLogUsecase

func NewDeleteDomainLogUsecase(store DomainLogStorage) *DeleteDomainLogUsecase

func (*DeleteDomainLogUsecase) Delete

func (uc *DeleteDomainLogUsecase) Delete(domain *happydns.Domain, log *happydns.DomainLog) error

type DomainLogStorage

type DomainLogStorage interface {
	ListAllDomainLogs() (happydns.Iterator[happydns.DomainLogWithDomainId], error)

	ListDomainLogs(domain *happydns.Domain) ([]*happydns.DomainLog, error)

	CreateDomainLog(domain *happydns.Domain, log *happydns.DomainLog) error

	UpdateDomainLog(domain *happydns.Domain, log *happydns.DomainLog) error

	DeleteDomainLog(domain *happydns.Domain, log *happydns.DomainLog) error
}

type ListDomainLogsUsecase

type ListDomainLogsUsecase struct {
	// contains filtered or unexported fields
}

func NewListDomainLogsUsecase

func NewListDomainLogsUsecase(store DomainLogStorage) *ListDomainLogsUsecase

func (*ListDomainLogsUsecase) List

func (uc *ListDomainLogsUsecase) List(domain *happydns.Domain) ([]*happydns.DomainLog, error)

type Service

type Service struct {
	CreateDomainLogUC *CreateDomainLogUsecase
	DeleteDomainLogUC *DeleteDomainLogUsecase
	ListDomainLogsUC  *ListDomainLogsUsecase
	UpdateDomainLogUC *UpdateDomainLogUsecase
}

func NewDomainLogUsecases

func NewDomainLogUsecases(
	store DomainLogStorage,
) *Service

func (*Service) AppendDomainLog

func (s *Service) AppendDomainLog(domain *happydns.Domain, entry *happydns.DomainLog) error

func (*Service) ListDomainLogs

func (s *Service) ListDomainLogs(domain *happydns.Domain) ([]*happydns.DomainLog, error)

type UpdateDomainLogUsecase

type UpdateDomainLogUsecase struct {
	// contains filtered or unexported fields
}

func NewUpdateDomainLogUsecase

func NewUpdateDomainLogUsecase(store DomainLogStorage) *UpdateDomainLogUsecase

func (*UpdateDomainLogUsecase) Update

func (uc *UpdateDomainLogUsecase) Update(domain *happydns.Domain, log *happydns.DomainLog) error

Source Files

  • create_domain_log.go
  • delete_domain_log.go
  • domain_log_storage.go
  • factory.go
  • list_domain_logs.go
  • update_domain_log.go

Jump to

Keyboard shortcuts

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