MCPcopy
hub / github.com/0xERR0R/blocky / ListRefresh

Method ListRefresh

api/api_interface_impl.go:156–165  ·  view source on GitHub ↗
(ctx context.Context,
	_ ListRefreshRequestObject,
)

Source from the content-addressed store, hash-verified

154}
155
156func (i *OpenAPIInterfaceImpl) ListRefresh(ctx context.Context,
157 _ ListRefreshRequestObject,
158) (ListRefreshResponseObject, error) {
159 err := i.refresher.RefreshLists(ctx)
160 if err != nil {
161 return ListRefresh500TextResponse(log.EscapeInput(err.Error())), nil
162 }
163
164 return ListRefresh200Response{}, nil
165}
166
167func (i *OpenAPIInterfaceImpl) Query(ctx context.Context, request QueryRequestObject) (QueryResponseObject, error) {
168 qType := dns.Type(dns.StringToType[request.Body.Type])

Callers

nothing calls this directly

Calls 4

EscapeInputFunction · 0.92
RefreshListsMethod · 0.65
ErrorMethod · 0.45

Tested by

no test coverage detected