generator

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const FilenameSuffix = "_grpc_mock.pb.go"

Variables

This section is empty.

Functions

func GenerateFile

func GenerateFile(version string, gen *protogen.Plugin, file *protogen.File, mocker Mocker) *protogen.GeneratedFile

Types

type Mocker

type Mocker interface {
	Name() string
	Mock(g *protogen.GeneratedFile, file *protogen.File)
}

Mocker implements the mock interface for .proto file.

Jump to

Keyboard shortcuts

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