Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
Connection is simple interface for streams
type Message ¶
type Message struct { Event string `json:"event"` Domain string `json:"domain"` Identifier string `json:"identifier"` Version int `json:"version"` }
Message is basic object for marshalling data from ff stream
type SSEClient ¶
type SSEClient struct {
// contains filtered or unexported fields
}
SSEClient is Server Send Event object
func NewSSEClient ¶
func NewSSEClient( apiKey string, token string, client *sse.Client, cache cache.Cache, api rest.ClientWithResponsesInterface, logger logger.Logger, ) *SSEClient
NewSSEClient creates an object for stream interactions
func (*SSEClient) OnDisconnect ¶
OnDisconnect will trigger func f when stream disconnects
Click to show internal directories.
Click to hide internal directories.