db

package
v0.0.0-...-d386c04 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2024 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application interface {
	Scan(ctx context.Context, query *entities.ScanningQuery) chan *entities.ScanningResult[[]entities.Application]
	GetRoutes(ctx context.Context, ids []string) (map[string][]routing.Route, error)
}

type Database

type Database interface {
	Transaction(ctx context.Context, handler func(txctx context.Context) (interface{}, error)) (res interface{}, err error)
	Workspace() Workspace
	Application() Application
}

func New

func New(logger logging.Logger, db database.Database) Database

func NewSql

func NewSql(logger logging.Logger, db database.Database) Database

type SqlApplication

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

func (*SqlApplication) GetRoutes

func (sql *SqlApplication) GetRoutes(ctx context.Context, ids []string) (map[string][]routing.Route, error)

func (*SqlApplication) Scan

type SqlWorkspace

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

func (*SqlWorkspace) Get

func (sql *SqlWorkspace) Get(ctx context.Context, id string) (*entities.Workspace, error)

type Workspace

type Workspace interface {
	Get(ctx context.Context, id string) (*entities.Workspace, error)
}

Jump to

Keyboard shortcuts

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