qrpc

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Method

type Method struct {
	Name         string
	IsDeprecated bool
	Comment      string
	InType       string
	OutType      string
}

Method represents RPC method of proto service

func (Method) IsBackward

func (m Method) IsBackward() bool

IsBackward checks if this method is backward

func (Method) IsBidirectional

func (m Method) IsBidirectional() bool

IsBidirectional checks if this method is bidirectional

func (Method) IsForward

func (m Method) IsForward() bool

IsForward checks if this method is forward

type Service

type Service struct {
	Name                 string
	IsDeprecated         bool
	ForwardMethods       []Method
	BackwardMethods      []Method
	BidirectionalMethods []Method
}

Service represent proto RPC service

Jump to

Keyboard shortcuts

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