status-go/services/mailservers/service.go

37 lines
528 B
Go
Raw Normal View History

2019-09-04 06:25:33 +00:00
package mailservers
import (
"github.com/ethereum/go-ethereum/p2p"
"github.com/ethereum/go-ethereum/rpc"
)
func NewService(db *Database) *Service {
return &Service{db: db}
}
type Service struct {
db *Database
}
func (s *Service) Start() error {
2019-09-04 06:25:33 +00:00
return nil
}
func (s *Service) Stop() error {
return nil
}
func (s *Service) APIs() []rpc.API {
return []rpc.API{
{
Namespace: "mailservers",
Version: "0.1.0",
Service: NewAPI(s.db),
},
}
}
func (s *Service) Protocols() []p2p.Protocol {
return nil
}