pb

package
v0.0.0-...-cb8cfd3 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2022 License: MIT Imports: 5 Imported by: 3

Documentation

Overview

Package pb is a generated protocol buffer package.

It is generated from these files:

greeter.proto

It has these top-level messages:

GreetingRequest
GreetingResponse

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterGreeterServer

func RegisterGreeterServer(s *grpc.Server, srv GreeterServer)

Types

type GreeterClient

type GreeterClient interface {
	Greeting(ctx context.Context, in *GreetingRequest, opts ...grpc.CallOption) (*GreetingResponse, error)
}

func NewGreeterClient

func NewGreeterClient(cc *grpc.ClientConn) GreeterClient

type GreeterServer

type GreeterServer interface {
	Greeting(context.Context, *GreetingRequest) (*GreetingResponse, error)
}

type GreetingRequest

type GreetingRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}

func (*GreetingRequest) Descriptor

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

func (*GreetingRequest) GetName

func (m *GreetingRequest) GetName() string

func (*GreetingRequest) ProtoMessage

func (*GreetingRequest) ProtoMessage()

func (*GreetingRequest) Reset

func (m *GreetingRequest) Reset()

func (*GreetingRequest) String

func (m *GreetingRequest) String() string

type GreetingResponse

type GreetingResponse struct {
	Greeting string `protobuf:"bytes,2,opt,name=greeting" json:"greeting,omitempty"`
}

func (*GreetingResponse) Descriptor

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

func (*GreetingResponse) GetGreeting

func (m *GreetingResponse) GetGreeting() string

func (*GreetingResponse) ProtoMessage

func (*GreetingResponse) ProtoMessage()

func (*GreetingResponse) Reset

func (m *GreetingResponse) Reset()

func (*GreetingResponse) String

func (m *GreetingResponse) String() string

Jump to

Keyboard shortcuts

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