database

package
v0.0.0-...-f5bbbf4 Latest Latest
Warning

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

Go to latest
Published: May 2, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Alias

type Alias interface {
	// Insert inserts an alias in the registry
	Insert(ctx context.Context, alias *entities.Alias) (*entities.Alias, error)
	// FindOne gets an alias from the registry
	FindOne(ctx context.Context, registry, key, tenant string) (*entities.Alias, error)
	// Update updates an alias in the registry
	Update(ctx context.Context, alias *entities.Alias) (*entities.Alias, error)
	// Delete deletes an alias from the registry
	Delete(ctx context.Context, registry, key string) error
}

type Registry

type Registry interface {
	// Insert inserts a new alias registry
	Insert(ctx context.Context, registry *entities.AliasRegistry) (*entities.AliasRegistry, error)
	// FindOne gets an alias registry
	FindOne(ctx context.Context, name, tenant string) (*entities.AliasRegistry, error)
	// Delete deletes an alias registry
	Delete(ctx context.Context, name, tenant string) error
}

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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