The core protocol of WoopChain
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
woop/api/service/newclientsupport/service.go

36 lines
803 B

package newclientsupport
import (
msg_pb "github.com/harmony-one/harmony/api/proto/message"
)
// Service is the client support service.
type Service struct {
server *msg_pb.Server
messageChan chan *msg_pb.Message
}
// New returns new client support service.
func New() *Service {
return &Service{server: msg_pb.NewServer()}
}
// StartService starts client support service.
func (s *Service) StartService() {
s.server.Start()
}
// StopService stops client support service.
func (s *Service) StopService() {
s.server.Stop()
}
// SetMessageChan sets up message channel to service.
func (s *Service) SetMessageChan(messageChan chan *msg_pb.Message) {
s.messageChan = messageChan
}
// NotifyService notify service
func (s *Service) NotifyService(params map[string]interface{}) {
return
}