message

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: May 6, 2022 License: BSD-2-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_arith_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ArithRequest

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

func (*ArithRequest) Descriptor deprecated

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

Deprecated: Use ArithRequest.ProtoReflect.Descriptor instead.

func (*ArithRequest) GetA

func (x *ArithRequest) GetA() float64

func (*ArithRequest) GetB

func (x *ArithRequest) GetB() float64

func (*ArithRequest) ProtoMessage

func (*ArithRequest) ProtoMessage()

func (*ArithRequest) ProtoReflect added in v0.3.1

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

func (*ArithRequest) Reset

func (x *ArithRequest) Reset()

func (*ArithRequest) String

func (x *ArithRequest) String() string

type ArithResponse

type ArithResponse struct {
	C float64 `protobuf:"fixed64,1,opt,name=c,proto3" json:"c,omitempty"`
	// contains filtered or unexported fields
}

func (*ArithResponse) Descriptor deprecated

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

Deprecated: Use ArithResponse.ProtoReflect.Descriptor instead.

func (*ArithResponse) GetC

func (x *ArithResponse) GetC() float64

func (*ArithResponse) ProtoMessage

func (*ArithResponse) ProtoMessage()

func (*ArithResponse) ProtoReflect added in v0.3.1

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

func (*ArithResponse) Reset

func (x *ArithResponse) Reset()

func (*ArithResponse) String

func (x *ArithResponse) String() string

type ArithService

type ArithService struct{}

ArithService Defining Computational Digital Services

func (*ArithService) Add

func (this *ArithService) Add(args *ArithRequest, reply *ArithResponse) error

Add addition

func (*ArithService) Div

func (this *ArithService) Div(args *ArithRequest, reply *ArithResponse) error

Div division

func (*ArithService) Mul

func (this *ArithService) Mul(args *ArithRequest, reply *ArithResponse) error

Mul multiplication

func (*ArithService) Sub

func (this *ArithService) Sub(args *ArithRequest, reply *ArithResponse) error

Sub subtraction

Jump to

Keyboard shortcuts

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