application

package
v2.0.0-...-97dc442 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReloadAll

func ReloadAll()

Types

type App

type App struct {
	// contains filtered or unexported fields
}
var Instance *App

func GetInstance

func GetInstance() *App

func (*App) GetApps

func (a *App) GetApps() []Application

func (*App) Register

func (a *App) Register(applications ...Application) *App

func (*App) Run

func (a *App) Run() *App

type Application

type Application interface {
	Register() error
	Router() error
	WhenReady() error
	Name() string
}

type Priority

type Priority int
const (
	HIGHEST Priority = 0
	HIGH    Priority = 1
	DEFAULT Priority = 5
	LOW     Priority = 6
	LOWEST  Priority = 7
)

type PriorityInterface

type PriorityInterface interface {
	Priority() Priority
}

type ReloadInterface

type ReloadInterface interface {
	Reload() error
}

Jump to

Keyboard shortcuts

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