locations

package
v0.0.0-...-c0093cc Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LocationPin

type LocationPin struct {
	ID             int
	SearchableName string
	LocationLabel  string
	MapLocation    string
	Category       string
	ConventionID   int
}

type Matcher

type Matcher struct {
	// contains filtered or unexported fields
}

func NewMatcher

func NewMatcher() *Matcher

func (*Matcher) BuildIndex

func (m *Matcher) BuildIndex(pins []*LocationPin)

func (*Matcher) LoadFromDB

func (m *Matcher) LoadFromDB(ctx context.Context, db *sql.DB) error

LoadFromDB loads location pins from database table public.gencon_locations

func (*Matcher) LoadFromReader

func (m *Matcher) LoadFromReader(r io.Reader) error

LoadFromReader loads location pins from any io.Reader containing CSV data

func (*Matcher) MatchLocation

func (m *Matcher) MatchLocation(location, roomName, tableNumber string) string

MatchLocation attempts to find a matching map link for an event's location/room/table.

func (*Matcher) PinCount

func (m *Matcher) PinCount() int

Jump to

Keyboard shortcuts

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