Documentation ¶
Index ¶
- Constants
- Variables
- func Await(wg *sync.WaitGroup) <-chan error
- func Checksum(path string) (string, error)
- func ChecksumPath(prefix string) (string, error)
- func ChecksumRead(path string) (string, error)
- func ChecksumWrite(path string, checksum string) error
- func Contains(parts []string, part string) bool
- func DefaultConfPath() string
- func Dir(pth string) string
- func Exists(path string) (bool, error)
- func IsChecksum(path string) bool
- func Join(parts ...string) string
- func KeyPrefix(key string) string
- func Last(parts []string) string
- func NewTempPath(dir string) string
- func OnThisServer(key string, this Server, servers []Server) (bool, error)
- func ParseGlob(indir string) (string, string)
- func QueryParam(r *http.Request, name string) string
- func QueryParamDefault(r *http.Request, name string, defaultVal string) string
- func Recv(w io.Writer, port chan<- string) (string, error)
- func RecvFile(path string, port chan<- string) (string, error)
- func Retry(fn func() error) error
- func Send(r io.Reader, addr string, port string) (string, error)
- func SendFile(path string, addr string, port string) (string, error)
- func Suffix(keys []string) string
- func With(pool *semaphore.Weighted, fn func())
- type HTTPResult
- type MapArgs
- type RootHandler
- type Server
- type WarnResult
- type WarnResultTempdir
Constants ¶
Variables ¶
Functions ¶
func ChecksumPath ¶
func ChecksumRead ¶
func ChecksumWrite ¶
func DefaultConfPath ¶
func DefaultConfPath() string
func IsChecksum ¶
func NewTempPath ¶
func QueryParamDefault ¶
Types ¶
type HTTPResult ¶
func Get ¶
func Get(url string) *HTTPResult
type RootHandler ¶
type RootHandler struct { Handler func(w http.ResponseWriter, r *http.Request, this Server, servers []Server) This Server Servers []Server }
func (*RootHandler) ServeHTTP ¶
func (h *RootHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type WarnResult ¶
func Warn ¶
func Warn(format string, args ...interface{}) *WarnResult
type WarnResultTempdir ¶
func WarnTempdir ¶
func WarnTempdir(format string, args ...interface{}) *WarnResultTempdir
func WarnTempdirStreamIn ¶
func WarnTempdirStreamIn(stdin io.Reader, format string, args ...interface{}) *WarnResultTempdir
Click to show internal directories.
Click to hide internal directories.