{"id":22787368,"url":"https://github.com/aserto-dev/service-host","last_synced_at":"2026-01-30T20:32:29.611Z","repository":{"id":176982220,"uuid":"659797922","full_name":"aserto-dev/service-host","owner":"aserto-dev","description":"Code for creating and managing services ","archived":false,"fork":false,"pushed_at":"2024-11-07T19:56:36.000Z","size":80,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-15T23:52:31.567Z","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/aserto-dev.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":"2023-06-28T15:23:27.000Z","updated_at":"2024-11-05T00:00:18.000Z","dependencies_parsed_at":"2023-10-16T18:49:36.289Z","dependency_job_id":"98195e3d-85c2-4405-8f27-8889b5cfc631","html_url":"https://github.com/aserto-dev/service-host","commit_stats":null,"previous_names":["aserto-dev/service-host"],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/aserto-dev/service-host","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aserto-dev%2Fservice-host","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aserto-dev%2Fservice-host/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aserto-dev%2Fservice-host/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aserto-dev%2Fservice-host/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aserto-dev","download_url":"https://codeload.github.com/aserto-dev/service-host/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aserto-dev%2Fservice-host/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28918451,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-30T20:25:28.696Z","status":"ssl_error","status_checked_at":"2026-01-30T20:25:13.426Z","response_time":66,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-12T00:54:52.891Z","updated_at":"2026-01-30T20:32:29.595Z","avatar_url":"https://github.com/aserto-dev.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Service-host package\n\nThis is a very basic package that allows users to create and manage GRPC and REST services. \n\nThe service factory allows creating a service instance based on the API configuration. \nThe service manager allows controlling multiple services and provides basic dependency management.\n\nExample of a very basic eds reader service creation and start:\n```\n...\nedgeAPI  := builder.API{}\nedgeAPI.GRPC.ListenAddress  =  \"localhost:8080\"\nedgeAPI.Gateway.ListenAddress  =  \"localhost:8081\"\n\nedgeDir, err  := eds.New(\u0026directory.Config{DBPath: \"/tmp/my.db\", Seed: true}, \u0026logger)\nif err !=  nil {\n  log.Fatal(err)\n}\n\nedgeReader, err  := factoryInstance.CreateService(\u0026edgeAPI, opts, func(server *grpc.Server) {\nreader.RegisterReaderServer(server, edgeDir)\n}, func(ctx context.Context, mux *runtime.ServeMux, grpcEndpoint string, opts []grpc.DialOption) error {\nreturn reader.RegisterReaderHandlerFromEndpoint(ctx, mux, grpcEndpoint, opts)\n}, true)\n\nif err !=  nil {\nlog.Fatal(err)\n}\nmanagerInstance.AddGRPCServer(edgeReader)\nmanagerInstance.StartServers(ctx)\n...\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faserto-dev%2Fservice-host","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faserto-dev%2Fservice-host","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faserto-dev%2Fservice-host/lists"}