postgres

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: 7 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 struct {
	// contains filtered or unexported fields
}

func NewAlias

func NewAlias(pgClient postgres.Client) *Alias

func (*Alias) Delete

func (r *Alias) Delete(ctx context.Context, registry, key string) error

func (*Alias) FindOne

func (r *Alias) FindOne(ctx context.Context, registry, key, tenant string) (*entities.Alias, error)

func (*Alias) Insert

func (r *Alias) Insert(ctx context.Context, alias *entities.Alias) (*entities.Alias, error)

func (*Alias) Update

func (r *Alias) Update(ctx context.Context, alias *entities.Alias) (*entities.Alias, error)

type Registry

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

func NewRegistry

func NewRegistry(pgClient postgres.Client) *Registry

func (*Registry) Delete

func (r *Registry) Delete(ctx context.Context, name, tenant string) error

func (*Registry) FindOne

func (r *Registry) FindOne(ctx context.Context, name, tenant string) (*entities.AliasRegistry, error)

func (*Registry) Insert

func (r *Registry) Insert(ctx context.Context, registry *entities.AliasRegistry) (*entities.AliasRegistry, error)

Jump to

Keyboard shortcuts

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