Documentation ¶
Overview ¶
Package models includes the models used for the gouter configuration
Index ¶
Constants ¶
View Source
const LOG_COLLECTION = "logs"
View Source
const ROUTE_COLLECTION = "routes"
Variables ¶
This section is empty.
Functions ¶
func CreateLog ¶
Create a route from the provided route structure Returns true if the route was created successfully, or false if it already exists
func CreateRoute ¶
Create a route from the provided route structure Returns true if the route was created successfully, or false if it already exists
func DeleteRoute ¶
Delete the route from the database with the given route name Returns a true if successful or false if the route could not be found
Types ¶
type Log ¶
type Log struct { CreatedAt string From string To string ProcessingTimeSec float64 ResponseCode int }
Structure that the routes will be represented by
Click to show internal directories.
Click to hide internal directories.