archive1.go 359 B

12345678910111213141516171819202122232425
  1. package gorpc
  2. import (
  3. "go-common/library/net/rpc"
  4. )
  5. const (
  6. _appid = "archive.service"
  7. )
  8. var (
  9. _noArg = &struct{}{}
  10. )
  11. // Service2 is archive rpc client.
  12. type Service2 struct {
  13. client *rpc.Client2
  14. }
  15. // New2 new a archive rpc client.
  16. func New2(c *rpc.ClientConfig) (s *Service2) {
  17. s = &Service2{}
  18. s.client = rpc.NewDiscoveryCli(_appid, c)
  19. return
  20. }