apps

package
v0.0.0-...-0485310 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultWait

func DefaultWait()

func Start

func Start(app App)

Types

type ApiApp

type ApiApp interface {
	App
	GetGinEngine() (engine *gin.Engine)
	GetHttpServer() (svr *http.Server)
	Ready() (ok bool)
}

type ApiV2

type ApiV2 struct {
	// dependencies
	interfaces.WithConfigPath
	// contains filtered or unexported fields
}

func GetApiV2

func GetApiV2() *ApiV2

func NewApiV2

func NewApiV2() *ApiV2

func (*ApiV2) GetGinEngine

func (app *ApiV2) GetGinEngine() *gin.Engine

func (*ApiV2) GetHttpServer

func (app *ApiV2) GetHttpServer() *http.Server

func (*ApiV2) Init

func (app *ApiV2) Init()

func (*ApiV2) Ready

func (app *ApiV2) Ready() (ok bool)

func (*ApiV2) Start

func (app *ApiV2) Start()

func (*ApiV2) Stop

func (app *ApiV2) Stop()

func (*ApiV2) Wait

func (app *ApiV2) Wait()

type App

type App interface {
	Init()
	Start()
	Wait()
	Stop()
}

type Docker

type Docker struct {

	// dependencies
	interfaces.WithConfigPath
	// contains filtered or unexported fields
}

func GetDocker

func GetDocker(svr ServerApp) *Docker

func NewDocker

func NewDocker(svr ServerApp) *Docker

func (*Docker) GetParent

func (app *Docker) GetParent() (parent ServerApp)

func (*Docker) Init

func (app *Docker) Init()

func (*Docker) Ready

func (app *Docker) Ready() (ok bool)

func (*Docker) SetParent

func (app *Docker) SetParent(parent ServerApp)

func (*Docker) Start

func (app *Docker) Start()

func (*Docker) Stop

func (app *Docker) Stop()

func (*Docker) Wait

func (app *Docker) Wait()

type DockerApp

type DockerApp interface {
	App
	GetParent() (parent NodeApp)
	SetParent(parent NodeApp)
	Ready() (ok bool)
}

type NodeApp

type NodeApp interface {
	App
	interfaces.WithConfigPath
}

func GetServerV2

func GetServerV2() NodeApp

func NewServerV2

func NewServerV2() (app NodeApp)

type ServerApp

type ServerApp interface {
	NodeApp
	GetApi() (api ApiApp)
	GetNodeService() (masterSvc interfaces.NodeService)
}

type ServerV2

type ServerV2 struct {

	// dependencies
	interfaces.WithConfigPath
	// contains filtered or unexported fields
}

func (*ServerV2) GetApi

func (app *ServerV2) GetApi() ApiApp

func (*ServerV2) GetNodeService

func (app *ServerV2) GetNodeService() interfaces.NodeService

func (*ServerV2) Init

func (app *ServerV2) Init()

func (*ServerV2) Start

func (app *ServerV2) Start()

func (*ServerV2) Stop

func (app *ServerV2) Stop()

func (*ServerV2) Wait

func (app *ServerV2) Wait()

Jump to

Keyboard shortcuts

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