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

Function WithPathPrefix

ots3/uploader.go:58–62  ·  view source on GitHub ↗

WithPathPrefix is an option that changes the path prefix of uploaded file.

(pathPrefix string)

Source from the content-addressed store, hash-verified

56
57// WithPathPrefix is an option that changes the path prefix of uploaded file.
58func WithPathPrefix(pathPrefix string) ManagerOptionFunc {
59 return func(c *ManagerConfig) {
60 c.pathPrefix = pathPrefix
61 }
62}
63
64// WithKeyer is an option that changes the path of the uploaded file.
65func WithKeyer(keyer contract.Keyer) ManagerOptionFunc {

Callers 1

TestNewManagerFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestNewManagerFunction · 0.68