tpl

package
v1.2.32 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2022 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Head(hasTypeExt bool, sdkLib ...string) string

func NewenpdointHeader

func NewenpdointHeader() *enpdointHeader

func StreamHead

func StreamHead(qw422016 *qt422016.Writer, hasTypeExt bool, sdkLib ...string)

func WriteHead

func WriteHead(qq422016 qtio422016.Writer, hasTypeExt bool, sdkLib ...string)

Types

type ApiMain

type ApiMain struct {
	Name string
	// contains filtered or unexported fields
}

func NewApiMain

func NewApiMain(name string, a TypeAuth) *ApiMain

func (*ApiMain) CreateGoMod added in v1.2.15

func (a *ApiMain) CreateGoMod(packageName string, routes []string) string

func (*ApiMain) CreateMain

func (a *ApiMain) CreateMain(packageName string, routes []string) string

func (*ApiMain) StreamCreateGoMod added in v1.2.15

func (a *ApiMain) StreamCreateGoMod(qw422016 *qt422016.Writer, packageName string, routes []string)

func (*ApiMain) StreamCreateMain

func (a *ApiMain) StreamCreateMain(qw422016 *qt422016.Writer, packageName string, routes []string)

func (*ApiMain) WriteCreateGoMod added in v1.2.15

func (a *ApiMain) WriteCreateGoMod(qq422016 qtio422016.Writer, packageName string, routes []string)

func (*ApiMain) WriteCreateMain

func (a *ApiMain) WriteCreateMain(qq422016 qtio422016.Writer, packageName string, routes []string)

type EndpointTpl

type EndpointTpl struct {
	apis.ApiRoute
	dbEngine.Table
}

func NewEndpointTpl

func NewEndpointTpl(route apis.ApiRoute, table dbEngine.Table) *EndpointTpl

func (*EndpointTpl) ApisFile

func (e *EndpointTpl) ApisFile() string

func (*EndpointTpl) NameRoutes

func (e *EndpointTpl) NameRoutes() string

func (*EndpointTpl) RequiredFields added in v1.2.14

func (e *EndpointTpl) RequiredFields() string

func (*EndpointTpl) StreamApisFile

func (e *EndpointTpl) StreamApisFile(qw422016 *qt422016.Writer)

func (*EndpointTpl) StreamNameRoutes

func (e *EndpointTpl) StreamNameRoutes(qw422016 *qt422016.Writer)

func (*EndpointTpl) StreamRequiredFields added in v1.2.14

func (e *EndpointTpl) StreamRequiredFields(qw422016 *qt422016.Writer)

func (*EndpointTpl) WriteApisFile

func (e *EndpointTpl) WriteApisFile(qq422016 qtio422016.Writer)

func (*EndpointTpl) WriteNameRoutes

func (e *EndpointTpl) WriteNameRoutes(qq422016 qtio422016.Writer)

func (*EndpointTpl) WriteRequiredFields added in v1.2.14

func (e *EndpointTpl) WriteRequiredFields(qq422016 qtio422016.Writer)

type TypeAuth added in v1.2.8

type TypeAuth uint8
const (
	Basic TypeAuth = iota
	JWT
	OAuth2
)

Jump to

Keyboard shortcuts

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