Documentation ¶
Index ¶
- func HandleAddEventingRule(adminMan *admin.Manager, syncMan *syncman.Manager) http.HandlerFunc
- func HandleAddService(adminMan *admin.Manager, syncMan *syncman.Manager) http.HandlerFunc
- func HandleAdminLogin(adminMan *admin.Manager, syncMan *syncman.Manager) http.HandlerFunc
- func HandleCollectionRules(adminMan *admin.Manager, syncman *syncman.Manager) http.HandlerFunc
- func HandleCreateFile(auth *auth.Module, fileStore *filestore.Module) http.HandlerFunc
- func HandleCreateProject(adminMan *admin.Manager, syncman *syncman.Manager) http.HandlerFunc
- func HandleCrudAggregate(auth *auth.Module, crud *crud.Module) http.HandlerFunc
- func HandleCrudBatch(auth *auth.Module, crud *crud.Module, realtime *realtime.Module) http.HandlerFunc
- func HandleCrudCreate(auth *auth.Module, crud *crud.Module, realtime *realtime.Module) http.HandlerFunc
- func HandleCrudDelete(auth *auth.Module, crud *crud.Module, realtime *realtime.Module) http.HandlerFunc
- func HandleCrudRead(auth *auth.Module, crud *crud.Module) http.HandlerFunc
- func HandleCrudUpdate(auth *auth.Module, crud *crud.Module, realtime *realtime.Module) http.HandlerFunc
- func HandleDatabaseConnection(adminMan *admin.Manager, crud *crud.Module, syncman *syncman.Manager) http.HandlerFunc
- func HandleDelete(auth *auth.Module, fileStore *filestore.Module) http.HandlerFunc
- func HandleDeleteCollection(adminMan *admin.Manager, crud *crud.Module, syncman *syncman.Manager) http.HandlerFunc
- func HandleDeleteEventingRule(adminMan *admin.Manager, syncMan *syncman.Manager) http.HandlerFunc
- func HandleDeleteFileRule(adminMan *admin.Manager, syncMan *syncman.Manager) http.HandlerFunc
- func HandleDeleteProjectConfig(adminMan *admin.Manager, syncMan *syncman.Manager, configPath string) http.HandlerFunc
- func HandleDeleteService(adminMan *admin.Manager, syncMan *syncman.Manager) http.HandlerFunc
- func HandleEmailEditProfile(userManagement *userman.Module) http.HandlerFunc
- func HandleEmailSignIn(userManagement *userman.Module) http.HandlerFunc
- func HandleEmailSignUp(userManagement *userman.Module) http.HandlerFunc
- func HandleFunctionCall(functions *functions.Module, auth *auth.Module) http.HandlerFunc
- func HandleGetCollectionSchemas(adminMan *admin.Manager, schema *schema.Schema) http.HandlerFunc
- func HandleGetCollections(adminMan *admin.Manager, crud *crud.Module, syncMan *syncman.Manager) http.HandlerFunc
- func HandleGetConnectionState(adminMan *admin.Manager, crud *crud.Module) http.HandlerFunc
- func HandleGetFileState(adminMan *admin.Manager, syncMan *syncman.Manager) http.HandlerFunc
- func HandleGlobalConfig(adminMan *admin.Manager, syncMan *syncman.Manager) http.HandlerFunc
- func HandleGraphQLRequest(graphql *graphql.Module) http.HandlerFunc
- func HandleLoadEnv(adminMan *admin.Manager) http.HandlerFunc
- func HandleLoadProjects(adminMan *admin.Manager, syncMan *syncman.Manager, configPath string) http.HandlerFunc
- func HandleMetricMiddleWare(next http.Handler, metrics *metrics.Module) http.Handler
- func HandleMissionControl(staticPath string) http.HandlerFunc
- func HandleModifyAllSchema(adminMan *admin.Manager, schemaArg *schema.Schema, syncman *syncman.Manager) http.HandlerFunc
- func HandleModifySchema(adminMan *admin.Manager, schemaArg *schema.Schema, syncman *syncman.Manager) http.HandlerFunc
- func HandleProcessEvent(adminMan *admin.Manager, eventing *eventing.Module) http.HandlerFunc
- func HandleProfile(userManagement *userman.Module) http.HandlerFunc
- func HandleProfiles(userManagement *userman.Module) http.HandlerFunc
- func HandleQueueEvent(adminMan *admin.Manager, eventing *eventing.Module) http.HandlerFunc
- func HandleRead(auth *auth.Module, fileStore *filestore.Module) http.HandlerFunc
- func HandleRealtimeEvent(auth *auth.Module, realtime *realtime.Module) http.HandlerFunc
- func HandleRealtimeProcessRequest(auth *auth.Module, realtime *realtime.Module) http.HandlerFunc
- func HandleReloadSchema(adminMan *admin.Manager, schemaArg *schema.Schema, syncman *syncman.Manager) http.HandlerFunc
- func HandleSchemaInspection(adminMan *admin.Manager, schemaArg *schema.Schema, syncman *syncman.Manager) http.HandlerFunc
- func HandleSetEventingConfig(adminMan *admin.Manager, syncMan *syncman.Manager) http.HandlerFunc
- func HandleSetFileRule(adminMan *admin.Manager, syncMan *syncman.Manager) http.HandlerFunc
- func HandleSetFileStore(adminMan *admin.Manager, syncMan *syncman.Manager) http.HandlerFunc
- func HandleStoreProjectConfig(adminMan *admin.Manager, syncMan *syncman.Manager, configPath string) http.HandlerFunc
- func HandleUserManagement(adminMan *admin.Manager, syncMan *syncman.Manager) http.HandlerFunc
- type ReaderCounter
- type ResponseWriterCounter
- func (counter *ResponseWriterCounter) Count() uint64
- func (counter *ResponseWriterCounter) Header() http.Header
- func (counter *ResponseWriterCounter) Hijack() (net.Conn, *bufio.ReadWriter, error)
- func (counter *ResponseWriterCounter) Started() time.Time
- func (counter *ResponseWriterCounter) Write(buf []byte) (int, error)
- func (counter *ResponseWriterCounter) WriteHeader(statusCode int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleAddEventingRule ¶
HandleAddEventingRule is an endpoint handler which adds a rule to eventing
func HandleAddService ¶
HandleAddService is an endpoint handler which deletes a table in specified database
func HandleAdminLogin ¶
HandleAdminLogin creates the admin login endpoint
func HandleCollectionRules ¶
HandleCollectionRules is an endpoint handler which update database collection rules in config & creates collection if it doesn't exist
func HandleCreateFile ¶
HandleCreateFile creates the create file or directory endpoint
func HandleCreateProject ¶
HandleCreateProject is an endpoint handler which adds a project configuration in config
func HandleCrudAggregate ¶
HandleCrudAggregate creates the aggregate operation endpoint
func HandleCrudBatch ¶
func HandleCrudBatch(auth *auth.Module, crud *crud.Module, realtime *realtime.Module) http.HandlerFunc
HandleCrudBatch creates the batch operation endpoint
func HandleCrudCreate ¶
func HandleCrudCreate(auth *auth.Module, crud *crud.Module, realtime *realtime.Module) http.HandlerFunc
HandleCrudCreate creates the create operation endpoint
func HandleCrudDelete ¶
func HandleCrudDelete(auth *auth.Module, crud *crud.Module, realtime *realtime.Module) http.HandlerFunc
HandleCrudDelete creates the delete operation endpoint
func HandleCrudRead ¶
HandleCrudRead creates the read operation endpoint
func HandleCrudUpdate ¶
func HandleCrudUpdate(auth *auth.Module, crud *crud.Module, realtime *realtime.Module) http.HandlerFunc
HandleCrudUpdate creates the update operation endpoint
func HandleDatabaseConnection ¶
func HandleDatabaseConnection(adminMan *admin.Manager, crud *crud.Module, syncman *syncman.Manager) http.HandlerFunc
HandleDatabaseConnection is an endpoint handler which updates database config & connects to database
func HandleDelete ¶
HandleDelete creates read file and list directory endpoint
func HandleDeleteCollection ¶
func HandleDeleteCollection(adminMan *admin.Manager, crud *crud.Module, syncman *syncman.Manager) http.HandlerFunc
HandleDeleteCollection is an endpoint handler which deletes a table in specified database & removes it from config
func HandleDeleteEventingRule ¶
HandleDeleteEventingRule is an endpoint handler which deletes a rule in eventing
func HandleDeleteFileRule ¶
HandleDeleteFileRule deletes file rule
func HandleDeleteProjectConfig ¶
func HandleDeleteProjectConfig(adminMan *admin.Manager, syncMan *syncman.Manager, configPath string) http.HandlerFunc
HandleDeleteProjectConfig returns the handler to delete the config of a project via a REST endpoint
func HandleDeleteService ¶
HandleDeleteService is an endpoint handler which deletes a table in specified database
func HandleEmailEditProfile ¶
func HandleEmailEditProfile(userManagement *userman.Module) http.HandlerFunc
HandleEmailEditProfile returns the handler for edit profile
func HandleEmailSignIn ¶
func HandleEmailSignIn(userManagement *userman.Module) http.HandlerFunc
HandleEmailSignIn returns the handler for email sign in
func HandleEmailSignUp ¶
func HandleEmailSignUp(userManagement *userman.Module) http.HandlerFunc
HandleEmailSignUp returns the handler for email sign up
func HandleFunctionCall ¶
HandleRealtimeEvent creates a functions request endpoint
func HandleGetCollectionSchemas ¶
HandleGetCollectionSchemas is an endpoint handler which return schema for all the collection in the config.crud
func HandleGetCollections ¶
func HandleGetCollections(adminMan *admin.Manager, crud *crud.Module, syncMan *syncman.Manager) http.HandlerFunc
HandleGetCollections is an endpoint handler which return all the collection(table) names for specified data base
func HandleGetConnectionState ¶
HandleGetConnectionState gives the status of connection state of client
func HandleGetFileState ¶
HandleGetFileState gets file state
func HandleGlobalConfig ¶
HandleGlobalConfig returns the handler to store the global config of a project via a REST endpoint
func HandleGraphQLRequest ¶
func HandleGraphQLRequest(graphql *graphql.Module) http.HandlerFunc
HandleGraphQLRequest creates the graphql operation endpoint
func HandleLoadEnv ¶
func HandleLoadEnv(adminMan *admin.Manager) http.HandlerFunc
HandleLoadEnv returns the handler to load the projects via a REST endpoint
func HandleLoadProjects ¶
func HandleLoadProjects(adminMan *admin.Manager, syncMan *syncman.Manager, configPath string) http.HandlerFunc
HandleLoadProjects returns the handler to load the projects via a REST endpoint
func HandleMetricMiddleWare ¶
func HandleMissionControl ¶
func HandleMissionControl(staticPath string) http.HandlerFunc
HandleMissionControl hosts the static resources for mission control
func HandleModifyAllSchema ¶
func HandleModifyAllSchema(adminMan *admin.Manager, schemaArg *schema.Schema, syncman *syncman.Manager) http.HandlerFunc
HandleModifySchema is an endpoint handler which updates the existing schema & updates the config
func HandleModifySchema ¶
func HandleModifySchema(adminMan *admin.Manager, schemaArg *schema.Schema, syncman *syncman.Manager) http.HandlerFunc
HandleModifySchema is an endpoint handler which updates the existing schema & updates the config
func HandleProcessEvent ¶
HandleProcessEvent processes a transmitted event
func HandleProfile ¶
func HandleProfile(userManagement *userman.Module) http.HandlerFunc
HandleProfile returns the handler for fetching single user profile
func HandleProfiles ¶
func HandleProfiles(userManagement *userman.Module) http.HandlerFunc
HandleProfiles returns the handler for fetching all user profiles
func HandleQueueEvent ¶
HandleQueueEvent creates a queue event endpoint
func HandleRead ¶
HandleRead creates read file and list directory endpoint
func HandleRealtimeEvent ¶
HandleRealtimeEvent handles the request coming from the eventing module
func HandleReloadSchema ¶
func HandleReloadSchema(adminMan *admin.Manager, schemaArg *schema.Schema, syncman *syncman.Manager) http.HandlerFunc
HandleReloadSchema is an endpoint handler which return & sets the schemas of all collection in config
func HandleSchemaInspection ¶
func HandleSchemaInspection(adminMan *admin.Manager, schemaArg *schema.Schema, syncman *syncman.Manager) http.HandlerFunc
HandleSchemaInspection gets the schema for particular collection & update the database collection schema in config
func HandleSetEventingConfig ¶
HandleSetEventingConfig is an endpoint handler which sets col and dytype in eventing according to body
func HandleSetFileRule ¶
HandleSetFileRule sets file rule
func HandleSetFileStore ¶
HandleSetFileStore set the file storage config
func HandleStoreProjectConfig ¶
func HandleStoreProjectConfig(adminMan *admin.Manager, syncMan *syncman.Manager, configPath string) http.HandlerFunc
HandleStoreProjectConfig returns the handler to store the config of a project via a REST endpoint
func HandleUserManagement ¶
HandleUserManagement returns the handler to get the project config and validate the user via a REST endpoint
Types ¶
type ReaderCounter ¶
type ReaderCounter struct {
// contains filtered or unexported fields
}
ReaderCounter is counter for io.Reader
func NewReaderCounter ¶
func NewReaderCounter(r io.ReadCloser) *ReaderCounter
NewReaderCounter function for create new ReaderCounter
func (*ReaderCounter) Close ¶
func (counter *ReaderCounter) Close() error
func (*ReaderCounter) Count ¶
func (counter *ReaderCounter) Count() uint64
Count function return counted bytes
type ResponseWriterCounter ¶
type ResponseWriterCounter struct { http.ResponseWriter // contains filtered or unexported fields }
ResponseWriterCounter is counter for http.ResponseWriter
func NewResponseWriterCounter ¶
func NewResponseWriterCounter(rw http.ResponseWriter) *ResponseWriterCounter
NewResponseWriterCounter function create new ResponseWriterCounter
func (*ResponseWriterCounter) Count ¶
func (counter *ResponseWriterCounter) Count() uint64
Count function return counted bytes
func (*ResponseWriterCounter) Header ¶
func (counter *ResponseWriterCounter) Header() http.Header
func (*ResponseWriterCounter) Hijack ¶
func (counter *ResponseWriterCounter) Hijack() (net.Conn, *bufio.ReadWriter, error)
func (*ResponseWriterCounter) Started ¶
func (counter *ResponseWriterCounter) Started() time.Time
func (*ResponseWriterCounter) Write ¶
func (counter *ResponseWriterCounter) Write(buf []byte) (int, error)
func (*ResponseWriterCounter) WriteHeader ¶
func (counter *ResponseWriterCounter) WriteHeader(statusCode int)