generator

package
v0.0.0-...-41afc66 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KafkaPackage string = "kafka github.com/segmentio/kafka-go"
	Json         string = "encoding/json"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Arg

type Arg struct {
	Name  string
	Dtype string
}

type Builder

type Builder struct {
	PackageName   string
	Imports       []string
	InterfaceName string
	Methods       []Method
}

type Generator

type Generator struct {
	InterFaceFile string
	OutPutFile    string
	TemplateFile  string
}

func (Generator) Generate

func (g Generator) Generate()

type Method

type Method struct {
	Name   string // name of the method
	Args   []Arg
	Result []Arg
}

Jump to

Keyboard shortcuts

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