{"id":22105046,"url":"https://github.com/tilotech/tilores-plugin-api","last_synced_at":"2025-07-25T02:31:43.393Z","repository":{"id":57638442,"uuid":"430672307","full_name":"tilotech/tilores-plugin-api","owner":"tilotech","description":null,"archived":false,"fork":false,"pushed_at":"2025-07-04T12:00:31.000Z","size":3859,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-04T13:03:22.036Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tilotech.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-11-22T11:04:58.000Z","updated_at":"2025-07-04T11:55:17.000Z","dependencies_parsed_at":"2025-07-04T13:13:56.590Z","dependency_job_id":"44cedcc0-f51a-47b5-a676-4fce07aa7bc8","html_url":"https://github.com/tilotech/tilores-plugin-api","commit_stats":null,"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"purl":"pkg:github/tilotech/tilores-plugin-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tilotech%2Ftilores-plugin-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tilotech%2Ftilores-plugin-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tilotech%2Ftilores-plugin-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tilotech%2Ftilores-plugin-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tilotech","download_url":"https://codeload.github.com/tilotech/tilores-plugin-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tilotech%2Ftilores-plugin-api/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266944273,"owners_count":24010485,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-25T02:00:09.625Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-01T06:37:44.726Z","updated_at":"2025-07-25T02:31:43.048Z","avatar_url":"https://github.com/tilotech.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TiloRes Plugin API\n\nThis project defines all the plugin APIs that can be implemented to customize\nTiloRes.\n\n## How does it work?\n\nThe plugin mechanism of TiloRes is based on\n[Tilos go-plugin](https://github.com/tilotech/go-plugin) library.\n\nThe biggest advantages compared to the\n[standard go plugin mechanism](https://pkg.go.dev/plugin) is, that the plugin\nprovider and plugin consumer can be compiled independently from each other (with\ndiverging go versions) - a main requirement, because the plugins may be\ndeveloped from the customers while the consumers are mostly developed by us.\n\nComparing to other plugin libraries, this one also works in serverless\nenvironments.\n\n## How to implement a plugin provider?\n\nEach sub package provides a single interface that needs to be implemented. After\nyou created your implementation all you need to do is create an executable\nout of it, typically done by implementing the `main` function in a similar way:\n\n*example using the `dispatcher` interface*\n```go\npackage main\n\nimport (\n\t\"github.com/tilotech/go-plugin\"\n\t\"github.com/tilotech/tilores-plugin-api/dispatcher\"\n)\n\nfunc main() {\n\terr := plugin.ListenAndServe(api.Provide(\u0026MyDispatcherImpl))\n\tif err != nil {\n\t\tpanic(err)\n\t}\n}\n```\n\n## Where is it used?\n\nThe following list is intended to give an overview about plugin providers and\nplugin consumers for each interface.\n\n### [dispatcher](https://pkg.go.dev/github.com/tilotech/tilores-plugin-api/dispatcher#Dispatcher):\n\nKnown Providers:\n* TiloRes Core Dispatcher - proprietary default implementation\n* [Fake Dispatcher](https://github.com/tilotech/tilores-plugin-fake-dispatcher) -\n  a dispatcher that fakes a TiloRes Core implementation for local API testing\n\nKnown Consumers:\n* Customer projects generated using [TiloRes CLI](https://github.com/tilotech/tilores-cli)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftilotech%2Ftilores-plugin-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftilotech%2Ftilores-plugin-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftilotech%2Ftilores-plugin-api/lists"}