package proto
import "github.com/grpc-ecosystem/go-grpc-prometheus/examples/grpc-server-with-prometheus/protobuf"
Package proto is a generated protocol buffer package.
It is generated from these files:
service.proto
It has these top-level messages:
HelloRequest HelloResponse
Index ¶
- func RegisterDemoServiceServer(s *grpc.Server, srv DemoServiceServer)
- type DemoServiceClient
- type DemoServiceServer
- type HelloRequest
- func (*HelloRequest) Descriptor() ([]byte, []int)
- func (m *HelloRequest) GetName() string
- func (*HelloRequest) ProtoMessage()
- func (m *HelloRequest) Reset()
- func (m *HelloRequest) String() string
- type HelloResponse
Functions ¶
func RegisterDemoServiceServer ¶
func RegisterDemoServiceServer(s *grpc.Server, srv DemoServiceServer)
Types ¶
type DemoServiceClient ¶
type DemoServiceClient interface { SayHello(ctx context.Context, in *HelloRequest, opts ...grpc.CallOption) (*HelloResponse, error) }
func NewDemoServiceClient ¶
func NewDemoServiceClient(cc *grpc.ClientConn) DemoServiceClient
type DemoServiceServer ¶
type DemoServiceServer interface { SayHello(context.Context, *HelloRequest) (*HelloResponse, error) }
type HelloRequest ¶
type HelloRequest struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` }
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
type HelloResponse ¶
type HelloResponse struct { Message string `protobuf:"bytes,1,opt,name=message" json:"message,omitempty"` }
func (*HelloResponse) Descriptor ¶
func (*HelloResponse) Descriptor() ([]byte, []int)
func (*HelloResponse) GetMessage ¶
func (m *HelloResponse) GetMessage() string
func (*HelloResponse) ProtoMessage ¶
func (*HelloResponse) ProtoMessage()
func (*HelloResponse) Reset ¶
func (m *HelloResponse) Reset()
func (*HelloResponse) String ¶
func (m *HelloResponse) String() string
Source Files ¶
- Version
- v1.2.0 (latest)
- Published
- Jun 4, 2018
- Platform
- darwin/amd64
- Imports
- 5 packages
- Last checked
- 4 days ago –
Tools for package owners.