WithPathPrefix is an option that changes the path prefix of uploaded file.
(pathPrefix string)
| 56 | |
| 57 | // WithPathPrefix is an option that changes the path prefix of uploaded file. |
| 58 | func 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. |
| 65 | func WithKeyer(keyer contract.Keyer) ManagerOptionFunc { |
no outgoing calls