...

Package stream

import "github.com/google/s2a-go/stream"
Overview
Index

Overview ▾

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

Index ▾

Package files

s2a_stream.go

type S2AStream

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

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
}