github.com/status-im/status-go@v1.1.0/services/app-general/service.go (about)

     1  package appgeneral
     2  
     3  import (
     4  	"github.com/ethereum/go-ethereum/p2p"
     5  	"github.com/ethereum/go-ethereum/rpc"
     6  )
     7  
     8  type Service struct{}
     9  
    10  func New() *Service {
    11  	return &Service{}
    12  }
    13  
    14  func NewService() *Service {
    15  	return &Service{}
    16  }
    17  
    18  func (s *Service) APIs() []rpc.API {
    19  	return []rpc.API{
    20  		{
    21  			Namespace: "appgeneral",
    22  			Version:   "0.1.0",
    23  			Service:   NewAPI(s),
    24  		},
    25  	}
    26  }
    27  
    28  func (s *Service) Protocols() []p2p.Protocol {
    29  	return nil
    30  }
    31  
    32  func (s *Service) Start() error {
    33  	return nil
    34  }
    35  
    36  func (s *Service) Stop() error {
    37  	return nil
    38  }