Documentation ¶
Index ¶
- Constants
- type GCPPubSub
- func (g *GCPPubSub) Close(_ context.Context) error
- func (g *GCPPubSub) DisplayError(msg *records.ErrorRecord) error
- func (g *GCPPubSub) DisplayMessage(cliOpts *opts.CLIOptions, msg *records.ReadRecord) error
- func (g *GCPPubSub) Name() string
- func (g *GCPPubSub) Read(ctx context.Context, readOpts *opts.ReadOptions, ...) error
- func (g *GCPPubSub) Relay(ctx context.Context, relayOpts *opts.RelayOptions, relayCh chan interface{}, ...) error
- func (g *GCPPubSub) Test(_ context.Context) error
- func (g *GCPPubSub) Tunnel(ctx context.Context, tunnelOpts *opts.TunnelOptions, tunnelSvc tunnel.ITunnel, ...) error
- func (g *GCPPubSub) Write(ctx context.Context, writeOpts *opts.WriteOptions, ...) error
Constants ¶
View Source
const BackendName = "gcp-pubsub"
View Source
const RetryReadInterval = 5 * time.Second
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GCPPubSub ¶
type GCPPubSub struct {
// contains filtered or unexported fields
}
func (*GCPPubSub) DisplayError ¶
func (g *GCPPubSub) DisplayError(msg *records.ErrorRecord) error
DisplayError will parse an Error record and print (pretty) output to STDOUT
func (*GCPPubSub) DisplayMessage ¶
func (g *GCPPubSub) DisplayMessage(cliOpts *opts.CLIOptions, msg *records.ReadRecord) error
DisplayMessage will parse a Read record and print (pretty) output to STDOUT
func (*GCPPubSub) Read ¶
func (g *GCPPubSub) Read(ctx context.Context, readOpts *opts.ReadOptions, resultsChan chan *records.ReadRecord, errorChan chan *records.ErrorRecord) error
func (*GCPPubSub) Relay ¶
func (g *GCPPubSub) Relay(ctx context.Context, relayOpts *opts.RelayOptions, relayCh chan interface{}, errorCh chan<- *records.ErrorRecord) error
func (*GCPPubSub) Tunnel ¶ added in v1.4.0
func (g *GCPPubSub) Tunnel(ctx context.Context, tunnelOpts *opts.TunnelOptions, tunnelSvc tunnel.ITunnel, errorCh chan<- *records.ErrorRecord) error
func (*GCPPubSub) Write ¶
func (g *GCPPubSub) Write(ctx context.Context, writeOpts *opts.WriteOptions, errorCh chan<- *records.ErrorRecord, messages ...*records.WriteRecord) error
Click to show internal directories.
Click to hide internal directories.