status-go/services/chat/service.go

43 lines
654 B
Go
Raw Normal View History

2022-02-10 15:15:27 +00:00
package chat
import (
"github.com/ethereum/go-ethereum/p2p"
gethrpc "github.com/ethereum/go-ethereum/rpc"
"github.com/status-im/status-go/protocol"
)
2022-02-10 22:55:03 +00:00
func NewService() *Service {
return &Service{}
2022-02-10 15:15:27 +00:00
}
type Service struct {
2022-02-10 22:55:03 +00:00
messenger *protocol.Messenger
2022-02-10 15:15:27 +00:00
}
func (s *Service) Init(messenger *protocol.Messenger) {
s.messenger = messenger
}
func (s *Service) Start() error {
return nil
}
func (s *Service) Stop() error {
return nil
}
func (s *Service) APIs() []gethrpc.API {
return []gethrpc.API{
{
Namespace: "chat",
Version: "0.1.0",
Service: NewAPI(s),
},
}
}
func (s *Service) Protocols() []p2p.Protocol {
return nil
}