package
1.0.0
Repository: https://github.com/cloudwan/gohan.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
Package mock_middleware is a generated GoMock package.
No description provided by the author

# Functions

GetSchema returns the schema filtered and trimmed for a specific user or nil when the user shouldn't see it at all.
MapNamespacesRoutes maps routes for all namespaces.
MapRouteBySchema setup api route by schema.
MapRouteBySchemas setup route for all loaded schema.
NewServer returns new GohanAPIServer.
NewStateWatcher creates a new instance of StateWatcher.
NewStateWatcherFromServer is a constructor for StateWatcher.
NewSyncWatcher creates a new instance of syncWatcher.
NewSyncWatcherFromServer creates a new instance of syncWatcher from server.
NewSyncWriter creates a new instance of SyncWriter.
NewSyncWriterFromServer is a helper method for test.
Resync performs resync.
RunServer runs gohan api server.

# Constants

MonitoringUpdateEventName used in etcd path.
StateUpdateEventName used in etcd path.
SyncWatchRevisionPrefix.

# Structs

DbSyncWrapper wraps db.DB so it logs events in database on every transaction.
Server is a struct for GohanAPIServer.
StateWatcher handles Gohan's state update events from the sync layer.
SyncWatcher runs extensions when it detects a change on the sync.
SyncWriter copies data from the RDBMS to the sync layer.