rk_gen

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Copyright (c) 2020 rookie-ninja

Use of this source code is governed by an MIT-style license that can be found in the LICENSE file.

Use of this source code is governed by an MIT-style license that can be found in the LICENSE file.

Use of this source code is governed by an MIT-style license that can be found in the LICENSE file.

Index

Constants

This section is empty.

Variables

View Source
var GenInfo = genInfo{}
View Source
var GenPbDocInfo = genPbDocInfo{
	Sources: cli.NewStringSlice(),
	Imports: cli.NewStringSlice(),
	Type:    cli.NewStringSlice(),
	Output:  "",
	Name:    "",
}
View Source
var GenPbGoInfo = genPbGoInfo{
	ConfigFilePath: "",
	Sources:        cli.NewStringSlice(),
	Imports:        cli.NewStringSlice(),
}

Functions

func Gen

func Gen() *cli.Command

func GenPbDocAction

func GenPbDocAction(ctx *cli.Context) error

func GenPbDocCommand

func GenPbDocCommand() *cli.Command

Generate Go files from proto

func GenPbGoAction

func GenPbGoAction(ctx *cli.Context) error

func GenPbGoCommand

func GenPbGoCommand() *cli.Command

Generate Go files from proto

Types

type Doc

type Doc struct {
	Output string   `yaml:"output"`
	Name   string   `yaml:"name"`
	Type   []string `yaml:"type"`
}

type Proto

type Proto struct {
	Sources []string `yaml:"source"`
	Imports []string `yaml:"import"`
	Doc     *Doc     `yaml:"doc"`
}

type ProtoConfig

type ProtoConfig struct {
	Proto *Proto `yaml:"proto"`
}

Jump to

Keyboard shortcuts

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