Demo entry 6345778



Submitted by anonymous on Feb 07, 2017 at 08:39
Language: Go. Code size: 694 Bytes.

package grpc

import (


// StreamHandler defines the handler called by gRPC server to complete the
// execution of a streaming RPC.
type StreamHandler func(srv interface{}, stream ServerStream) error

// StreamDesc represents a streaming RPC service's method specification.
type StreamDesc struct {
	StreamName string
	Handler    StreamHandler

	// At least one of these is true.
	ServerStreams bool
	ClientStreams bool

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).