sse

package
v3.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CallBack

type CallBack func(v *core.Configuration)

CallBack represent callback that process new Flagger configuration

type Client

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

Client represent SSE client

func NewClient

func NewClient(cb CallBack) *Client

NewClient return the new instance SSE.Client

func (*Client) SetURL

func (c *Client) SetURL(URL string)

SetURL using to changing subscribing url

func (*Client) Shutdown

func (c *Client) Shutdown()

Shutdown - closes sse connection to free up the resources

Jump to

Keyboard shortcuts

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