You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

31 lines
823 B

package base
import (
"context"
"yunyan/lego/core"
"github.com/smallnest/rpcx/client"
)
type Result struct {
Index string
Result interface{}
Err error
}
type ISingleService interface {
core.IService
}
type IClusterServiceBase interface {
core.IService
GetTag() string //获取集群标签
}
type IRPCXService interface {
IClusterServiceBase
Register(name string, fn interface{}) (err error)
RpcCall(ctx context.Context, servicePath string, serviceMethod string, args interface{}, reply interface{}) (err error)
RpcGo(ctx context.Context, servicePath string, serviceMethod string, args interface{}, reply interface{}, done chan *client.Call) (call *client.Call, err error)
RpcBroadcast(ctx context.Context, servicePath string, serviceMethod string, args interface{}, reply interface{}) (err error)
}