Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler implements the link sharing HTTP handler
func NewHandler ¶
func NewHandler(log *zap.Logger, config HandlerConfig) (*Handler, error)
NewHandler creates a new link sharing HTTP handler
type HandlerConfig ¶
type HandlerConfig struct { // Uplink is the uplink used to talk to the storage network Uplink *uplink.Uplink // URLBase is the base URL of the link sharing handler. It is used // to construct URLs returned to clients. It should be a fully formed URL. URLBase string }
HandlerConfig specifies the handler configuration
Click to show internal directories.
Click to hide internal directories.