2024-01-12 00:11:53 +00:00
|
|
|
package interfaces
|
|
|
|
|
|
|
|
type Protocol interface {
|
2024-01-12 13:21:41 +00:00
|
|
|
Initialize(portal Portal) error
|
2024-01-12 04:13:10 +00:00
|
|
|
Start() error
|
2024-01-12 00:11:53 +00:00
|
|
|
}
|
2024-01-16 01:10:15 +00:00
|
|
|
|
|
|
|
type ProtocolRegistry interface {
|
|
|
|
Register(name string, protocol Protocol)
|
|
|
|
Get(name string) (Protocol, error)
|
|
|
|
All() map[string]Protocol
|
|
|
|
}
|