schema

package
v1.4.8 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AppId       string
	ServiceName string
	Version     string
	SaveDir     string
)

Functions

func NewSchemaCommand

func NewSchemaCommand(parent *cobra.Command) *cobra.Command

func SchemaCommandFunc

func SchemaCommandFunc(_ *cobra.Command, args []string)

Types

type Config

type Config struct {
	SaveDir string
}

type SchemaFileWriter

type SchemaFileWriter struct {
	Dir string
}

func (*SchemaFileWriter) Write

func (w *SchemaFileWriter) Write(schemas []*pb.Schema) error

type SchemaStdoutWriter

type SchemaStdoutWriter struct {
}

func (*SchemaStdoutWriter) Write

func (w *SchemaStdoutWriter) Write(schemas []*pb.Schema) error

type SchemaWriter

type SchemaWriter interface {
	Write([]*pb.Schema) error
}

func NewSchemaWriter

func NewSchemaWriter(cfg Config) SchemaWriter

Jump to

Keyboard shortcuts

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