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.
26 lines
341 B
26 lines
341 B
package client |
|
|
|
import ( |
|
"go-common/library/net/rpc" |
|
) |
|
|
|
const ( |
|
_appid = "archive.service.upcredit" |
|
) |
|
|
|
//Service rpc service |
|
type Service struct { |
|
client *rpc.Client2 |
|
} |
|
|
|
//RPC interface |
|
type RPC interface { |
|
} |
|
|
|
//New create |
|
func New(c *rpc.ClientConfig) (s *Service) { |
|
s = &Service{ |
|
client: rpc.NewDiscoveryCli(_appid, c), |
|
} |
|
return |
|
}
|
|
|