MCPcopy Create free account
hub / github.com/SignTools/SignTools / MakeSelfHosted

Function MakeSelfHosted

src/builders/selfhosted.go:16–25  ·  view source on GitHub ↗
(data *SelfHostedData)

Source from the content-addressed store, hash-verified

14}
15
16func MakeSelfHosted(data *SelfHostedData) *SelfHosted {
17 return &SelfHosted{
18 SelfHostedData: data,
19 Client: sling.New().Client(MakeClient()).
20 Base(data.Url).
21 SetMany(map[string]string{
22 "Authorization": "Bearer " + data.Key,
23 }),
24 }
25}
26
27type SelfHosted struct {
28 *SelfHostedData

Callers 2

TestMainFunction · 0.92
MakeEnabledMethod · 0.92

Calls 2

MakeClientFunction · 0.85
NewMethod · 0.80

Tested by 1

TestMainFunction · 0.74