eventstream

package
v0.0.0-...-ab50414 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	eventstreamapi.UnimplementedEventStreamServer
	// contains filtered or unexported fields
}

func NewServer

func NewServer(queues queue.QueuePair, opts ...ServerOption) *Server

NewServer returns a new AppStream server instance with the given options

func (*Server) Push

Push implements a client-side stream to receive updates for the client's Application resources.

func (*Server) Subscribe

Subscribe implements a bi-directional stream to exchange application updates between the agent and the server.

The connection is kept open until the agent closes it, and the stream tries to send updates to the agent as long as possible.

type ServerOption

type ServerOption func(o *ServerOptions)

func WithMaxStreamDuration

func WithMaxStreamDuration(d time.Duration) ServerOption

type ServerOptions

type ServerOptions struct {
	MaxStreamDuration time.Duration
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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