rpcs

package
v0.0.0-...-b044761 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterArithmeticServer

func RegisterArithmeticServer(s *grpc.Server, srv ArithmeticServer)

Types

type AddInput

type AddInput struct {
	A                    float32  `protobuf:"fixed32,1,opt,name=A,proto3" json:"A,omitempty"`
	B                    float32  `protobuf:"fixed32,2,opt,name=B,proto3" json:"B,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AddInput) Descriptor

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

func (*AddInput) GetA

func (m *AddInput) GetA() float32

func (*AddInput) GetB

func (m *AddInput) GetB() float32

func (*AddInput) ProtoMessage

func (*AddInput) ProtoMessage()

func (*AddInput) Reset

func (m *AddInput) Reset()

func (*AddInput) String

func (m *AddInput) String() string

func (*AddInput) XXX_DiscardUnknown

func (m *AddInput) XXX_DiscardUnknown()

func (*AddInput) XXX_Marshal

func (m *AddInput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AddInput) XXX_Merge

func (m *AddInput) XXX_Merge(src proto.Message)

func (*AddInput) XXX_Size

func (m *AddInput) XXX_Size() int

func (*AddInput) XXX_Unmarshal

func (m *AddInput) XXX_Unmarshal(b []byte) error

type AddOutput

type AddOutput struct {
	Sum                  float32  `protobuf:"fixed32,1,opt,name=Sum,proto3" json:"Sum,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AddOutput) Descriptor

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

func (*AddOutput) GetSum

func (m *AddOutput) GetSum() float32

func (*AddOutput) ProtoMessage

func (*AddOutput) ProtoMessage()

func (*AddOutput) Reset

func (m *AddOutput) Reset()

func (*AddOutput) String

func (m *AddOutput) String() string

func (*AddOutput) XXX_DiscardUnknown

func (m *AddOutput) XXX_DiscardUnknown()

func (*AddOutput) XXX_Marshal

func (m *AddOutput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AddOutput) XXX_Merge

func (m *AddOutput) XXX_Merge(src proto.Message)

func (*AddOutput) XXX_Size

func (m *AddOutput) XXX_Size() int

func (*AddOutput) XXX_Unmarshal

func (m *AddOutput) XXX_Unmarshal(b []byte) error

type ArithmeticClient

type ArithmeticClient interface {
	Add(ctx context.Context, in *AddInput, opts ...grpc.CallOption) (*AddOutput, error)
}

ArithmeticClient is the client API for Arithmetic service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewArithmeticClient

func NewArithmeticClient(cc *grpc.ClientConn) ArithmeticClient

type ArithmeticServer

type ArithmeticServer interface {
	Add(context.Context, *AddInput) (*AddOutput, error)
}

ArithmeticServer is the server API for Arithmetic service.

type Server

type Server struct{}

Server ...

func (*Server) Add

func (s *Server) Add(ctx context.Context, in *AddInput) (out *AddOutput, err error)

Add ...

Jump to

Keyboard shortcuts

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