stream

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package stream provides an interface for bidirectional streaming to the S2A server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetS2AStream added in v0.1.9

type GetS2AStream func(ctx context.Context, s2av2Address string, opts ...string) (S2AStream, error)

GetS2AStream type is for generating an S2AStream interface for talking to the S2A server.

type S2AStream

type S2AStream interface {
	// Send sends the message to the S2A server.
	Send(*s2av2pb.SessionReq) error
	// Recv receives the message from the S2A server.
	Recv() (*s2av2pb.SessionResp, error)
	// Closes the channel to the S2A server.
	CloseSend() error
}

S2AStream defines the operation for communicating with the S2A server over a bidirectional stream.

Jump to

Keyboard shortcuts

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