server

package
v0.0.0-...-61ca6a8 Latest Latest
Warning

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

Go to latest
Published: May 10, 2021 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ListenAddress       string
	RepositoryDirectory string

	Logger logrus.FieldLogger
}

Config bundles configuration settings.

type Empty

type Empty struct {
}

type Server

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

func NewServer

func NewServer(c *Config) (*Server, error)

func (*Server) EventHandler

func (s *Server) EventHandler(ch chan string, matches []string)

func (*Server) GetLinksDatabases

func (s *Server) GetLinksDatabases(location string) ([]string, error)

func (*Server) ParseLinksDatabase

func (s *Server) ParseLinksDatabase(file string, wg *sync.WaitGroup) error

func (*Server) ParseLinksDatabases

func (s *Server) ParseLinksDatabases(matches []string)

/srv/ftp/$repo/os/$arch/$repo.links.tar.gz

func (*Server) Serve

func (s *Server) Serve(ctx context.Context) error

func (*Server) SetupWatchers

func (s *Server) SetupWatchers(watcher *fsnotify.Watcher, matches []string, done chan bool) error

type Soname

type Soname struct {
	Packages []string `json:"packages"`
}

Jump to

Keyboard shortcuts

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