apipurge

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2025 License: GPL-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package apipurge contains internal implementation for FeedPurge

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FeedPurge added in v0.6.0

func FeedPurge(m *apptypes.MobsqlRuntime, feedIDs []int, purgeTablesOption PurgeTablesOption) (*apptypes.FeedOpResult, error)

FeedPurge removes from the database the given feedIDs. There are two different types of tables that can be cleared as determined by the PurgeTablesOption.

If PurgeTablesOption is set to PurgeTablesOptionGTFS then only GTFS tables will be cleared. Alternatively PurgeTablesOptionComputed clears computed tables. And PurgeTablesOptionAll clears both GTFS & computed tables for the feed IDs.

Types

type PurgeTablesOption added in v0.5.0

type PurgeTablesOption int

PurgeTablesOption enumerates the options for purging used by FeedPurge

const PurgeTablesOptionAll PurgeTablesOption = 0

PurgeTablesOptionAll purges all tables

const PurgeTablesOptionComputed PurgeTablesOption = 2

PurgeTablesOptionGTFS purges user-defined computed tables

const PurgeTablesOptionGTFS PurgeTablesOption = 1

PurgeTablesOptionGTFS purges GTFS-related tables

Jump to

Keyboard shortcuts

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