dinghy

package
v0.0.0-...-c09d378 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2021 License: AGPL-3.0 Imports: 36 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdminServer

type AdminServer struct {
	// contains filtered or unexported fields
}

AdminServer answers to administration requests.

func NewAdminServer

func NewAdminServer() *AdminServer

NewAdminServer creates a new administration server.

func (*AdminServer) ServeHTTP

func (s *AdminServer) ServeHTTP(w http.ResponseWriter, r *http.Request)

type Directory

type Directory struct {
	Path        string
	Directories []string
	Files       []File
}

type File

type File struct {
	Name        string
	Path        string
	DownloadURL string
	Size        int64
	Icon        string
	Thumbnail   string `json:"Thumbnail,omitempty"`
	Archive     bool
}

type MinioAdapter

type MinioAdapter struct {
	Client *s3.S3
	Bucket string
}

type NotifyAdapter

type NotifyAdapter struct {
	NotifierClient pb.NotifierClient
}

type ServiceServer

type ServiceServer struct {
	Storage     *MinioAdapter
	Notify      *NotifyAdapter
	FrontendURL string
	Upgrader    websocket.Upgrader
}

ServiceServer executes the users requests.

func NewServiceServer

func NewServiceServer() *ServiceServer

NewServiceServer creates a new service server and initiates the routes.

func (*ServiceServer) ServeHTTP

func (s *ServiceServer) ServeHTTP(w http.ResponseWriter, r *http.Request)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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