Documentation ¶
Index ¶
- Constants
- func Service(opts ...Option) (micro.Service, error)
- type Option
- func Address(val string) Option
- func Context(val context.Context) Option
- func FavoriteManager(val favorite.Manager) Option
- func FilesNamespace(val string) Option
- func GatewaySvc(val string) Option
- func Insecure(val bool) Option
- func JWTSecret(s string) Option
- func LockSystem(val ocdav.LockSystem) Option
- func Logger(val zerolog.Logger) Option
- func Name(val string) Option
- func Prefix(val string) Option
- func PublicURL(val string) Option
- func SharesNamespace(val string) Option
- func TLSConfig(config *tls.Config) Option
- func Timeout(val int64) Option
- func Tracing(trEndpoint string, trCollector string) Option
- func WebdavNamespace(val string) Option
- type Options
Constants ¶
View Source
const (
// ServerName to use when announcing the service to the registry
ServerName = "ocdav"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(o *Options)
Option defines a single option function.
func FavoriteManager ¶
FavoriteManager provides a function to set the FavoriteManager option.
func FilesNamespace ¶
FilesNamespace provides a function to set the FilesNamespace config option.
func GatewaySvc ¶
GatewaySvc provides a function to set the GatewaySvc config option.
func LockSystem ¶
func LockSystem(val ocdav.LockSystem) Option
LockSystem provides a function to set the LockSystem option.
func SharesNamespace ¶
SharesNamespace provides a function to set the SharesNamespace config option.
func WebdavNamespace ¶
WebdavNamespace provides a function to set the WebdavNamespace config option.
type Options ¶
type Options struct { TLSConfig *tls.Config Address string Logger zerolog.Logger Context context.Context // Metrics *metrics.Metrics // Flags []cli.Flag Name string JWTSecret string FavoriteManager favorite.Manager TracingEnabled bool TracingCollector string TracingEndpoint string // contains filtered or unexported fields }
Options defines the available options for this package.
Click to show internal directories.
Click to hide internal directories.