mirror of
https://github.com/FlipsideCrypto/go-data-bridge-client.git
synced 2026-02-06 18:56:44 +00:00
496 B
496 B
go-data-bridge-client
Go client for accessing Data Bridge
https://data-bridge-docs.flipsidecrypto.com/#section/Introduction
Usage
Initialization
config := Config{APIKey: "api-key", TopicSlug: "my-topic-slug", ConsumerID: "consumer-id"}
client, err := NewClient(config)
Get Next Record
record, err := client.GetNextRecord()
Mark Record Completed
err := client.CompleteRecord(record)
Mark Record Failed
err := client.FailRecord(record)