2019-06-06 11:02:00 +03:00
|
|
|
// Package service encapsulates the client, server and other interfaces to provide a complete micro service.
|
|
|
|
package service
|
2019-08-06 19:53:14 +03:00
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/micro/go-micro/client"
|
|
|
|
"github.com/micro/go-micro/server"
|
|
|
|
)
|
|
|
|
|
|
|
|
type Service interface {
|
|
|
|
Init(...Option)
|
|
|
|
Options() Options
|
|
|
|
Client() client.Client
|
|
|
|
Server() server.Server
|
|
|
|
Run() error
|
|
|
|
String() string
|
|
|
|
}
|