yarpc

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package yarpc outputs yarpc service descriptions in Go code. It runs as a plugin for the Go protocol buffer compiler plugin. It is linked in to protoc-gen-yarpc.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Plugin

type Plugin struct {
	// contains filtered or unexported fields
}

yarpc is an implementation of the Go protocol buffer compiler's plugin architecture. It generates bindings for yarpc support.

func (*Plugin) Generate

func (g *Plugin) Generate(file *generator.FileDescriptor)

Generate generates code for the services in the given file.

func (*Plugin) GenerateImports

func (g *Plugin) GenerateImports(file *generator.FileDescriptor)

GenerateImports generates the import declaration for this file.

func (*Plugin) Init

func (g *Plugin) Init(gen *generator.Generator)

Init initializes the plugin.

func (*Plugin) Name

func (g *Plugin) Name() string

Name returns the name of this plugin, "yarpc".

func (*Plugin) P

func (g *Plugin) P(args ...interface{})

P forwards to g.gen.P.

Jump to

Keyboard shortcuts

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