Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Config struct { ListenAddress string // Defaults to :8080 ConnectionString string // For database connections Prefix string // URL prefix, e.g. "/api". Debug bool // Enables trace-debugging }
Config covers global configuration, and if need be it will provide mechanisms for local overrides (similar to Skogul).
Functions ¶
func ParseConfig ¶
ParseConfig reads a file and parses it as JSON, assuming it will be a valid configuration file.
Types ¶
type Deleter ¶
Deleter should delete the object identified by the element. It should be idempotent, in that it should be safe to call it on already-deleted items.
type Error ¶
Error is used to combine a text-based error with a HTTP error code.
type Getter ¶
Getter implements Get method, which should fetch the object represented by the element path.
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
test
command
|
|
|
Package db integrates with generic databases, so far it doesn't do much, but it's supposed to do more.
|
Package db integrates with generic databases, so far it doesn't do much, but it's supposed to do more. |
|
Package helper provides various minor utility-functions used throughout the gondul api.
|
Package helper provides various minor utility-functions used throughout the gondul api. |
|
Package objects implements a number of objects.
|
Package objects implements a number of objects. |
|
Package receiver is scaffolding around net/http that facilitates a RESTful HTTP API with certain patterns implicitly enforced: - When working on the same urls, all Methods should use the exact same data structures.
|
Package receiver is scaffolding around net/http that facilitates a RESTful HTTP API with certain patterns implicitly enforced: - When working on the same urls, all Methods should use the exact same data structures. |
Click to show internal directories.
Click to hide internal directories.