mod_tile 0.9.1
Renders map tiles with Mapnik and serves them using Apache HTTP Server
Loading...
Searching...
No Matches
storage_backend Struct Reference

Virtual dispatch table and context handle for a pluggable tile/metatile storage backend. More...

#include <store.h>

Public Attributes

int(*) tile_read (struct storage_backend *store, const char *xmlconfig, const char *options, int x, int y, int z, char *buf, size_t sz, int *compressed, char *err_msg)
 Read a single tile's payload into buf, returning bytes read or < 0 on error.
struct stat_info(*) tile_stat (struct storage_backend *store, const char *xmlconfig, const char *options, int x, int y, int z)
 Query size, timestamps, and expiry status of a tile without reading its full payload.
int(*) metatile_write (struct storage_backend *store, const char *xmlconfig, const char *options, int x, int y, int z, const char *buf, int sz)
 Persist a serialized METATILE x METATILE archive buffer into the backend.
int(*) metatile_delete (struct storage_backend *store, const char *xmlconfig, int x, int y, int z)
 Remove the metatile containing coordinates (x, y, z) from the backend.
int(*) metatile_expire (struct storage_backend *store, const char *xmlconfig, int x, int y, int z)
 Mark the metatile containing coordinates (x, y, z) as expired.
char *(*) tile_storage_id (struct storage_backend *store, const char *xmlconfig, const char *options, int x, int y, int z, char *string)
 Format a backend-specific storage identifier string (path, object key, or URL) for logging.
int(*) close_storage (struct storage_backend *store)
 Release backend-specific resources and free the storage_backend instance.
void * storage_ctx
 Opaque pointer to backend-specific private state/configuration context.

Detailed Description

Virtual dispatch table and context handle for a pluggable tile/metatile storage backend.

Member Data Documentation

◆ close_storage

int(*) storage_backend::close_storage(struct storage_backend *store)

Release backend-specific resources and free the storage_backend instance.

◆ metatile_delete

int(*) storage_backend::metatile_delete(struct storage_backend *store, const char *xmlconfig, int x, int y, int z)

Remove the metatile containing coordinates (x, y, z) from the backend.

◆ metatile_expire

int(*) storage_backend::metatile_expire(struct storage_backend *store, const char *xmlconfig, int x, int y, int z)

Mark the metatile containing coordinates (x, y, z) as expired.

◆ metatile_write

int(*) storage_backend::metatile_write(struct storage_backend *store, const char *xmlconfig, const char *options, int x, int y, int z, const char *buf, int sz)

Persist a serialized METATILE x METATILE archive buffer into the backend.

◆ storage_ctx

void* storage_backend::storage_ctx

Opaque pointer to backend-specific private state/configuration context.

◆ tile_read

int(*) storage_backend::tile_read(struct storage_backend *store, const char *xmlconfig, const char *options, int x, int y, int z, char *buf, size_t sz, int *compressed, char *err_msg)

Read a single tile's payload into buf, returning bytes read or < 0 on error.

◆ tile_stat

struct stat_info(*) storage_backend::tile_stat(struct storage_backend *store, const char *xmlconfig, const char *options, int x, int y, int z)

Query size, timestamps, and expiry status of a tile without reading its full payload.

◆ tile_storage_id

char *(*) storage_backend::tile_storage_id(struct storage_backend *store, const char *xmlconfig, const char *options, int x, int y, int z, char *string)

Format a backend-specific storage identifier string (path, object key, or URL) for logging.


The documentation for this struct was generated from the following file: