proto

package
v0.31.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package proto contains proto related mage targets.

Index

Constants

This section is empty.

Variables

View Source
var (
	// Owner is the schema owner.
	Owner = "taxibeat"
	// Registry is the schema registry.
	Registry = "proto-schemas"
	// SchemasLocation is the path to the schemas.
	SchemasLocation = "proto/schemas"
	// GeneratedLocation is the target location fot the generated files.
	GeneratedLocation = "proto/generated"
	// Service is the service name. Should be set externally.
	Service = ""
)

Functions

This section is empty.

Types

type Proto

type Proto mg.Namespace

Proto groups together proto related tasks.

func (Proto) SchemaGenerate

func (Proto) SchemaGenerate(schema, version string) error

SchemaGenerate generates a single proto schema.

func (Proto) SchemaGenerateAll

func (Proto) SchemaGenerateAll() error

SchemaGenerateAll generates all the schemas found.

func (Proto) SchemaValidateAll added in v0.12.3

func (p Proto) SchemaValidateAll() error

SchemaValidateAll lints the schemas in the repository against the GitHub schemas.

Jump to

Keyboard shortcuts

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