sse

package
v0.0.0-...-65468f9 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SSE

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

SSE implements Source.

func New

func New(ctx context.Context, serverURL string, machineID string) (*SSE, error)

New returns a new *SEE, which implements Source.

serverURL is the scheme, host, and optionally the port of the server to send requests to as a string, for example: "https://machines.skia.org".

func NewFromClient

func NewFromClient(ctx context.Context, client *http.Client, serverURL string, machineID string) (*SSE, error)

NewFromClient returns a new *SEE, which implements Source.

func (*SSE) Start

func (s *SSE) Start(ctx context.Context) <-chan interface{}

Start implements Source.

Jump to

Keyboard shortcuts

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