(log func(string, ...any), signServers ...string)
| 42 | var ErrVersionMismatch = errors.New("sign version mismatch") |
| 43 | |
| 44 | func NewSigner(log func(string, ...any), signServers ...string) *Client { |
| 45 | client := &Client{ |
| 46 | instances: utils.Map(signServers, func(s string) *remote { |
| 47 | return &remote{server: s} |
| 48 | }), |
| 49 | httpClient: &http.Client{}, |
| 50 | extraHeaders: http.Header{}, |
| 51 | log: log, |
| 52 | } |
| 53 | go client.test() |
| 54 | return client |
| 55 | } |
| 56 | |
| 57 | func (c *Client) Release() {} |
| 58 |
no test coverage detected