mock

package
v0.9.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(file File) ([]byte, error)

Generate generates Go kit endpoint sets for services.

Types

type File

type File struct {
	gentypes.File

	// Interfaces represents the interfaces that needs to be mocked.
	Interfaces []Interface
}

File represents one or more interfaces and provides information for generating mocks for these interfaces.

type Interface

type Interface struct {
	Object *types.TypeName
	Type   *types.Interface
}

Interface represents an interface.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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