stream

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2024 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(sdkRegistrar sdk.Registrar, metrics metrics.Reporter, log log.Logger, serverType string) Server

type Stream

type Stream interface {
	CanEval(key string) bool
	IsInValidState() bool
	CreateConnection(key string, user model.UserAttrs) *Connection
	CloseConnection(conn *Connection, key string)
	Close()
}

func NewStream

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

Jump to

Keyboard shortcuts

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