infrastructure

package
v0.0.0-...-a753360 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDatabaseClient

func NewDatabaseClient(cfg config.Config) (*ent.Client, error)

NewDatabaseClient returns new ent client.

Types

type DAO

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

func NewDAO

func NewDAO(client *ent.Client) DAO

func (DAO) Get

func (dao DAO) Get(ctx context.Context, target string) (string, error)

func (DAO) Upsert

func (dao DAO) Upsert(ctx context.Context, target string, desired string) error

Directories

Path Synopsis
ent

Jump to

Keyboard shortcuts

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