helloworld

package
v0.0.0-...-b4740bb Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package helloworld is a generated protocol buffer package.

It is generated from these files:

helloworld.proto

It has these top-level messages:

SvcRequest
SvcResponse

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterHelloServer

func RegisterHelloServer(s *grpc.Server, srv HelloServer)

func RegisterWorldServer

func RegisterWorldServer(s *grpc.Server, srv WorldServer)

Types

type HelloClient

type HelloClient interface {
	Greeting(ctx context.Context, in *SvcRequest, opts ...grpc.CallOption) (*SvcResponse, error)
	StreamGreeting(ctx context.Context, in *SvcRequest, opts ...grpc.CallOption) (Hello_StreamGreetingClient, error)
}

func NewHelloClient

func NewHelloClient(cc *grpc.ClientConn) HelloClient

type HelloServer

type HelloServer interface {
	Greeting(context.Context, *SvcRequest) (*SvcResponse, error)
	StreamGreeting(*SvcRequest, Hello_StreamGreetingServer) error
}

type Hello_StreamGreetingClient

type Hello_StreamGreetingClient interface {
	Recv() (*SvcResponse, error)
	grpc.ClientStream
}

type Hello_StreamGreetingServer

type Hello_StreamGreetingServer interface {
	Send(*SvcResponse) error
	grpc.ServerStream
}

type SvcRequest

type SvcRequest struct {
}

func (*SvcRequest) Descriptor

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

func (*SvcRequest) ProtoMessage

func (*SvcRequest) ProtoMessage()

func (*SvcRequest) Reset

func (m *SvcRequest) Reset()

func (*SvcRequest) String

func (m *SvcRequest) String() string

type SvcResponse

type SvcResponse struct {
	Message string `protobuf:"bytes,1,opt,name=message" json:"message,omitempty"`
}

func (*SvcResponse) Descriptor

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

func (*SvcResponse) GetMessage

func (m *SvcResponse) GetMessage() string

func (*SvcResponse) ProtoMessage

func (*SvcResponse) ProtoMessage()

func (*SvcResponse) Reset

func (m *SvcResponse) Reset()

func (*SvcResponse) String

func (m *SvcResponse) String() string

type WorldClient

type WorldClient interface {
	Greeting(ctx context.Context, in *SvcRequest, opts ...grpc.CallOption) (*SvcResponse, error)
}

func NewWorldClient

func NewWorldClient(cc *grpc.ClientConn) WorldClient

type WorldServer

type WorldServer interface {
	Greeting(context.Context, *SvcRequest) (*SvcResponse, error)
}

Jump to

Keyboard shortcuts

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