router

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Names

type Names struct {
	StructName          string
	ConstructorName     string
	HandlersField       string
	HandlersType        string
	ErrorConverterField string
	R                   string
	JsonrpcPkg          string
}

type Router

type Router struct {
	Names
	// contains filtered or unexported fields
}

func NewRouter

func NewRouter(proto *protog.Protocol, currentPkg *astinfo2.Package, handlersStruct *astinfo2.Type, names *Names) (*Router, error)

func (*Router) GenerateSrc

func (r *Router) GenerateSrc() (*jen.File, error)

Jump to

Keyboard shortcuts

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