sseadapter

package
v1.7.4-temp Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package sseadapter provides an adapter implementation for working with the repository of space applications.

Package sseadapter provides an adapter implementation for working with the repository of space applications.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StreamSentAdapter

func StreamSentAdapter(cfg *Config) *streamSentAdapter

StreamSentAdapter creates and returns a new instance of the streamSentAdapter

Types

type Config

type Config struct {
	SSEToken string `json:"sse_token"`
}

type Event

type Event struct {
	ID    string
	Event string
	Data  []byte
}

Event object is a representation of single chunk of data in event stream.

Jump to

Keyboard shortcuts

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