eventsource

package
v1.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 29, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Firehose

type Firehose struct {
	// contains filtered or unexported fields
}

func NewFirehose

func NewFirehose(tokenClient TokenClient, config *FirehoseConfig) *Firehose

func (*Firehose) Close

func (f *Firehose) Close() error

func (*Firehose) Open

func (f *Firehose) Open() error

func (*Firehose) Read

func (f *Firehose) Read() (<-chan *events.Envelope, <-chan error)

func (*Firehose) RefreshAuthToken

func (f *Firehose) RefreshAuthToken() (string, error)

type FirehoseConfig

type FirehoseConfig struct {
	KeepAlive      time.Duration
	SkipSSL        bool
	Endpoint       string
	SubscriptionID string
}

type Source

type Source interface {
	Open() error
	Close() error
	Read() (<-chan *events.Envelope, <-chan error)
}

type TokenClient

type TokenClient interface {
	GetToken() (string, error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL