Documentation ¶
Index ¶
- func MapNamespacesRoutes(route martini.Router)
- func MapRouteBySchema(server *Server, dataStore db.DB, s *schema.Schema)
- func MapRouteBySchemas(server *Server, dataStore db.DB)
- func MonitoringUpdate(response *gohan_sync.Event, server *Server) error
- func RunServer(configFile string)
- func StateUpdate(response *gohan_sync.Event, server *Server) error
- type DbSyncWrapper
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MapNamespacesRoutes ¶
MapNamespacesRoutes maps routes for all namespaces
func MapRouteBySchema ¶
MapRouteBySchema setup api route by schema
func MapRouteBySchemas ¶
MapRouteBySchemas setup route for all loaded schema
func MonitoringUpdate ¶
func MonitoringUpdate(response *gohan_sync.Event, server *Server) error
MonitoringUpdate updates the state in the db based on the sync event
func StateUpdate ¶
func StateUpdate(response *gohan_sync.Event, server *Server) error
StateUpdate updates the state in the db based on the sync event
Types ¶
type DbSyncWrapper ¶
DbSyncWrapper wraps db.DB so it logs events in database on every transaction.
func (*DbSyncWrapper) Begin ¶
func (sw *DbSyncWrapper) Begin() (transaction.Transaction, error)
Begin wraps transaction object with sync
Source Files ¶
Click to show internal directories.
Click to hide internal directories.