mirror of
https://github.com/aljazceru/ark.git
synced 2025-12-18 04:34:19 +01:00
Add interface layer (#23)
* implement grpc interface * rework GetEventStream rpc * implement Ping & GetEventStream * remove dev_portal * Compile protos * Empty gitignore --------- Co-authored-by: altafan <18440657+altafan@users.noreply.github.com>
This commit is contained in:
@@ -1,22 +0,0 @@
|
||||
package grpc_interface
|
||||
|
||||
import (
|
||||
log "github.com/sirupsen/logrus"
|
||||
)
|
||||
|
||||
// TODO: Edit this file to something more meaningful for your application.
|
||||
type service struct {}
|
||||
|
||||
func NewService() (*service, error) {
|
||||
return &service{}, nil
|
||||
}
|
||||
|
||||
func (s *service) Start() error {
|
||||
log.Debug("service is listening")
|
||||
return nil
|
||||
}
|
||||
|
||||
func (s *service) Stop() {
|
||||
log.Debug("service stopped")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user