tombstone

package
v0.0.0-...-0640eb1 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConverter

func NewConverter() *converter

NewConverter missing godoc

func NewRepository

func NewRepository(conv EntityConverter) *pgRepository

NewRepository missing godoc

func NewService

func NewService(tombstoneRepo TombstoneRepository, uidService UIDService) *service

NewService missing godoc

Types

type Entity

type Entity struct {
	ID            string `db:"id"`
	OrdID         string `db:"ord_id"`
	TenantID      string `db:"tenant_id"`
	ApplicationID string `db:"app_id"`
	RemovalDate   string `db:"removal_date"`
}

Entity missing godoc

type EntityConverter

type EntityConverter interface {
	ToEntity(in *model.Tombstone) *Entity
	FromEntity(entity *Entity) (*model.Tombstone, error)
}

EntityConverter missing godoc

type TombstoneRepository

type TombstoneRepository interface {
	Create(ctx context.Context, item *model.Tombstone) error
	Update(ctx context.Context, item *model.Tombstone) error
	Delete(ctx context.Context, tenant, id string) error
	Exists(ctx context.Context, tenant, id string) (bool, error)
	GetByID(ctx context.Context, tenant, id string) (*model.Tombstone, error)
	ListByApplicationID(ctx context.Context, tenantID, appID string) ([]*model.Tombstone, error)
}

TombstoneRepository missing godoc

type UIDService

type UIDService interface {
	Generate() string
}

UIDService missing godoc

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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