ping

package module
v0.0.0-...-52fe73f Latest Latest
Warning

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

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

README

Ping

This repository holds example microservice composed of the following components:

  • frontend - depends on the bar and foo services
  • bar - a microservice that implements the ping server
  • foo - a microservice that implements the ping server
  • client - gRPC client that talks to the frontend

Generate gRPC code

protoc -I ./ ./ping.proto --go_out=plugins=grpc:.

Documentation

Overview

Package ping is a generated protocol buffer package.

It is generated from these files:

ping.proto

It has these top-level messages:

Request
Response

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterPingServer

func RegisterPingServer(s *grpc.Server, srv PingServer)

Types

type PingClient

type PingClient interface {
	Ping(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error)
}

func NewPingClient

func NewPingClient(cc *grpc.ClientConn) PingClient

type PingServer

type PingServer interface {
	Ping(context.Context, *Request) (*Response, error)
}

type Request

type Request struct {
}

func (*Request) Descriptor

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

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) Reset

func (m *Request) Reset()

func (*Request) String

func (m *Request) String() string

type Response

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

func (*Response) Descriptor

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

func (*Response) GetMessage

func (m *Response) GetMessage() string

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) Reset

func (m *Response) Reset()

func (*Response) String

func (m *Response) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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