modulepackage
0.0.0-20220314163154-78546751ad11
Repository: https://github.com/jschneider98/jgoweb.git
Documentation: pkg.go.dev
# README
jgoweb
James's go web lib
New Project
mkdir <new_project>
-- copy https://github.com/jschneider98/jgotemplate into new project dir
make run
-- localhost:1718/index
-- init go module
go mod init example.com/hello
# Functions
.
Return's the caller's caller info.
.
.
.
Get account data for all DBs.
Get shard data for all DBs.
.
.
.
.
Factory Method.
Empty new update.
.
Factory Method.
.
.
Factory Method.
.
.
.
Factory Method.
Does not set db session.
Factory Method.
Factory Method.
Factory Method.
Factory Method.
Factory Method.
.
Factory Method.
.
.
Ignore "deleted" shards.
.
.
.
.
Get DB.
.
Does not alter web context..
.
ServeContent is like http.ServeContent, except it applies gzip compression if compression hasn't already been done (i.e., the "Content-Encoding" header is set).
Init config.
Init Db.
Init metrics.
.
.
.
.
.
.
.
Init session.
Empty new model.
New model with data.
.
.
.
.
.
Empty new model.
New model with data.
.
Empty new model.
Empty new model.
New model with data.
New model with data.
Empty new model.
.
New model with data.
Make a testing request (lifted/modified from gocraft/web).
Empty new model.
New model with data.
.
.
.
.
Start Health Sink.
.
Start a HTTPS server that auto updates SSL certs via ACME.
StaticMiddleware is the same as StaticMiddlewareFromDir, but accepts a path string for backwards compatibility.
StaticMiddlewareFromDir returns a middleware that serves static files from the specified http.FileSystem.
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
These aren't true mocks.
# Structs
Account.
DataValues.
No description provided by the author
.
No description provided by the author
No description provided by the author
No description provided by the author
QueueJob.
No description provided by the author
Shard.
ShardMap.
StaticOption configures how StaticMiddlewareDir handles url paths and index files for directories.
SystemDbUpdate.
.
User.
No description provided by the author
# Interfaces
No description provided by the author
GzipByter is implemented by compressed files for efficient direct access to the internal compressed bytes.
No description provided by the author
No description provided by the author
No description provided by the author
NotWorthGzipCompressing is implemented by files that were determined not to be worth gzip compressing (the file size did not decrease as a result).
.