template

package
v0.0.0-...-4a856ae Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Gen

func Gen(writer io.Writer, def ServiceDefinition) error

Types

type ServiceDefinition

type ServiceDefinition struct {
	Package string
	Name    string
	Methods []ServiceMethod
}

func (ServiceDefinition) GenName

func (s ServiceDefinition) GenName() string

type ServiceMethod

type ServiceMethod struct {
	Name         string
	Path         string
	ReqTypeName  string
	RespTypeName string
}

Jump to

Keyboard shortcuts

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