Versions in this module Expand all Collapse all v0 v0.0.3 Sep 21, 2016 Changes in this version + const BLACK + const DIR_MASK + const WHITE + func CompressFile(source, target string) error + func CompressedFilePath() string + func ConfigFileServerEndPoint(settings SettingsShare) string + func FileServerGET(w http.ResponseWriter, r *http.Request, ps httprouter.Params) + func GenerateQR(uuid, input string) (string, error) + func GetServerIps(upnpOpened bool, port int, uuid string) []string + func RunFileServer(settings SettingsShare) + func TempFilename(prefix string, extension string) string + type FileServerDaemon struct + Host string + Port int type Server + Flags []string + Source string + func FindServer(uuid string) (Server, error) + func SearchServerByPath(path string) (Server, error) + func SearchServerByUUID(uuid string) (Server, error) type SettingsShare + FileServerDaemon FileServerDaemon + ShareDaemon ShareDaemon + type ShareDaemon struct + CompressedFilePath string + DatabaseFilePath string + EnableUpnp bool + Host string + Port int v0.0.2 Jun 22, 2016 Changes in this version type Server + CreatedAt time.Time + UUID string type SettingsShare + Mode string v0.0.1 Jun 21, 2016 Changes in this version + func ConfigFile() string + func ConfigFileSQLITE() string + func ConfigFolder() string + func ConfigServerEndPoint(settings SettingsShare) string + func CreateConfigFile(outputFile string, settings SettingsShare) error + func CreateHandler(filePathParam string) http.Handler + func CreateTable() error + func GetLocalIps(port int) []string + func GetPublicIps(port int) []string + func InitDB(settings_params SettingsShare) error + func InitSettings(configFile string, settings *SettingsShare) error + func OpenDatabase() (*sql.DB, error) + func OpenUpnpPort(port int) bool + func RandomFreePort() int + func RemoveServer(id int64) error + func ServerDaemon(port int, handler http.Handler) + func ServerDaemon2(port int, srv *graceful.Server) + func StartServer(server *Server) + func StoreServer(server Server) (int64, error) + func UserHomeDir() string + type Daemon struct + DatabaseFilePath string + EnableUpnp bool + Host string + Port int + type Server struct + ID int + InsertedDatetime time.Time + ListIps []string + Path string + Port int + Srv *graceful.Server + func ListServers() ([]Server, error) + type SettingsShare struct + Daemon Daemon + func NewSettings() SettingsShare