sourcemaps

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2026 License: GPL-3.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SourceMapsFolder   = "sourcemaps"
	SourceMapsReversed = "reversed"
)
View Source
const (
	TopicSourcemapsReversedSourcemapSaved = "sourcemaps.reversed_sourcemap_saved"
)

Variables

This section is empty.

Functions

func NewSourceMaps

func NewSourceMaps(concurrency int) *sourceMapsModule

func SaveReversedSourcemap

func SaveReversedSourcemap(ctx context.Context, db sqlx.QueryerContext, reversedSourcemap *ReversedSourcemap) (int64, error)

func SaveSourcemap

func SaveSourcemap(ctx context.Context, db sqlx.QueryerContext, sourcemap *Sourcemap) (int64, error)

Types

type EventSourcemapsReversedSourcemapSaved

type EventSourcemapsReversedSourcemapSaved struct {
	ReversedSourcemapID int64 `json:"reversed_sourcemap_id"`
}

type ReversedSourcemap

type ReversedSourcemap struct {
	ID          int64     `db:"id"`
	SourcemapID int64     `db:"sourcemap_id"`
	Path        string    `db:"path"`
	CreatedAt   time.Time `db:"created_at"`
	UpdatedAt   time.Time `db:"updated_at"`
}

type Sourcemap

type Sourcemap struct {
	ID        int64     `db:"id"`
	AssetID   int64     `db:"asset_id"`
	URL       string    `db:"url"`
	Path      string    `db:"path"`
	Hash      string    `db:"hash"`
	Getter    string    `db:"getter"`
	CreatedAt time.Time `db:"created_at"`
	UpdatedAt time.Time `db:"updated_at"`
}

Jump to

Keyboard shortcuts

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