pb

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_example_proto protoreflect.FileDescriptor

Functions

func DRPCRegisterExample

func DRPCRegisterExample(mux drpc.Mux, impl DRPCExampleServer) error

Types

type DRPCExampleClient

type DRPCExampleClient interface {
	DRPCConn() drpc.Conn

	Test(ctx context.Context, in *TestRequest) (*TestResponse, error)
}

func NewDRPCExampleClient

func NewDRPCExampleClient(cc drpc.Conn) DRPCExampleClient

type DRPCExampleDescription

type DRPCExampleDescription struct{}

func (DRPCExampleDescription) Method

func (DRPCExampleDescription) Method(n int) (string, drpc.Encoding, drpc.Receiver, interface{}, bool)

func (DRPCExampleDescription) NumMethods

func (DRPCExampleDescription) NumMethods() int

type DRPCExampleServer

type DRPCExampleServer interface {
	Test(context.Context, *TestRequest) (*TestResponse, error)
}

type DRPCExampleUnimplementedServer

type DRPCExampleUnimplementedServer struct{}

func (*DRPCExampleUnimplementedServer) Test

type DRPCExample_TestStream

type DRPCExample_TestStream interface {
	drpc.Stream
	SendAndClose(*TestResponse) error
}

type TestRequest

type TestRequest struct {
	Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*TestRequest) Descriptor deprecated

func (*TestRequest) Descriptor() ([]byte, []int)

Deprecated: Use TestRequest.ProtoReflect.Descriptor instead.

func (*TestRequest) GetMessage

func (x *TestRequest) GetMessage() string

func (*TestRequest) ProtoMessage

func (*TestRequest) ProtoMessage()

func (*TestRequest) ProtoReflect

func (x *TestRequest) ProtoReflect() protoreflect.Message

func (*TestRequest) Reset

func (x *TestRequest) Reset()

func (*TestRequest) String

func (x *TestRequest) String() string

type TestResponse

type TestResponse struct {
	Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*TestResponse) Descriptor deprecated

func (*TestResponse) Descriptor() ([]byte, []int)

Deprecated: Use TestResponse.ProtoReflect.Descriptor instead.

func (*TestResponse) GetMessage

func (x *TestResponse) GetMessage() string

func (*TestResponse) ProtoMessage

func (*TestResponse) ProtoMessage()

func (*TestResponse) ProtoReflect

func (x *TestResponse) ProtoReflect() protoreflect.Message

func (*TestResponse) Reset

func (x *TestResponse) Reset()

func (*TestResponse) String

func (x *TestResponse) String() string

Jump to

Keyboard shortcuts

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