Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application struct {
// contains filtered or unexported fields
}
Application is a wrapper defining the router, the client layer, and other elements needed to interact with the storage and serve it.
func MakeServer ¶
func MakeServer( settings *dsl.Settings, setupValidator func(*validator.Validate), setup func(*mongo.Client, *dsl.Settings), ) (app *Application, err error)
MakeServer is used to create a server. The connection is created and established, but the server is not run immediately.
func (*Application) Run ¶
func (application *Application) Run(addr string) error
Run runs the actual web server.
type CreateOneFunc ¶
CreateOneFunc stands for a function that creates one element.
type DeleteOneFunc ¶
DeleteOneFunc stands for a function that deletes an element.
type GetManyFunc ¶
GetManyFunc stands for a function that gets many documents.
type GetOneFunc ¶
GetOneFunc stands for a function that gets one element.
type Panicked ¶
type Panicked struct {
With any
}
Panicked is a class that wraps a panicked value into an error.
type ReplaceOneFunc ¶
ReplaceOneFunc stands for a function that replaces a document.
type SimulatedUpdateFunc ¶
SimulatedUpdateFunc is a function that interacts with a collection and performs a preview of an in-collection update later.