app

package
v0.1.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Base

type Base struct {
	*ehu.Middleware
	*Info
	*ServerConfig

	ProjectorListener ehu.DelegateEventHandler
	SetupCallbacks    []func() error
	NewContext        func(namespace string) context.Context
	Router            *mux.Router

	Jwt    *net.JwtController
	Secure bool
	// contains filtered or unexported fields
}

func NewAppBase

func NewAppBase(appInfo *Info, serverConfig *ServerConfig, secure bool, middleware *ehu.Middleware) (ret *Base)

func (*Base) NoFound

func (o *Base) NoFound(w http.ResponseWriter, _ *http.Request)

func (*Base) StartServer

func (o *Base) StartServer() (err error)

type Info

type Info struct {
	AppName       string
	ProductName   string
	WorkingFolder string
}

type ServerConfig

type ServerConfig struct {
	ServerAddress string
	ServerPort    int
}
func (o *ServerConfig) Link() (ret string)

func (*ServerConfig) Listen

func (o *ServerConfig) Listen() (ret string)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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