proto

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Code generated by stream-rpc. DO NOT EDIT.

Code generated by stream-rpc. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

View Source
var File_examples_calculator_proto_service_proto protoreflect.FileDescriptor

Functions

func RegisterCalculatorServer

func RegisterCalculatorServer(peer *rpc.RpcPeer, impl CalculatorServer)

Types

type AddRequest

type AddRequest struct {
	A int32 `protobuf:"varint,1,opt,name=a,proto3" json:"a,omitempty"`
	B int32 `protobuf:"varint,2,opt,name=b,proto3" json:"b,omitempty"`
	// contains filtered or unexported fields
}

func (*AddRequest) Descriptor deprecated

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

Deprecated: Use AddRequest.ProtoReflect.Descriptor instead.

func (*AddRequest) GetA

func (x *AddRequest) GetA() int32

func (*AddRequest) GetB

func (x *AddRequest) GetB() int32

func (*AddRequest) ProtoMessage

func (*AddRequest) ProtoMessage()

func (*AddRequest) ProtoReflect

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

func (*AddRequest) Reset

func (x *AddRequest) Reset()

func (*AddRequest) String

func (x *AddRequest) String() string

type AddResponse

type AddResponse struct {
	Result int32 `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*AddResponse) Descriptor deprecated

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

Deprecated: Use AddResponse.ProtoReflect.Descriptor instead.

func (*AddResponse) GetResult

func (x *AddResponse) GetResult() int32

func (*AddResponse) ProtoMessage

func (*AddResponse) ProtoMessage()

func (*AddResponse) ProtoReflect

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

func (*AddResponse) Reset

func (x *AddResponse) Reset()

func (*AddResponse) String

func (x *AddResponse) String() string

type CalculatorClient

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

func NewCalculatorClient

func NewCalculatorClient(peer *rpc.RpcPeer) *CalculatorClient

func (*CalculatorClient) Add

func (c *CalculatorClient) Add(req *AddRequest) *AddResponse

func (*CalculatorClient) Divide added in v0.1.1

func (*CalculatorClient) Multiply

type CalculatorServerImpl

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

func (*CalculatorServerImpl) Add

func (*CalculatorServerImpl) Divide added in v0.1.1

func (*CalculatorServerImpl) Multiply

type DivideRequest added in v0.1.1

type DivideRequest struct {
	A int32 `protobuf:"varint,1,opt,name=a,proto3" json:"a,omitempty"`
	B int32 `protobuf:"varint,2,opt,name=b,proto3" json:"b,omitempty"`
	// contains filtered or unexported fields
}

func (*DivideRequest) Descriptor deprecated added in v0.1.1

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

Deprecated: Use DivideRequest.ProtoReflect.Descriptor instead.

func (*DivideRequest) GetA added in v0.1.1

func (x *DivideRequest) GetA() int32

func (*DivideRequest) GetB added in v0.1.1

func (x *DivideRequest) GetB() int32

func (*DivideRequest) ProtoMessage added in v0.1.1

func (*DivideRequest) ProtoMessage()

func (*DivideRequest) ProtoReflect added in v0.1.1

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

func (*DivideRequest) Reset added in v0.1.1

func (x *DivideRequest) Reset()

func (*DivideRequest) String added in v0.1.1

func (x *DivideRequest) String() string

type DivideResponse added in v0.1.1

type DivideResponse struct {
	Result int32 `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*DivideResponse) Descriptor deprecated added in v0.1.1

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

Deprecated: Use DivideResponse.ProtoReflect.Descriptor instead.

func (*DivideResponse) GetResult added in v0.1.1

func (x *DivideResponse) GetResult() int32

func (*DivideResponse) ProtoMessage added in v0.1.1

func (*DivideResponse) ProtoMessage()

func (*DivideResponse) ProtoReflect added in v0.1.1

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

func (*DivideResponse) Reset added in v0.1.1

func (x *DivideResponse) Reset()

func (*DivideResponse) String added in v0.1.1

func (x *DivideResponse) String() string

type MultiplyRequest

type MultiplyRequest struct {
	A int32 `protobuf:"varint,1,opt,name=a,proto3" json:"a,omitempty"`
	B int32 `protobuf:"varint,2,opt,name=b,proto3" json:"b,omitempty"`
	// contains filtered or unexported fields
}

func (*MultiplyRequest) Descriptor deprecated

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

Deprecated: Use MultiplyRequest.ProtoReflect.Descriptor instead.

func (*MultiplyRequest) GetA

func (x *MultiplyRequest) GetA() int32

func (*MultiplyRequest) GetB

func (x *MultiplyRequest) GetB() int32

func (*MultiplyRequest) ProtoMessage

func (*MultiplyRequest) ProtoMessage()

func (*MultiplyRequest) ProtoReflect

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

func (*MultiplyRequest) Reset

func (x *MultiplyRequest) Reset()

func (*MultiplyRequest) String

func (x *MultiplyRequest) String() string

type MultiplyResponse

type MultiplyResponse struct {
	Result int32 `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*MultiplyResponse) Descriptor deprecated

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

Deprecated: Use MultiplyResponse.ProtoReflect.Descriptor instead.

func (*MultiplyResponse) GetResult

func (x *MultiplyResponse) GetResult() int32

func (*MultiplyResponse) ProtoMessage

func (*MultiplyResponse) ProtoMessage()

func (*MultiplyResponse) ProtoReflect

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

func (*MultiplyResponse) Reset

func (x *MultiplyResponse) Reset()

func (*MultiplyResponse) String

func (x *MultiplyResponse) String() string

type UnimplementedCalculatorServer

type UnimplementedCalculatorServer struct{}

UnimplementedCalculatorServer can be embedded to have forward compatible implementations

func (*UnimplementedCalculatorServer) Add

func (*UnimplementedCalculatorServer) Divide added in v0.1.1

func (*UnimplementedCalculatorServer) Multiply

Directories

Path Synopsis
Code generated by protoc-gen-stream-rpc.
Code generated by protoc-gen-stream-rpc.

Jump to

Keyboard shortcuts

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