pbapi

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2026 License: Apache-2.0 Imports: 2 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Echo

type Echo interface {
	StreamRequestEcho(stream Echo_StreamRequestEchoServer) (err error)
	StreamResponseEcho(req *Request, stream Echo_StreamResponseEchoServer) (err error)
	BidirectionalEcho(stream Echo_BidirectionalEchoServer) (err error)
}

type Echo_BidirectionalEchoServer

type Echo_BidirectionalEchoServer interface {
	streaming.Stream
	Recv() (*Request, error)
	Send(*Response) error
}

type Echo_StreamRequestEchoServer

type Echo_StreamRequestEchoServer interface {
	streaming.Stream
	Recv() (*Request, error)
	SendAndClose(*Response) error
}

type Echo_StreamResponseEchoServer

type Echo_StreamResponseEchoServer interface {
	streaming.Stream
	Send(*Response) error
}

type Request

type Request struct {
	Message string `protobuf:"bytes,1,opt,name=message" json:"message,omitempty"`
}

func (*Request) GetMessage

func (x *Request) GetMessage() string

func (*Request) Marshal added in v0.4.2

func (x *Request) Marshal(in []byte) ([]byte, error)

func (*Request) Reset

func (x *Request) Reset()

func (*Request) Unmarshal added in v0.4.2

func (x *Request) Unmarshal(in []byte) error

type Response

type Response struct {
	Message string `protobuf:"bytes,1,opt,name=message" json:"message,omitempty"`
}

func (*Response) GetMessage

func (x *Response) GetMessage() string

func (*Response) Marshal added in v0.4.2

func (x *Response) Marshal(in []byte) ([]byte, error)

func (*Response) Reset

func (x *Response) Reset()

func (*Response) Unmarshal added in v0.4.2

func (x *Response) Unmarshal(in []byte) error

Directories

Path Synopsis
Code generated by Kitex v0.15.1.
Code generated by Kitex v0.15.1.

Jump to

Keyboard shortcuts

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