portal/interfaces/protocol.go

13 lines
238 B
Go
Raw Normal View History

2024-01-12 00:11:53 +00:00
package interfaces
type Protocol interface {
Initialize(portal Portal) error
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
}