arith

package
v0.0.0-...-828e206 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_arith_proto protoreflect.FileDescriptor

Functions

func RegisterArithHandler

func RegisterArithHandler(s server.Server, hdlr ArithHandler, opts ...server.HandlerOption) error

Types

type Args

type Args 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 (*Args) Descriptor deprecated

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

Deprecated: Use Args.ProtoReflect.Descriptor instead.

func (*Args) GetA

func (x *Args) GetA() int32

func (*Args) GetB

func (x *Args) GetB() int32

func (*Args) ProtoMessage

func (*Args) ProtoMessage()

func (*Args) ProtoReflect

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

func (*Args) Reset

func (x *Args) Reset()

func (*Args) String

func (x *Args) String() string

type ArithHandler

type ArithHandler interface {
	Mul(context.Context, *Args, *Reply) error
}

type ArithService

type ArithService interface {
	Mul(ctx context.Context, in *Args, opts ...client.CallOption) (*Reply, error)
}

func NewArithService

func NewArithService(name string, c client.Client) ArithService

type Reply

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

func (*Reply) Descriptor deprecated

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

Deprecated: Use Reply.ProtoReflect.Descriptor instead.

func (*Reply) GetC

func (x *Reply) GetC() int32

func (*Reply) ProtoMessage

func (*Reply) ProtoMessage()

func (*Reply) ProtoReflect

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

func (*Reply) Reset

func (x *Reply) Reset()

func (*Reply) String

func (x *Reply) String() string

Jump to

Keyboard shortcuts

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