generator

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package generator generates a gokit service based on a service definition.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrGenIgnored = errors.New("ignored files")
)

Functions

func GenerateBaronFile

func GenerateBaronFile(sd *svcdef.Svcdef, conf gengokit.Config, baronPath string) error

GenerateBaronFile returns a gokit service generated from a service definition (svcdef), the package to the root of the generated service goPackage, the package to the .pb.baron.go service struct files

func GenerateGokit

func GenerateGokit(sd *svcdef.Svcdef, conf gengokit.Config) (map[string]io.Reader, error)

GenerateGokit returns a gokit service generated from a service definition (svcdef), the package to the root of the generated service goPackage, the package to the .pb.go service struct files (goPBPackage) and any prevously generated files.

func WriteGenFile

func WriteGenFile(file io.Reader, path string) error

WriteGenFile writes a file at path to the filesystem

Types

This section is empty.

Jump to

Keyboard shortcuts

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