portal/interfaces/api.go

17 lines
310 B
Go
Raw Normal View History

2024-01-12 00:11:53 +00:00
package interfaces
import (
"git.lumeweb.com/LumeWeb/portal/api/router"
)
type API interface {
Initialize(portal Portal, protocol Protocol) error
2024-01-12 00:11:53 +00:00
}
type APIRegistry interface {
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
}