Documentation
¶
Overview ¶
Package location provides the full application stack for location data. Including transport & querying.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTP ¶
type HTTP struct {
// contains filtered or unexported fields
}
The HTTP type contains HTTP request handlers that serve location data.
func NewHTTP ¶
func NewHTTP(location Repository) *HTTP
NewHTTP returns a new instance of the HTTP type that will serve location data queried from the Repository implementation.
type PostgresRepository ¶
type PostgresRepository struct {
// contains filtered or unexported fields
}
func NewPostgresRepository ¶
func NewPostgresRepository(db *sql.DB) *PostgresRepository
NewPostgresRepository returns a new instance of the PostgresRepository type that will perform queries against the provided sql.DB instance.
Click to show internal directories.
Click to hide internal directories.