ui

package
v0.0.0-...-ec177ba Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteFiles

func DeleteFiles(args *args.Args, w http.ResponseWriter, r *http.Request)

func GetUI

func GetUI(args *args.Args, w http.ResponseWriter, r *http.Request)

func SendFiles

func SendFiles(args *args.Args, w http.ResponseWriter, r *http.Request)

Types

type Dest

type Dest interface {
	Remove(string) error
	Create(string) (io.WriteCloser, error)
}

type Destinations

type Destinations map[string]Dest

func ReadDestinations

func ReadDestinations(args *args.Args) Destinations

func (*Destinations) UnmarshalYAML

func (d *Destinations) UnmarshalYAML(value *yaml.Node) error

type FSDest

type FSDest struct {
	Path string `yaml:"path"`
}

func (*FSDest) Create

func (d *FSDest) Create(s string) (io.WriteCloser, error)

func (*FSDest) Remove

func (d *FSDest) Remove(s string) error

type SendRequest

type SendRequest struct {
	Files        []string `json:"files"`
	Destinations []string `json:"destinations"`
}

type Server

type Server struct {
	*server.Server
}

func NewUIServer

func NewUIServer(args *args.Args, srv *server.Server) (*Server, error)

type UnmarshalError

type UnmarshalError struct {
	Message string
	Name    string
	Type    *string
	Base    error
}

func (*UnmarshalError) Error

func (u *UnmarshalError) Error() string

func (*UnmarshalError) Log

func (u *UnmarshalError) Log(l *slog.Logger)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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