MCPcopy Create free account
hub / github.com/LagrangeDev/LagrangeGo / NewSigner

Function NewSigner

client/sign/sign.go:44–55  ·  view source on GitHub ↗
(log func(string, ...any), signServers ...string)

Source from the content-addressed store, hash-verified

42var ErrVersionMismatch = errors.New("sign version mismatch")
43
44func 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
57func (c *Client) Release() {}
58

Callers 3

AddSignServerMethod · 0.92
AddSignHeaderMethod · 0.92
UseVersionMethod · 0.92

Calls 2

testMethod · 0.95
MapFunction · 0.92

Tested by

no test coverage detected