route

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package route handles the logic of a route.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository interface {
	GenerateRoute(ctx context.Context, userAddress string) (route string, port int64, err error)
	GetByUserAddress(ctx context.Context, userAddress string) (database.Route, error)
	Get(ctx context.Context, route string) (database.Route, error)
	Count(ctx context.Context) (int64, error)
}

Repository defines the route methods.

func NewRepository

func NewRepository(db *sql.DB) Repository

NewRepository wraps around a SQL database to execute the route methods.

Jump to

Keyboard shortcuts

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