stubs

package
v4.0.0-alpha1 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2022 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssignToInterface

func AssignToInterface(m proto.Message, i interface{}) error

Types

type BidirServerStreamerCore

type BidirServerStreamerCore struct {
	ClientServerStreamerCore
	ReqChan chan proto.Message
	// contains filtered or unexported fields
}

func (*BidirServerStreamerCore) CloseSend

func (bd *BidirServerStreamerCore) CloseSend() error

func (*BidirServerStreamerCore) Init

func (bd *BidirServerStreamerCore) Init(ctx context.Context)

type ClientServerStreamerCore

type ClientServerStreamerCore struct {
	Ctx         context.Context
	SendHandler func(interface{}) error

	RespChan chan proto.Message
	// contains filtered or unexported fields
}

func (*ClientServerStreamerCore) CloseSend

func (cs *ClientServerStreamerCore) CloseSend() error

func (*ClientServerStreamerCore) Context

func (*ClientServerStreamerCore) Header

func (cs *ClientServerStreamerCore) Header() (metadata.MD, error)

func (*ClientServerStreamerCore) Init

func (cs *ClientServerStreamerCore) Init(ctx context.Context, sendHandler func(interface{}) error)

func (*ClientServerStreamerCore) RecvMsg

func (cs *ClientServerStreamerCore) RecvMsg(m interface{}) error

func (*ClientServerStreamerCore) SendHeader

func (cs *ClientServerStreamerCore) SendHeader(md metadata.MD) error

func (*ClientServerStreamerCore) SendMsg

func (cs *ClientServerStreamerCore) SendMsg(m interface{}) error

func (*ClientServerStreamerCore) SetHeader

func (cs *ClientServerStreamerCore) SetHeader(md metadata.MD) error

func (*ClientServerStreamerCore) SetTrailer

func (cs *ClientServerStreamerCore) SetTrailer(md metadata.MD)

func (*ClientServerStreamerCore) Trailer

func (cs *ClientServerStreamerCore) Trailer() metadata.MD

type MuxService

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

func (*MuxService) Invoke

func (m *MuxService) Invoke(ctx context.Context, method string, args interface{}, reply interface{}, opts ...grpc.CallOption) error

func (*MuxService) NewStream

func (m *MuxService) NewStream(ctx context.Context, desc *grpc.StreamDesc, method string, opts ...grpc.CallOption) (grpc.ClientStream, error)

func (*MuxService) Register

func (m *MuxService) Register(serviceName string, conn grpc.ClientConnInterface)

type StreamerStubCore

type StreamerStubCore struct {
	Ctx context.Context
}

func (*StreamerStubCore) Context

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

func (*StreamerStubCore) RecvMsg

func (s *StreamerStubCore) RecvMsg(m interface{}) error

func (*StreamerStubCore) SendHeader

func (s *StreamerStubCore) SendHeader(md metadata.MD) error

func (*StreamerStubCore) SendMsg

func (s *StreamerStubCore) SendMsg(m interface{}) error

func (*StreamerStubCore) SetHeader

func (s *StreamerStubCore) SetHeader(md metadata.MD) error

func (*StreamerStubCore) SetTrailer

func (s *StreamerStubCore) SetTrailer(md metadata.MD)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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