Versions in this module Expand all Collapse all v0 v0.1.1 Nov 11, 2019 Changes in this version + var BufPool = sync.Pool + var ErrNotPathID = errors.New("cpf: not pathID") + type Client struct + func Dial(address string) (*Client, error) + func (c *Client) Close() + func (c *Client) Get(name string, wser io.WriteSeeker, fn func(int) bool) int64 + func (c *Client) Put(name string, rser io.ReadSeeker, fn func(int) bool) int64 + type LFile struct + func OpenFile(name string, flag int) (*LFile, error) + func (f *LFile) Close() error + func (f *LFile) Read(p []byte) (n int, err error) + func (f *LFile) Seek(offset int64, whence int) (int64, error) + func (f *LFile) Write(p []byte) (n int, err error) + type Server struct + IdleTimeout time.Duration + ReadTimeout time.Duration + Welcome string + WriteTimeout time.Duration + func NewServer(cfg configer, log logger) *Server + func (s *Server) ListenAndServe(addr string) error + func (s *Server) SetAuthFunc(fn func(string) bool) + func (s *Server) SetFileGos(count int)