func WithSetWelcomeMessageFunc(f func(string) error) Option {
	return optionFunc(func(s *Service) {
		s.setWelcomeMessageFunc = f
	})
}
WithSetWelcomeMessageFunc sets the mock implementation of the SetWelcomeMessage function
package mock
import (
	"context"
	"errors"
	"time"
	"github.com/ethsana/sana/pkg/bzz"
	"github.com/ethsana/sana/pkg/p2p"
	"github.com/ethsana/sana/pkg/swarm"
	ma "github.com/multiformats/go-multiaddr"
)
type Service struct {
	addProtocolFunc       func(p2p.ProtocolSpec) error
	connectFunc           func(ctx context.Context, addr ma.Multiaddr) (address *bzz.Address, err error)
	disconnectFunc        func(overlay swarm.Address) error
	peersFunc             func() []p2p.Peer
	blocklistedPeersFunc  func() ([]p2p.Peer, error)
	addressesFunc         func() ([]ma.Multiaddr, error)
	setNotifierFunc       func(p2p.PickyNotifier)
	setWelcomeMessageFunc func(string) error
	getWelcomeMessageFunc func() string
	blocklistFunc         func(swarm.Address, time.Duration) error
	welcomeMessage        string
}
func WithAddProtocolFunc(f func(p2p.ProtocolSpec) error) Option {
	return optionFunc(func(s *Service) {
		s.addProtocolFunc = f
	})
}
func WithSetPickyNotifierFunc(f func(p2p.PickyNotifier)) Option {
	return optionFunc(func(s *Service) {
		s.setNotifierFunc = f
	})
}
func WithConnectFunc(f func(ctx context.Context, addr ma.Multiaddr) (address *bzz.Address, err error)) Option {
	return optionFunc(func(s *Service) {
		s.connectFunc = f
	})
}
func WithDisconnectFunc(f func(overlay swarm.Address) error) Option {
	return optionFunc(func(s *Service) {
		s.disconnectFunc = f
	})
}
func WithPeersFunc(f func() []p2p.Peer) Option {
	return optionFunc(func(s *Service) {
		s.peersFunc = f
	})
}
func WithBlocklistedPeersFunc(f func() ([]p2p.Peer, error)) Option {
	return optionFunc(func(s *Service) {
		s.blocklistedPeersFunc = f
	})
}
func WithAddressesFunc(f func() ([]ma.Multiaddr, error)) Option {
	return optionFunc(func(s *Service) {
		s.addressesFunc = f
	})
}
func WithGetWelcomeMessageFunc(f func() string) Option {
	return optionFunc(func(s *Service) {
		s.getWelcomeMessageFunc = f
	})
}