app_demopb

package
v1.6.5 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterHomeServer

func RegisterHomeServer(s *grpc.Server, srv HomeServer)

Types

type HelloReply

type HelloReply struct {
	Data                 string   `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*HelloReply) Descriptor

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

func (*HelloReply) GetData

func (m *HelloReply) GetData() string

func (*HelloReply) ProtoMessage

func (*HelloReply) ProtoMessage()

func (*HelloReply) Reset

func (m *HelloReply) Reset()

func (*HelloReply) String

func (m *HelloReply) String() string

func (*HelloReply) XXX_DiscardUnknown

func (m *HelloReply) XXX_DiscardUnknown()

func (*HelloReply) XXX_Marshal

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

func (*HelloReply) XXX_Merge

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

func (*HelloReply) XXX_Size

func (m *HelloReply) XXX_Size() int

func (*HelloReply) XXX_Unmarshal

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

type HelloRequest

type HelloRequest struct {
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*HelloRequest) Descriptor

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

func (*HelloRequest) GetName

func (m *HelloRequest) GetName() string

func (*HelloRequest) ProtoMessage

func (*HelloRequest) ProtoMessage()

func (*HelloRequest) Reset

func (m *HelloRequest) Reset()

func (*HelloRequest) String

func (m *HelloRequest) String() string

func (*HelloRequest) XXX_DiscardUnknown

func (m *HelloRequest) XXX_DiscardUnknown()

func (*HelloRequest) XXX_Marshal

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

func (*HelloRequest) XXX_Merge

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

func (*HelloRequest) XXX_Size

func (m *HelloRequest) XXX_Size() int

func (*HelloRequest) XXX_Unmarshal

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

type HelloStreamReply

type HelloStreamReply struct {
	Data                 string   `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*HelloStreamReply) Descriptor

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

func (*HelloStreamReply) GetData

func (m *HelloStreamReply) GetData() string

func (*HelloStreamReply) ProtoMessage

func (*HelloStreamReply) ProtoMessage()

func (*HelloStreamReply) Reset

func (m *HelloStreamReply) Reset()

func (*HelloStreamReply) String

func (m *HelloStreamReply) String() string

func (*HelloStreamReply) XXX_DiscardUnknown

func (m *HelloStreamReply) XXX_DiscardUnknown()

func (*HelloStreamReply) XXX_Marshal

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

func (*HelloStreamReply) XXX_Merge

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

func (*HelloStreamReply) XXX_Size

func (m *HelloStreamReply) XXX_Size() int

func (*HelloStreamReply) XXX_Unmarshal

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

type HomeClient

type HomeClient interface {
	Hello(ctx context.Context, in *HelloRequest, opts ...grpc.CallOption) (*HelloReply, error)
	HelloStream(ctx context.Context, in *HelloRequest, opts ...grpc.CallOption) (Home_HelloStreamClient, error)
}

HomeClient is the client API for Home service.

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

func NewHomeClient

func NewHomeClient(cc *grpc.ClientConn) HomeClient

type HomeServer

type HomeServer interface {
	Hello(context.Context, *HelloRequest) (*HelloReply, error)
	HelloStream(*HelloRequest, Home_HelloStreamServer) error
}

HomeServer is the server API for Home service.

type Home_HelloStreamClient

type Home_HelloStreamClient interface {
	Recv() (*HelloStreamReply, error)
	grpc.ClientStream
}

type Home_HelloStreamServer

type Home_HelloStreamServer interface {
	Send(*HelloStreamReply) error
	grpc.ServerStream
}

Jump to

Keyboard shortcuts

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