generator

package
v0.1.12 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileInfo added in v0.1.7

type FileInfo struct {
	Pkg           string // should be Pkg alias name.
	GoPackageName string
	GoImportPath  string
}

FileInfo contains info from proto files needed to import generated proto to create a server

type Generator

type Generator struct {
	Tests     bool   // will generate tests for all RPC methods generated default is true.
	ConnectGo bool   // if true will generate connectGo compatable code default is false.
	Server    bool   // if true will generate a server for the services and methods generated default is false.
	GoModPath string // the path of your generated code, Required for server to correctly import newly generated code.
	Firebase  bool   // if you want a firebase db + auth generated for you

	// TODO move these to be passed into funcs rather than kept in generator
	ServerTemplate         string
	RegisterServerTemplate string
}

Generator holds config for determining what code is generated

func (*Generator) Run

func (g *Generator) Run(gen *protogen.Plugin) error

Run will generate RPC methods for your files.

Jump to

Keyboard shortcuts

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