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.
Click to show internal directories.
Click to hide internal directories.