generator

package
v0.0.0-...-de9d718 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2016 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package generator is a generated protocol buffer package.

It is generated from these files:

generator.proto

It has these top-level messages:

GenerateRequest
GenerateResponse

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterGeneratorServer

func RegisterGeneratorServer(s *grpc.Server, srv GeneratorServer)

Types

type GenerateRequest

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

func (*GenerateRequest) Descriptor

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

func (*GenerateRequest) ProtoMessage

func (*GenerateRequest) ProtoMessage()

func (*GenerateRequest) Reset

func (m *GenerateRequest) Reset()

func (*GenerateRequest) String

func (m *GenerateRequest) String() string

type GenerateResponse

type GenerateResponse struct {
	Greeting    string `protobuf:"bytes,1,opt,name=greeting" json:"greeting,omitempty"`
	GeneratedAt int64  `protobuf:"varint,2,opt,name=generated_at,json=generatedAt" json:"generated_at,omitempty"`
}

func (*GenerateResponse) Descriptor

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

func (*GenerateResponse) ProtoMessage

func (*GenerateResponse) ProtoMessage()

func (*GenerateResponse) Reset

func (m *GenerateResponse) Reset()

func (*GenerateResponse) String

func (m *GenerateResponse) String() string

type GeneratorClient

type GeneratorClient interface {
	Generate(ctx context.Context, in *GenerateRequest, opts ...grpc.CallOption) (*GenerateResponse, error)
}

func NewGeneratorClient

func NewGeneratorClient(cc *grpc.ClientConn) GeneratorClient

type GeneratorServer

type GeneratorServer interface {
	Generate(context.Context, *GenerateRequest) (*GenerateResponse, error)
}

Directories

Path Synopsis
client/grpc
Package grpc provides a gRPC client for the add service.
Package grpc provides a gRPC client for the add service.
handlers
third_party
googleapis/google/api
Package google_api is a generated protocol buffer package.
Package google_api is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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