api

package
v0.0.0-...-9d0e06d Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddAdapter

func AddAdapter(adapter Adapter)

AddAdapter add the adapter to the list

func Start

func Start(appName string)

Start function that starts all the primary adapters

Types

type Adapter

type Adapter interface {
	Run() error
	GetName() string
	GetApps() []App
}

Adapter struct that define the adapter interface at abstract way

type App

type App interface {
	// BeforeStart execute before the application is loaded
	BeforeStart()
	// AfterStart execute when the servers are started, so, after all the applications is loaded
	AfterStart()
}

App struct that define which method the app instances should have

Directories

Path Synopsis
adapters
apps

Jump to

Keyboard shortcuts

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