protobuilder

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddProto

func AddProto(c *cli.Context) error

func GenApi

func GenApi(c *cli.Context) (err error)

func GenSvc

func GenSvc(c *cli.Context) error

Types

type Method

type Method struct {
	Service string
	Name    string
	Request string
	Reply   string
}

Method is a proto Method.

type Proto

type Proto struct {
	Name         string
	Path         string
	Service      string
	ServiceLower string
	Package      string
	GoPackage    string
}

func (*Proto) Generate

func (p *Proto) Generate() error

Generate generate a proto template.

type Service

type Service struct {
	TargetPackageName string
	Package           string
	Service           string
	Methods           []*Method
	GoogleEmpty       bool
	UseIO             bool
	UseContext        bool
}

Service is a proto Service.

Jump to

Keyboard shortcuts

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