pb

package
v0.0.0-...-1a196e1 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package pb is a generated protocol buffer package.

It is generated from these files:

ping.proto

It has these top-level messages:

Void
Info

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterTestServer

func RegisterTestServer(s *grpc.Server, srv TestServer)

Types

type Info

type Info struct {
	Version string `protobuf:"bytes,1,opt,name=version" json:"version,omitempty"`
}

Info 呈現一個帶有服務版本號的資料。

func (*Info) Descriptor

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

func (*Info) GetVersion

func (m *Info) GetVersion() string

func (*Info) ProtoMessage

func (*Info) ProtoMessage()

func (*Info) Reset

func (m *Info) Reset()

func (*Info) String

func (m *Info) String() string

type TestClient

type TestClient interface {
	Ping(ctx context.Context, in *Void, opts ...grpc.CallOption) (*Info, error)
}

func NewTestClient

func NewTestClient(cc *grpc.ClientConn) TestClient

type TestServer

type TestServer interface {
	Ping(context.Context, *Void) (*Info, error)
}

type Void

type Void struct {
}

Void 呈現一個什麼都沒有的資料。

func (*Void) Descriptor

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

func (*Void) ProtoMessage

func (*Void) ProtoMessage()

func (*Void) Reset

func (m *Void) Reset()

func (*Void) String

func (m *Void) String() string

Jump to

Keyboard shortcuts

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