proto

package
v0.1.62 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: MIT Imports: 16 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) (string, 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

func GenerateOpenAPI

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

Types

type GoConfiguration

type GoConfiguration struct {
	Destination     string
	GoPackagePrefix string
}

type Info

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

type Proto

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

func NewProto

func NewProto(ctx context.Context, dir string) (*Proto, error)

func (*Proto) Generate

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

func (*Proto) WithCache

func (g *Proto) WithCache(location string)

Jump to

Keyboard shortcuts

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