Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRandomness ¶
GetRandomness returns numBytes bytes of randomness, expressed as a base64-encoded string.
func InMemCache ¶
InMemCache returns a new cache object that the Eve-Central interface will use to cache returned results.
Types ¶
type Sessionizer ¶
type Sessionizer interface { // GetSession returns the client's session, creating a new one if necessary. GetSession(c *web.C, w http.ResponseWriter, r *http.Request) *db.Session }
Sessionizer is an object that provides a client's session.
func GetSessionizer ¶
func GetSessionizer(cookieDomain, cookiePath string, isProduction bool, db db.LocalDB) Sessionizer
GetSessionizer returns a Sessionizer to be passed to handlers.
type ThreadPool ¶
type ThreadPool interface { // Submit takes the job passed as input and schedules it for execution on an // available goroutine. Submit(func()) // Quit terminates the workers and then the threadpool. Quit() }
ThreadPool distributes jobs to workers.
Click to show internal directories.
Click to hide internal directories.