proto

package
v0.1.155 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2026 License: MIT Imports: 20 Imported by: 1

Documentation

Index

Constants

View Source
const InfoConfigurationName = "info.codefly.yaml"

Variables

This section is empty.

Functions

func CompanionImage

func CompanionImage(ctx context.Context) (*resources.DockerImage, error)

func CreateBufConfiguration

func CreateBufConfiguration(ctx context.Context, bufDir string, service string, language languages.Language) error

func GenerateGRPC

func GenerateGRPC(ctx context.Context, language languages.Language, destination string, service string, endpoints ...*basev0.Endpoint) error

GenerateGRPC runs buf in a companion (Docker/Nix/local via golden wrapper) to generate gRPC client code for the given language and endpoints.

func GenerateOpenAPI

func GenerateOpenAPI(ctx context.Context, language languages.Language, destination string, _ string, endpoints ...*basev0.Endpoint) error

GenerateOpenAPI runs the OpenAPI generator in a companion (golden wrapper) to produce client code for the given language.

Types

type Buf added in v0.1.83

type Buf struct {
	Dir string
	// contains filtered or unexported fields
}

func NewBuf added in v0.1.83

func NewBuf(ctx context.Context, dir string) (*Buf, error)

func (*Buf) Generate added in v0.1.83

func (g *Buf) Generate(ctx context.Context) error

Generate runs buf in a companion (golden wrapper) to regenerate code from local proto files.

func (*Buf) WithCache added in v0.1.83

func (g *Buf) WithCache(location string)

type GoConfiguration

type GoConfiguration struct {
	Destination     string
	GoPackagePrefix string
}

type Info

type Info struct {
	Version string `yaml:"version"`
}

type PythonConfiguration added in v0.1.139

type PythonConfiguration struct {
	Destination string
}

type TypeScriptConfiguration added in v0.1.155

type TypeScriptConfiguration struct {
	Destination string
}

Jump to

Keyboard shortcuts

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