{"id":18733283,"url":"https://github.com/autom8ter/gosub","last_synced_at":"2026-05-01T03:33:44.995Z","repository":{"id":140621233,"uuid":"181431151","full_name":"autom8ter/gosub","owner":"autom8ter","description":"grpc protobufs pubsub","archived":false,"fork":false,"pushed_at":"2019-04-15T19:18:01.000Z","size":2319,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-10T08:41:12.905Z","etag":null,"topics":["autom8ter","colemanword","golang","golang-library","grpc","pubsub"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/autom8ter.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2019-04-15T07:05:15.000Z","updated_at":"2019-04-15T19:18:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"ae96b5f8-a33e-4e05-8d40-5172c13b0008","html_url":"https://github.com/autom8ter/gosub","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/autom8ter/gosub","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/autom8ter%2Fgosub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/autom8ter%2Fgosub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/autom8ter%2Fgosub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/autom8ter%2Fgosub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/autom8ter","download_url":"https://codeload.github.com/autom8ter/gosub/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/autom8ter%2Fgosub/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32484352,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"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":["autom8ter","colemanword","golang","golang-library","grpc","pubsub"],"created_at":"2024-11-07T15:09:16.831Z","updated_at":"2026-05-01T03:33:44.971Z","avatar_url":"https://github.com/autom8ter.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gosub\n--\n    import \"github.com/autom8ter/gosub\"\n\n\n## Usage\n\n#### type GoSub\n\n```go\ntype GoSub struct {\n}\n```\n\nGoSub provides google cloud pubsub\n\n#### func  NewGoSub\n\n```go\nfunc NewGoSub(projectID string) (*GoSub, error)\n```\nNewGoSub creates a new GoSub instace for a project\n\n#### func (*GoSub) DeleteTopic\n\n```go\nfunc (g *GoSub) DeleteTopic(name string) error\n```\n\n#### func (*GoSub) GetTopic\n\n```go\nfunc (g *GoSub) GetTopic(name string) (*pubsub.Topic, error)\n```\n\n#### func (*GoSub) Publish\n\n```go\nfunc (g *GoSub) Publish(ctx context.Context, topic string, m *driver.Msg) error\n```\nPublish implements Publish\n\n#### func (*GoSub) Shutdown\n\n```go\nfunc (g *GoSub) Shutdown()\n```\nShutdown shuts down all subscribers gracefully\n\n#### func (*GoSub) Subscribe\n\n```go\nfunc (g *GoSub) Subscribe(opts driver.HandlerOptions, h driver.MsgHandler)\n```\nSubscribe implements Subscribe\n\n#### func (*GoSub) TopicConfig\n\n```go\nfunc (g *GoSub) TopicConfig(name string, ctx context.Context) (pubsub.TopicConfig, error)\n```\n\n#### func (*GoSub) TopicExists\n\n```go\nfunc (g *GoSub) TopicExists(name string) (bool, error)\n```\n\n#### func (*GoSub) TopicIAM\n\n```go\nfunc (g *GoSub) TopicIAM(name string) (*iam.Handle, error)\n```\n\n#### func (*GoSub) TopicSubscriptions\n\n```go\nfunc (g *GoSub) TopicSubscriptions(name string, ctx context.Context) (*pubsub.SubscriptionIterator, error)\n```\n\n#### func (*GoSub) UpdateTopicConfig\n\n```go\nfunc (g *GoSub) UpdateTopicConfig(name string, ctx context.Context, labels map[string]string) (pubsub.TopicConfig, error)\n```\n\n#### type MiddlewareFunctions\n\n```go\ntype MiddlewareFunctions struct {\n\tSubscriberWare SubscriberWare\n\tPublisherWare  PublisherWare\n}\n```\n\n\n#### func  NewMiddlewareFunctions\n\n```go\nfunc NewMiddlewareFunctions(subscriberWare SubscriberWare, publisherWare PublisherWare) *MiddlewareFunctions\n```\n\n#### func (MiddlewareFunctions) PublisherMsgInterceptor\n\n```go\nfunc (m MiddlewareFunctions) PublisherMsgInterceptor(serviceName string, next driver.PublishHandler) driver.PublishHandler\n```\n\n#### func (MiddlewareFunctions) SubscribeInterceptor\n\n```go\nfunc (m MiddlewareFunctions) SubscribeInterceptor(opts driver.HandlerOptions, next driver.MsgHandler) driver.MsgHandler\n```\n\n#### type PublisherWare\n\n```go\ntype PublisherWare func(serviceName string, next driver.PublishHandler) driver.PublishHandler\n```\n\n\n#### type SubscriberWare\n\n```go\ntype SubscriberWare func(opts driver.HandlerOptions, next driver.MsgHandler) driver.MsgHandler\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fautom8ter%2Fgosub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fautom8ter%2Fgosub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fautom8ter%2Fgosub/lists"}