butler/internal/modules/messenger/interface.go

17 lines
323 B
Go
Raw Normal View History

package messenger
2023-08-13 13:22:15 +00:00
//go:generate mockgen -source=$GOFILE -destination=mocks/$GOFILE -package=mocks
import "context"
type Message struct {
ChatID string
UserID string
Text string
}
type IMessenger interface {
GetMessage(ctx context.Context) (*Message, error)
SendMessage(ctx context.Context, msg *Message) error
}