storage

package
v0.0.0-...-63f78d9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 11, 2024 License: MIT Imports: 23 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFilesystem

func NewFilesystem(fsPath, caldavPrefix, carddavPrefix string, userPrincipalBackend webdav.UserPrincipalBackend) (caldav.Backend, carddav.Backend, error)

func NewFromURL

func NewFromURL(storageURL, caldavPrefix, carddavPrefix string, userPrincipalBackend webdav.UserPrincipalBackend) (caldav.Backend, carddav.Backend, error)

func NewPostgreSQL

func NewPostgreSQL() (caldav.Backend, carddav.Backend, error)

Types

type ETagReader

type ETagReader struct {
	io.Reader
	// contains filtered or unexported fields
}

func NewETagReader

func NewETagReader(input io.Reader) *ETagReader

NewETagReader creates a new io.Reader that pipes reads from the provided input while also calculating the contents ETag.

func (*ETagReader) ETag

func (e *ETagReader) ETag() string

func (*ETagReader) Read

func (e *ETagReader) Read(p []byte) (n int, err error)

type ETagWriter

type ETagWriter struct {
	io.Writer
	// contains filtered or unexported fields
}

func NewETagWriter

func NewETagWriter(output io.Writer) *ETagWriter

NewETagWriter creates a new io.Writer that pipes writes to the provided output while also calculating the contents ETag.

func (*ETagWriter) ETag

func (e *ETagWriter) ETag() string

func (*ETagWriter) Write

func (e *ETagWriter) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL