mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-25 22:42:16 -05:00
So far Phoenix have been embedded into the binary and we can customize the required config based on flags, env variables and optionally via config file. For now I'm embedding the whole Phonix content, optherwise the all-in-one binary `ocis` will get pretty complicated until we add the generate commands to that repo as well and provide a mechanism to inject the embedding.
19 lines
335 B
Go
19 lines
335 B
Go
package static
|
|
|
|
// Option configures an assets option.
|
|
type Option func(*static)
|
|
|
|
// WithRoot returns an option to set a root.
|
|
func WithRoot(val string) Option {
|
|
return func(s *static) {
|
|
s.root = val
|
|
}
|
|
}
|
|
|
|
// WithPath returns an option to set a path.
|
|
func WithPath(val string) Option {
|
|
return func(s *static) {
|
|
s.path = val
|
|
}
|
|
}
|