bundlereferences

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: 9 Imported by: 0

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 NewConverter

func NewConverter() *converter

NewConverter missing godoc

func NewRepository

func NewRepository(conv BundleReferenceConverter) *repository

NewRepository missing godoc

func NewService

func NewService(repo BundleReferenceRepository) *service

NewService 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

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

type IDs

type IDs []string

IDs missing godoc

func (IDs) Len

func (i IDs) Len() int

Len missing godoc

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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