MCPcopy Create free account
hub / github.com/DoNewsCode/core / WithKeyer

Function WithKeyer

ots3/uploader.go:65–69  ·  view source on GitHub ↗

WithKeyer is an option that changes the path of the uploaded file.

(keyer contract.Keyer)

Source from the content-addressed store, hash-verified

63
64// WithKeyer is an option that changes the path of the uploaded file.
65func WithKeyer(keyer contract.Keyer) ManagerOptionFunc {
66 return func(c *ManagerConfig) {
67 c.keyer = keyer
68 }
69}
70
71// WithHTTPClient is an option that replaces the default http client. Useful for interceptors like tracing and metrics.
72func WithHTTPClient(client contract.HttpDoer) ManagerOptionFunc {

Callers 1

TestNewManagerFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestNewManagerFunction · 0.68