Documentation ¶
Index ¶
- Constants
- func Service(opts ...Option) (micro.Service, error)
- type Option
- func Address(val string) Option
- func AllowCredentials(val bool) Option
- func AllowDepthInfinity(val bool) Option
- func AllowedHeaders(val []string) Option
- func AllowedMethods(val []string) Option
- func AllowedOrigins(val []string) Option
- func Broker(b broker.Broker) Option
- func Context(val context.Context) Option
- func Edition(val string) Option
- func FavoriteManager(val favorite.Manager) Option
- func FilesNamespace(val string) Option
- func GatewaySelector(val pool.Selectable[gateway.GatewayAPIClient]) Option
- func GatewaySvc(val string) Option
- func Insecure(val bool) Option
- func ItemNameInvalidChars(chars []string) Option
- func ItemNameMaxLength(i int) Option
- func JWTSecret(s string) Option
- func LockSystem(val ocdav.LockSystem) Option
- func Logger(val zerolog.Logger) Option
- func MachineAuthAPIKey(s string) Option
- func MetricsEnabled(val bool) Option
- func MetricsNamespace(val string) Option
- func MetricsSubsystem(val string) Option
- func Name(val string) Option
- func Prefix(val string) Option
- func Product(val string) Option
- func ProductName(val string) Option
- func ProductVersion(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(endpoint, collector string) Option
- func Version(val string) Option
- func VersionString(val string) Option
- func WebdavNamespace(val string) Option
- func WithTraceProvider(provider trace.TracerProvider) Option
- func WithTracingExporter(exporter string) Option
- func WithTracingInsecure() 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 AllowCredentials ¶ added in v2.13.0
AllowCredentials provides a function to set the AllowCredentials option.
func AllowDepthInfinity ¶ added in v2.16.0
func AllowedHeaders ¶ added in v2.13.0
AllowedHeaders provides a function to set the AllowedHeaders option.
func AllowedMethods ¶ added in v2.13.0
AllowedMethods provides a function to set the AllowedMethods option.
func AllowedOrigins ¶ added in v2.13.0
AllowedOrigins provides a function to set the AllowedOrigins option.
func FavoriteManager ¶
FavoriteManager provides a function to set the FavoriteManager option.
func FilesNamespace ¶
FilesNamespace provides a function to set the FilesNamespace config option.
func GatewaySelector ¶ added in v2.15.0
func GatewaySelector(val pool.Selectable[gateway.GatewayAPIClient]) Option
GatewaySelector provides a function to set the GatewaySelector option.
func GatewaySvc ¶
GatewaySvc provides a function to set the GatewaySvc config option.
func ItemNameInvalidChars ¶ added in v2.13.0
ItemNameInvalidChars provides a function to set forbidden characters in file or folder names
func ItemNameMaxLength ¶ added in v2.13.0
ItemNameMaxLength provides a function to set the maximum length of a file or folder name
func LockSystem ¶
func LockSystem(val ocdav.LockSystem) Option
LockSystem provides a function to set the LockSystem option.
func MachineAuthAPIKey ¶ added in v2.7.0
MachineAuthAPIKey provides a function to set the machine auth api key option.
func MetricsEnabled ¶ added in v2.11.0
MetricsEnabled provides a function to set the MetricsEnabled config option.
func MetricsNamespace ¶ added in v2.11.0
MetricsNamespace provides a function to set the MetricsNamespace config option.
func MetricsSubsystem ¶ added in v2.11.0
MetricsSubsystem provides a function to set the MetricsSubsystem config option.
func ProductName ¶ added in v2.3.1
ProductName provides a function to set the ProductName config option.
func ProductVersion ¶ added in v2.4.0
ProductVersion provides a function to set the ProductVersion 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.
func WithTraceProvider ¶ added in v2.15.0
func WithTraceProvider(provider trace.TracerProvider) Option
WithTraceProvider option
func WithTracingExporter ¶ added in v2.14.0
WithTracingExporter option
func WithTracingInsecure ¶ added in v2.14.0
func WithTracingInsecure() Option
WithTracingInsecure option
type Options ¶
type Options struct { TLSConfig *tls.Config Broker broker.Broker Address string Logger zerolog.Logger Context context.Context // Metrics *metrics.Metrics // Flags []cli.Flag Name string JWTSecret string FavoriteManager favorite.Manager GatewaySelector pool.Selectable[gateway.GatewayAPIClient] TracingEnabled bool TracingInsecure bool TracingExporter string TracingCollector string TracingEndpoint string TraceProvider trace.TracerProvider MetricsEnabled bool MetricsNamespace string MetricsSubsystem string AllowCredentials bool AllowedOrigins []string AllowedHeaders []string AllowedMethods []string AllowDepthInfinity bool // contains filtered or unexported fields }
Options defines the available options for this package.