Documentation ¶
Overview ¶
Package api contains top-level domain API, not used by any other domain.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type State ¶
type State struct {
// contains filtered or unexported fields
}
State holds general application state.
func (*State) Config ¶
func (s *State) Config() *configSchema.Configuration
Config returns server configuration.
func (*State) Storage ¶
func (s *State) Storage() storageSchema.QueryExecutor
Storage returns shared query executor (i.e. *sqlx.DB).
Directories ¶
Path | Synopsis |
---|---|
cmd
|
|
server
Package main is a script to start API server.
|
Package main is a script to start API server. |
Package commonhandlers contains unscoped API handlers
|
Package commonhandlers contains unscoped API handlers |
Package errorhandler contains handler for handler-produced errors
|
Package errorhandler contains handler for handler-produced errors |
Package middlewares provides middlewares to be used by server.
|
Package middlewares provides middlewares to be used by server. |
Click to show internal directories.
Click to hide internal directories.