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.
 
 
 

25 lines
359 B

package gorpc
import (
"go-common/library/net/rpc"
)
const (
_appid = "archive.service"
)
var (
_noArg = &struct{}{}
)
// Service2 is archive rpc client.
type Service2 struct {
client *rpc.Client2
}
// New2 new a archive rpc client.
func New2(c *rpc.ClientConfig) (s *Service2) {
s = &Service2{}
s.client = rpc.NewDiscoveryCli(_appid, c)
return
}