stream

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const AllFlagsDiscriminator = "[ALL]"

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

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

func (*Connection) Receive

func (conn *Connection) Receive() <-chan interface{}

type Server

type Server interface {
	GetStreamOrNil(sdkId string) Stream
	Close()
}

func NewServer

func NewServer(sdkClients map[string]sdk.Client, metrics metrics.Handler, log log.Logger, serverType string) Server

type Stream

type Stream interface {
	CreateConnection(key string, user sdk.UserAttrs) *Connection
	CloseConnection(conn *Connection, key string)
	Close()
}

func NewStream

func NewStream(sdkId string, sdkClient sdk.Client, metrics metrics.Handler, log log.Logger, serverType string) Stream

Jump to

Keyboard shortcuts

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