Documentation ¶
Overview ¶
ori is a set of libraries and a command providing high-level support for implementing a REST/JSON API on Google App Engine using Kami (https://godoc.org/github.com/guregu/kami), including request-scoped configuration and authentication, JWT decoding, and middleware to handle JSON content negotiation and CORS.
To install, it's as simple as:
go install github.com/the-information/ori
The ori command has on-line help. Simply type:
ori help
Directories ¶
Path | Synopsis |
---|---|
Package account provides support for creating email-keyed user accounts, checking their credentials, and safely performing changes to them in a transactionally consistent way.
|
Package account provides support for creating email-keyed user accounts, checking their credentials, and safely performing changes to them in a transactionally consistent way. |
auth
Package auth provides middleware and support for working with accounts within the context of an HTTP request, including getting accounts based on JWTs.
|
Package auth provides middleware and support for working with accounts within the context of an HTTP request, including getting accounts based on JWTs. |
Package admin provides an http.Handler for the ori command-line utility.
|
Package admin provides an http.Handler for the ori command-line utility. |
Package cache handles HTTP caching headers on responses that are cacheable.
|
Package cache handles HTTP caching headers on responses that are cacheable. |
Package cmd supports the ori command-line utility.
|
Package cmd supports the ori command-line utility. |
package config provides support for storing application-wide configuration parameters in the App Engine Datastore.
|
package config provides support for storing application-wide configuration parameters in the App Engine Datastore. |
package errors makes it easier to associate HTTP response codes with Go errors.
|
package errors makes it easier to associate HTTP response codes with Go errors. |
Package internal exports some items meant only for internal use by ori.
|
Package internal exports some items meant only for internal use by ori. |
Package query provides support for generating App Engine queries from URL query strings.
|
Package query provides support for generating App Engine queries from URL query strings. |
Package rest provides support for REST/JSON content negotiation, writing JSON to the response stream, and REST-specific error messages.
|
Package rest provides support for REST/JSON content negotiation, writing JSON to the response stream, and REST-specific error messages. |
Package shard provides sharded data types for the App Engine Datastore.
|
Package shard provides sharded data types for the App Engine Datastore. |
package slug provides support for "slug" keys, which are string IDs for Datastore keys that need to be usable as URL components.
|
package slug provides support for "slug" keys, which are string IDs for Datastore keys that need to be usable as URL components. |
Package test generates request contexts suitable for use in unit tests.
|
Package test generates request contexts suitable for use in unit tests. |
tutorial
|
|
Click to show internal directories.
Click to hide internal directories.