Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrPasswordWithoutTLS is the error returned when using a password without TLS ErrPasswordWithoutTLS = errors.New("must use TLS if authorization is required") )
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*options)
Option is a functional option for configuring the server
func WithAuthHash ¶
WithAuthHash configures the server with authentication Also requires WithKeyPair for TLS
func WithKeyPair ¶
WithKeyPair confiures the server with a TLS key pair
func WithVersionedStore ¶
func WithVersionedStore(value storage.VersionedStore) Option
WithVersionedStore sets the versioned store to use for the server
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is the server implementation
Click to show internal directories.
Click to hide internal directories.