This repository has been archived on 2024-02-11. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
astontest/adapters/stdoutstore/service.go

26 lines
423 B
Go

package stdoutstore
import (
"context"
"fmt"
)
func New() *Service {
return &Service{}
}
type Service struct {
}
func (s *Service) StoreReceived(_ context.Context, sender, message string) error {
fmt.Printf("Received '%s' from <%s>\n", message, sender)
return nil
}
func (s *Service) StoreSent(_ context.Context, sender, message string) error {
fmt.Printf("Sent '%s' to <%s>\n", message, sender)
return nil
}