generator

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

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

Generator is struct for analyzing protobuf definition and factory graphql definition in protobuf to generate.

func New

func New(files []*spec.File, args *spec.Params) *Generator

func (*Generator) Generate

func (g *Generator) Generate(tmpl string, fs []string) ([]*plugin.CodeGeneratorResponse_File, error)

type Logger

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

func NewLogger

func NewLogger(w io.Writer) *Logger

func (*Logger) Write

func (l *Logger) Write(format string, args ...interface{})

type Template

type Template struct {
	RootPackage *spec.Package

	Packages   []*spec.Package
	Types      []*spec.Message
	Interfaces []*spec.Message
	Enums      []*spec.Enum
	Inputs     []*spec.Message
	Services   []*spec.Service
}

Jump to

Keyboard shortcuts

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