dto

package
v0.0.0-...-2cadf5c Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Field

type Field struct {
	Name       string
	CheckLen   bool
	DefaultVal string
}

type Message

type Message struct {
	Name   string
	IsReq  bool
	IsRsp  bool
	Fields []Field
}

type Params

type Params struct {
	// contains filtered or unexported fields
}

func (*Params) Generate

func (a *Params) Generate(config helper.GenerateConfig)

func (*Params) Setup

func (a *Params) Setup(plugin *protogen.Plugin)

type ParamsTpl

type ParamsTpl struct {
	ProjName string
	Messages []Message
}

func (*ParamsTpl) Render

func (t *ParamsTpl) Render() string

Jump to

Keyboard shortcuts

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