26 lines
423 B
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
|
|
}
|