web

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2021 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FreePortCache

type FreePortCache struct {
	sync.Mutex
	// contains filtered or unexported fields
}

type Server

type Server struct {
	Host    string
	Port    int
	Running bool
	// contains filtered or unexported fields
}

func New

func New(host string, log *logrus.Entry, name string, sa *rclone.ServiceAccountManager) *Server

func (*Server) Run

func (ws *Server) Run()

func (*Server) ServiceAccountHandler

func (ws *Server) ServiceAccountHandler(c *fiber.Ctx) error

func (*Server) Stop

func (ws *Server) Stop()

type ServiceAccountCache

type ServiceAccountCache struct {
	sync.Mutex
	// contains filtered or unexported fields
}

type ServiceAccountCacheEntry

type ServiceAccountCacheEntry struct {
	ResponseServiceAccount string
	Expires                time.Time
	Hits                   int
}

type ServiceAccountRequest

type ServiceAccountRequest struct {
	OldServiceAccount string `json:"old"`
	Remote            string `json:"remote"`
}

Jump to

Keyboard shortcuts

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