fakexds

package
v0.0.0-...-8571017 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Stream

type Stream struct {
	// contains filtered or unexported fields
}

func NewStream

func NewStream(ctx context.Context) *Stream

func (*Stream) Await

func (s *Stream) Await() (*discovery_v3.DiscoveryResponse, error)

Await is called by the client to await a push from the server.

func (*Stream) Context

func (s *Stream) Context() context.Context

func (*Stream) Recv

func (s *Stream) Recv() (*discovery_v3.DiscoveryRequest, error)

Recv is called by the server to receive a request from the client.

func (*Stream) RecvMsg

func (s *Stream) RecvMsg(interface{}) error

func (*Stream) Request

func (s *Stream) Request(req *discovery_v3.DiscoveryRequest) error

Request is called by the client to send a message to the server.

func (*Stream) RequestAndWait

RequestAndWait is called by the client to send a request to the server and wait for a response.

func (*Stream) Send

Send is called by the server to send a response to the client.

func (*Stream) SendHeader

func (s *Stream) SendHeader(metadata.MD) error

func (*Stream) SendMsg

func (s *Stream) SendMsg(interface{}) error

func (*Stream) SetHeader

func (s *Stream) SetHeader(metadata.MD) error

func (*Stream) SetTrailer

func (s *Stream) SetTrailer(metadata.MD)

Jump to

Keyboard shortcuts

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