Scaffolding

This commit is contained in:
altafan
2023-10-30 14:43:51 +01:00
commit bd6199a787
32 changed files with 567 additions and 0 deletions

View File

View File

View File

View File

@@ -0,0 +1,22 @@
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")
}

16
internal/interface/service.go Executable file
View File

@@ -0,0 +1,16 @@
package service_interface
import (
grpc_interface "github.com/ark-network/ark/internal/interface/grpc"
)
// TODO: Edit this file to something more meaningful for your application.
type Service interface {
Start() error
Stop()
}
func NewService() (Service, error) {
return grpc_interface.NewService()
}