Documentation ¶
Index ¶
- Constants
- func Service(opts ...Option) (micro.Service, error)
- type Option
- func Address(val string) Option
- func Context(val context.Context) Option
- func Edition(val string) 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 Product(val string) Option
- func ProductName(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 Version(val string) Option
- func VersionString(val string) Option
- func WebdavNamespace(val string) Option
- type Options
Constants ¶
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 ProductName ¶ added in v2.3.1
ProductName provides a function to set the ProductName config option.
func SharesNamespace ¶
SharesNamespace provides a function to set the SharesNamespace config option.
func VersionString ¶ added in v2.3.1
VersionString provides a function to set the VersionString 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.