protorpcpb

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2023 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_protorpc_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Request

type Request struct {
	Method string     `protobuf:"bytes,1,opt,name=method,proto3" json:"method,omitempty"`
	Param  *anypb.Any `protobuf:"bytes,2,opt,name=param,proto3" json:"param,omitempty"`
	ID     uint64     `protobuf:"varint,3,opt,name=ID,proto3" json:"ID,omitempty"`
	// contains filtered or unexported fields
}

func (*Request) Descriptor deprecated

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

Deprecated: Use Request.ProtoReflect.Descriptor instead.

func (*Request) GetID

func (x *Request) GetID() uint64

func (*Request) GetMethod

func (x *Request) GetMethod() string

func (*Request) GetParam

func (x *Request) GetParam() *anypb.Any

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) ProtoReflect

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

func (*Request) Reset

func (x *Request) Reset()

func (*Request) String

func (x *Request) String() string

type Response

type Response struct {
	ID     uint64     `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
	Result *anypb.Any `protobuf:"bytes,2,opt,name=result,proto3" json:"result,omitempty"`
	Error  string     `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*Response) Descriptor deprecated

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

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) GetError

func (x *Response) GetError() string

func (*Response) GetID

func (x *Response) GetID() uint64

func (*Response) GetResult

func (x *Response) GetResult() *anypb.Any

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) ProtoReflect

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

func (*Response) Reset

func (x *Response) Reset()

func (*Response) String

func (x *Response) String() string

Jump to

Keyboard shortcuts

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