up.go 341 B

1234567891011121314151617181920212223242526
  1. package client
  2. import (
  3. "go-common/library/net/rpc"
  4. )
  5. const (
  6. _appid = "archive.service.upcredit"
  7. )
  8. //Service rpc service
  9. type Service struct {
  10. client *rpc.Client2
  11. }
  12. //RPC interface
  13. type RPC interface {
  14. }
  15. //New create
  16. func New(c *rpc.ClientConfig) (s *Service) {
  17. s = &Service{
  18. client: rpc.NewDiscoveryCli(_appid, c),
  19. }
  20. return
  21. }