Files
opencloud/pkg/handler/static/option.go
Thomas Boerger b6d43661a8 Embed phoenix and serve it
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.
2019-09-06 13:40:18 +02:00

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
}
}