gen

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProtoSuffix = ".proto"

Functions

func EmptyService

func EmptyService(c *cmd.Command, args []string) error

func GrpcClient

func GrpcClient(c *cmd.Command, args []string) error

func GrpcServer

func GrpcServer(c *cmd.Command, args []string) error

func HttpClient

func HttpClient(c *cmd.Command, args []string) error

func HttpServer

func HttpServer(c *cmd.Command, args []string) error

func Main

func Main(c *cmd.Command, args []string) error

Types

type AST

type AST struct {
	*proto.Proto
	Filename string
	ImportPb string
	Package  *proto.Package
	Imports  []*proto.Import
	Options  []*proto.Option
	Messages []*proto.Message
	Enums    []*Enum
	Services []*Service
}

type Enum

type Enum struct {
	*proto.Enum
	EnumFields []*proto.EnumField
}

type Service

type Service struct {
	*proto.Service
	Options []*proto.Option
	Methods []*proto.RPC
}

Jump to

Keyboard shortcuts

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