2024-01-12 00:11:53 +00:00
|
|
|
package interfaces
|
|
|
|
|
|
|
|
import (
|
|
|
|
"git.lumeweb.com/LumeWeb/portal/api/router"
|
|
|
|
)
|
|
|
|
|
|
|
|
type API interface {
|
2024-01-12 04:13:10 +00:00
|
|
|
Initialize(portal Portal, protocol Protocol) error
|
2024-01-12 00:11:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type APIRegistry interface {
|
2024-01-12 04:13:10 +00:00
|
|
|
All() map[string]API
|
|
|
|
Register(name string, APIRegistry API)
|
2024-01-12 00:11:53 +00:00
|
|
|
Get(name string) (API, error)
|
|
|
|
Router() *router.ProtocolRouter
|
|
|
|
}
|