Add model to service (#1819)

This commit is contained in:
Asim Aslam
2020-07-11 21:15:59 +01:00
committed by GitHub
parent 13ea0eec02
commit 85ae232936
4 changed files with 23 additions and 0 deletions

View File

@@ -3,6 +3,7 @@ package service
import (
"github.com/micro/go-micro/v2/client"
"github.com/micro/go-micro/v2/model"
"github.com/micro/go-micro/v2/server"
)
@@ -18,6 +19,8 @@ type Service interface {
Client() client.Client
// Server is for handling requests and events
Server() server.Server
// Model is used to access data
Model() model.Model
// Run the service
Run() error
// The service implementation