Documentation ¶
Index ¶
Constants ¶
View Source
const ( // BundleReferenceTable missing godoc BundleReferenceTable string = `public.bundle_references` // APIDefIDColumn missing godoc APIDefIDColumn string = "api_def_id" // APIDefURLColumn missing godoc APIDefURLColumn string = "api_def_url" // EventDefIDColumn missing godoc EventDefIDColumn string = "event_def_id" )
Variables ¶
This section is empty.
Functions ¶
func NewRepository ¶
func NewRepository(conv BundleReferenceConverter) *repository
NewRepository missing godoc
Types ¶
type BundleReferenceConverter ¶
type BundleReferenceConverter interface { ToEntity(in model.BundleReference) Entity FromEntity(in Entity) (model.BundleReference, error) }
BundleReferenceConverter missing godoc
type BundleReferenceRepository ¶
type BundleReferenceRepository interface { Create(ctx context.Context, item *model.BundleReference) error Update(ctx context.Context, item *model.BundleReference) error DeleteByReferenceObjectID(ctx context.Context, tenant, bundleID string, objectType model.BundleReferenceObjectType, objectID string) error GetByID(ctx context.Context, objectType model.BundleReferenceObjectType, tenantID string, objectID, bundleID *string) (*model.BundleReference, error) GetBundleIDsForObject(ctx context.Context, tenantID string, objectType model.BundleReferenceObjectType, objectID *string) (ids []string, err error) ListByBundleIDs(ctx context.Context, objectType model.BundleReferenceObjectType, tenantID string, bundleIDs []string, pageSize int, cursor string) ([]*model.BundleReference, map[string]int, error) }
BundleReferenceRepository missing godoc
type BundleReferencesCollection ¶
type BundleReferencesCollection []Entity
BundleReferencesCollection missing godoc
func (BundleReferencesCollection) Len ¶
func (r BundleReferencesCollection) Len() int
Len missing godoc
type Entity ¶
type Entity struct { TenantID string `db:"tenant_id"` BundleID sql.NullString `db:"bundle_id"` APIDefID sql.NullString `db:"api_def_id"` EventDefID sql.NullString `db:"event_def_id"` APIDefaultTargetURL sql.NullString `db:"api_def_url"` }
Entity missing godoc
Click to show internal directories.
Click to hide internal directories.