mirror of
				https://github.com/go-micro/go-micro.git
				synced 2025-10-30 23:27:41 +02:00 
			
		
		
		
	Update internal service definition
This commit is contained in:
		| @@ -6,11 +6,20 @@ import ( | ||||
| 	"github.com/micro/go-micro/server" | ||||
| ) | ||||
|  | ||||
| // Service is an interface for a micro service | ||||
| type Service interface { | ||||
| 	// The service name | ||||
| 	Name() string | ||||
| 	// Init initialises options | ||||
| 	Init(...Option) | ||||
| 	// Options returns the current options | ||||
| 	Options() Options | ||||
| 	// Client is used to call services | ||||
| 	Client() client.Client | ||||
| 	// Server is for handling requests and events | ||||
| 	Server() server.Server | ||||
| 	// Run the service | ||||
| 	Run() error | ||||
| 	// The service implementation | ||||
| 	String() string | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user