Documentation ¶
Index ¶
- Variables
- func CheckURLType(request string) bool
- func CleanURL(request string) (string, string)
- func ClearFile(directory, path string)
- func SafeURLString(str string) string
- func SetupFiFo(directory, path string) (string, *os.File, error)
- func SetupFile(directory, path string) (string, *os.File, error)
- func SetupFolder(directory string) bool
- func SetupScanner(directory, path string, pipe *os.File) (*bufio.Scanner, error)
- type WrappedFile
Constants ¶
This section is empty.
Variables ¶
View Source
var ConnectionDirectory string
ConnectionDirectory is the global working directory of the service
View Source
var DiskAvoidance = false
Functions ¶
func CheckURLType ¶
CheckURLType assures a URL is intended for i2p. For now it also assures a URL is going to an http service. That will change soon, to a whitelist approach.
func SafeURLString ¶
SafeURLString removes illegal characters from URL strings
func SetupFolder ¶
SetupFolder Creates a folder for a site or directory control interface
Types ¶
type WrappedFile ¶
type WrappedFile struct { DiskAvoidance bool ConnectionDirectory string Path string PipeFile *os.File PipeScan *bufio.Scanner }
func NewFile ¶
func NewFile(path string) *WrappedFile
func (*WrappedFile) OpenAsFiFo ¶
func (wrapped *WrappedFile) OpenAsFiFo()
func (*WrappedFile) OpenAsFile ¶
func (wrapped *WrappedFile) OpenAsFile()
func (*WrappedFile) OpenAsScanner ¶
func (wrapped *WrappedFile) OpenAsScanner()
func (*WrappedFile) WriteString ¶
func (wrapped *WrappedFile) WriteString(input ...string)
Click to show internal directories.
Click to hide internal directories.