Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App interface { Bind(url string, handler func(ctx *Context, write func(s string, args ...any) error)) ListenAndServe(addr string) error }
App represents a dyd web app.
type Context ¶
type Context struct { ReqSequence int64 Request *http.Request ResponseWriter http.ResponseWriter // contains filtered or unexported fields }
Context provides access to the state of the server/session/request/database etc. Every web request gets a new Context instance which is automatically destroyed when the serving function returns.
Context is not safe for concurrent use by multiple goroutines.
At the moment Context provides only elementary context for the proof of concept.
Click to show internal directories.
Click to hide internal directories.