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: 7 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 {
	Get(ctx context.Context, id string) (*entities.Application, error)
	GetRoutes(ctx context.Context, ids []string) (map[string][]routing.Route, error)
}

type Database

type Database interface {
	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) Get

func (*SqlApplication) GetRoutes

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

Jump to

Keyboard shortcuts

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