handler

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	MethodOptExt protoreflect.ExtensionType

	MethodOptIdent    protogen.GoIdent
	MethodOptExtIdent protogen.GoIdent
	MethodErrDefIdent protogen.GoIdent
	AdviceIdent       protogen.GoIdent
}

type Generator

type Generator[MethodOpt MethodOption] struct {
	// contains filtered or unexported fields
}

func NewGenerator

func NewGenerator[MethodOpt MethodOption](conf Config) Generator[MethodOpt]

func (Generator[MethodOpt]) Generate

func (g Generator[MethodOpt]) Generate(plugin *protogen.Plugin, file *protogen.File) error

type MethodOption

type MethodOption interface {
	GetMethodErrorDefinitions() []*custom_option.MethodErrorDefinition
}

Jump to

Keyboard shortcuts

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