yoake/internal/comm/model/interface.go

21 lines
434 B
Go
Raw Normal View History

2022-11-13 00:17:42 -06:00
package model
import (
"github.com/labstack/echo/v4"
)
type CommMethod interface {
SupportedMIME() []string
SendGenericMessage(message GenericMessage) error
}
type CommMethodWithRoute interface {
RegisterRoute(g *echo.Group)
}
type Communicator interface {
GetMethod(method string) CommMethod
GetMethodsByMIME(mime string) []CommMethod
2022-11-18 23:37:30 -06:00
SendGenericMessage(preferredMethod string, message GenericMessage, force bool) error
2022-11-13 00:17:42 -06:00
}