demo

package
v0.0.0-...-dc806d7 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterDemoServiceServer

func RegisterDemoServiceServer(s *grpc.Server, srv DemoServiceServer)

Types

type Data1

type Data1 struct {
	Value                int32    `protobuf:"varint,1,opt,name=Value,json=value,proto3" json:"Value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Data1) Descriptor

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

func (*Data1) GetValue

func (m *Data1) GetValue() int32

func (*Data1) ProtoMessage

func (*Data1) ProtoMessage()

func (*Data1) Reset

func (m *Data1) Reset()

func (*Data1) String

func (m *Data1) String() string

func (*Data1) XXX_DiscardUnknown

func (m *Data1) XXX_DiscardUnknown()

func (*Data1) XXX_Marshal

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

func (*Data1) XXX_Merge

func (dst *Data1) XXX_Merge(src proto.Message)

func (*Data1) XXX_Size

func (m *Data1) XXX_Size() int

func (*Data1) XXX_Unmarshal

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

type Data2

type Data2 struct {
	Value                int64    `protobuf:"varint,1,opt,name=Value,json=value,proto3" json:"Value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Data2) Descriptor

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

func (*Data2) GetValue

func (m *Data2) GetValue() int64

func (*Data2) ProtoMessage

func (*Data2) ProtoMessage()

func (*Data2) Reset

func (m *Data2) Reset()

func (*Data2) String

func (m *Data2) String() string

func (*Data2) XXX_DiscardUnknown

func (m *Data2) XXX_DiscardUnknown()

func (*Data2) XXX_Marshal

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

func (*Data2) XXX_Merge

func (dst *Data2) XXX_Merge(src proto.Message)

func (*Data2) XXX_Size

func (m *Data2) XXX_Size() int

func (*Data2) XXX_Unmarshal

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

type Data3

type Data3 struct {
	FirstValue           int64    `protobuf:"varint,1,opt,name=FirstValue,json=firstValue,proto3" json:"FirstValue,omitempty"`
	LastValue            int64    `protobuf:"varint,2,opt,name=LastValue,json=lastValue,proto3" json:"LastValue,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Data3) Descriptor

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

func (*Data3) GetFirstValue

func (m *Data3) GetFirstValue() int64

func (*Data3) GetLastValue

func (m *Data3) GetLastValue() int64

func (*Data3) ProtoMessage

func (*Data3) ProtoMessage()

func (*Data3) Reset

func (m *Data3) Reset()

func (*Data3) String

func (m *Data3) String() string

func (*Data3) XXX_DiscardUnknown

func (m *Data3) XXX_DiscardUnknown()

func (*Data3) XXX_Marshal

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

func (*Data3) XXX_Merge

func (dst *Data3) XXX_Merge(src proto.Message)

func (*Data3) XXX_Size

func (m *Data3) XXX_Size() int

func (*Data3) XXX_Unmarshal

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

type DemoServiceClient

type DemoServiceClient interface {
	GetSquare(ctx context.Context, in *Data1, opts ...grpc.CallOption) (*Data2, error)
	GetSum(ctx context.Context, opts ...grpc.CallOption) (DemoService_GetSumClient, error)
	ListNaturalNumbers(ctx context.Context, in *Data3, opts ...grpc.CallOption) (DemoService_ListNaturalNumbersClient, error)
}

DemoServiceClient is the client API for DemoService service.

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

func NewDemoServiceClient

func NewDemoServiceClient(cc *grpc.ClientConn) DemoServiceClient

type DemoServiceServer

type DemoServiceServer interface {
	GetSquare(context.Context, *Data1) (*Data2, error)
	GetSum(DemoService_GetSumServer) error
	ListNaturalNumbers(*Data3, DemoService_ListNaturalNumbersServer) error
}

DemoServiceServer is the server API for DemoService service.

type DemoService_GetSumClient

type DemoService_GetSumClient interface {
	Send(*Data1) error
	CloseAndRecv() (*Data2, error)
	grpc.ClientStream
}

type DemoService_GetSumServer

type DemoService_GetSumServer interface {
	SendAndClose(*Data2) error
	Recv() (*Data1, error)
	grpc.ServerStream
}

type DemoService_ListNaturalNumbersClient

type DemoService_ListNaturalNumbersClient interface {
	Recv() (*Data2, error)
	grpc.ClientStream
}

type DemoService_ListNaturalNumbersServer

type DemoService_ListNaturalNumbersServer interface {
	Send(*Data2) error
	grpc.ServerStream
}

Jump to

Keyboard shortcuts

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