How technovaid/alfresco-client works
This Go service exposes a small HTTP façade over Alfresco Content Services: callers browse sites and blogs or perform path-based file CRUD, and receive JSON or file content. The router dispatches requests to handlers; those handlers own calls to the Alfresco client, which performs REST requests and path/node operations. Blog detail responses also pass HTML through a cleaner. The README documents all endpoint capabilities; the sampled source supports the wiring shown here, while omitted client sections limit finer-grained details.
Main entry points: main.go HTTP server and routes · file_handlers.go File path handlers · handlers.go Site and blog handlers · api_client.go Alfresco REST client
Components 13
HTTP API
- HTTP server and routes
alfresco-client/main.go - Health endpoint
alfresco-client/main.go - JSON responses
alfresco-client/http_json.go - Runtime configuration
alfresco-client/config.go
Site Browsing
- Site and blog handlers
alfresco-client/handlers.go - HTML cleanup
alfresco-client/html_cleaner.go
File Management
- File path handlers
alfresco-client/file_handlers.go - Upload parsing
alfresco-client/file_handlers.go
Alfresco Access
- Alfresco REST client
alfresco-client/api_client.go - API data types
alfresco-client/api_types.go - Not-found detection
alfresco-client/errors.go
Other components
- API caller
- Alfresco Content Services
Connections 15
- API caller → HTTP server and routes: sends requests
- HTTP server and routes → Runtime configuration: loads settings
- HTTP server and routes → Health endpoint: routes health
- HTTP server and routes → Site and blog handlers: dispatches browsing
- HTTP server and routes → File path handlers: dispatches file requests
- Health endpoint → JSON responses: writes JSON
- Site and blog handlers → Alfresco REST client: requests site and node data
- Site and blog handlers → HTML cleanup: cleans blog content
- Site and blog handlers → JSON responses: writes JSON
- File path handlers → Upload parsing: parses uploads
- File path handlers → Alfresco REST client: resolves and changes files
- File path handlers → Not-found detection: checks not found
- File path handlers → JSON responses: writes JSON errors
- Alfresco REST client → Alfresco Content Services: calls public REST API
- Alfresco REST client → API data types: decodes responses