tpl

package
v1.2.9 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 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(crud, unSafe bool) string

func NewenpdointHeader

func NewenpdointHeader() *enpdointHeader

func StreamHead

func StreamHead(qw422016 *qt422016.Writer, crud, unSafe bool)

func WriteHead

func WriteHead(qq422016 qtio422016.Writer, crud, unSafe bool)

Types

type ApiMain

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

func NewApiMain

func NewApiMain(name string, a TypeAuth) *ApiMain

func (*ApiMain) CreateMain

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

func (*ApiMain) StreamCreateMain

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

func (*ApiMain) WriteCreateMain

func (a *ApiMain) WriteCreateMain(qq422016 qtio422016.Writer, apiPath 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) StreamApisFile

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

func (*EndpointTpl) StreamNameRoutes

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

func (*EndpointTpl) WriteApisFile

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

func (*EndpointTpl) WriteNameRoutes

func (e *EndpointTpl) WriteNameRoutes(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