{"modulePath":"github.com/QuantProcessing/exchanges","version":"v1.0.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package bus\n\n## Types\n\n```go\ntype Bus struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc New() *Bus\n```\n\n```go\nfunc (b *Bus) Publish(ctx context.Context, topic string, message any) error\n```\n\n```go\nfunc (b *Bus) Subscribe(topic string, buffer int) Subscription\n```\n\n```go\ntype Envelope struct {\n\tTopic     string\n\tMessage   any\n\tTimestamp time.Time\n}\n```\n\n```go\ntype Subscription interface {\n\tC() \u003c-chan Envelope\n\tClose() error\n}\n```\n\n","path":"github.com/QuantProcessing/exchanges/bus","name":"bus","synopsis":"","isRedistributable":true}
