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 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 OCMNamespace(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 RegisterInterval(interval time.Duration) Option
- func RegisterTTL(ttl time.Duration) 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 WithTracingEnabled(enabled bool) Option
- func WithTracingEndpoint(endpoint string) Option
- func WithTracingExporter(exporter string) Option
- func WithTracingInsecure() Option
- func WithTracingTransportCredentials(v credentials.TransportCredentials) 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 ¶
AllowCredentials provides a function to set the AllowCredentials option.
func AllowDepthInfinity ¶
func AllowedHeaders ¶
AllowedHeaders provides a function to set the AllowedHeaders option.
func AllowedMethods ¶
AllowedMethods provides a function to set the AllowedMethods option.
func AllowedOrigins ¶
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 ¶
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 ¶
ItemNameInvalidChars provides a function to set forbidden characters in file or folder names
func ItemNameMaxLength ¶
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 ¶
MachineAuthAPIKey provides a function to set the machine auth api key option.
func MetricsEnabled ¶
MetricsEnabled provides a function to set the MetricsEnabled config option.
func MetricsNamespace ¶
MetricsNamespace provides a function to set the MetricsNamespace config option.
func MetricsSubsystem ¶
MetricsSubsystem provides a function to set the MetricsSubsystem config option.
func OCMNamespace ¶
OCMNamespace provides a function to set the OCMNamespace config option.
func ProductName ¶
ProductName provides a function to set the ProductName config option.
func ProductVersion ¶
ProductVersion provides a function to set the ProductVersion config option.
func RegisterInterval ¶
RegisterInterval provides a function to set the RegisterInterval option.
func RegisterTTL ¶
RegisterTTL provides a function to set the RegisterTTL option.
func SharesNamespace ¶
SharesNamespace provides a function to set the SharesNamespace config option.
func Tracing ¶
Tracing enables tracing Deprecated: use WithTracingEndpoint and WithTracingEnabled, Collector is unused
func VersionString ¶
VersionString provides a function to set the VersionString config option.
func WebdavNamespace ¶
WebdavNamespace provides a function to set the WebdavNamespace config option.
func WithTraceProvider ¶
func WithTraceProvider(provider trace.TracerProvider) Option
WithTraceProvider option
func WithTracingEndpoint ¶
WithTracingEndpoint option
func WithTracingExporter ¶
WithTracingExporter option Deprecated: unused
func WithTracingTransportCredentials ¶
func WithTracingTransportCredentials(v credentials.TransportCredentials) Option
WithTracingTransportCredentials 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
TracingEndpoint string
TracingTransportCredentials credentials.TransportCredentials
TraceProvider trace.TracerProvider
MetricsEnabled bool
MetricsNamespace string
MetricsSubsystem string
AllowCredentials bool
AllowedOrigins []string
AllowedHeaders []string
AllowedMethods []string
AllowDepthInfinity bool
RegisterTTL time.Duration
RegisterInterval time.Duration
// contains filtered or unexported fields
}
Options defines the available options for this package.