123456789101112131415161718192021222324252627282930313233343536 |
- package client
- import (
- "context"
- "go-common/app/service/main/identify-game/model"
- "go-common/library/net/rpc"
- )
- const (
- _delCache = "RPC.DelCache"
- _appid = "identify.service.game"
- )
- var (
- _noRes = &struct{}{}
- )
- // Client Request Client
- type Client struct {
- client *rpc.Client2
- }
- // New Request Client
- func New(c *rpc.ClientConfig) (cli *Client) {
- cli = &Client{
- client: rpc.NewDiscoveryCli(_appid, c),
- }
- return
- }
- // DelCache del token cache.
- func (cli *Client) DelCache(c context.Context, arg *model.CleanCacheArgs) (err error) {
- err = cli.client.Call(c, _delCache, arg, _noRes)
- return
- }
|