Documentation ¶
Index ¶
- func IsTemporary(err interface{}) bool
- func IsTimeout(err interface{}) bool
- func NopWriteCloser(w io.Writer) io.WriteCloser
- type Base32Encoding
- type Base64Encoding
- type BufIOReader
- type BufIOScanner
- type BufIOWriter
- type BytesBuffer
- type BytesReader
- type CSVReader
- type CSVWriter
- type Commit
- type Decoder
- type Encoder
- type FileInfo
- type Flusher
- type HTTPClient
- type HTTPRequest
- type HTTPResponse
- type HTTPServeMux
- type HTTPServer
- type HTTPTransport
- type IOPipeReader
- type IOPipeWriter
- type IOSectionReader
- type JSONDecoder
- type JSONEncoder
- type Kill
- type LogFatalf
- type LogLogger
- type LogOutput
- type LogPanicf
- type LogPrintf
- type MarshalFunc
- type MarshalIndentFunc
- type MultiPartPart
- type MultiPartReader
- type MultiPartWriter
- type Name
- type NetAccept
- type NetIPConn
- type NetListenConfig
- type NetOpError
- type NetResolver
- type NetTCPConn
- type NetTCPListener
- type NetUDPConn
- type NetUnixConn
- type NetUnixListener
- type OsFile
- type OsProcess
- type OsProcessState
- type Ping
- type PingContext
- type RegisterOnShutdown
- type Release
- type Reset
- type ResetErr
- type Rollback
- type SQLBegin
- type SQLBeginTx
- type SQLColumnType
- type SQLCommit
- type SQLConn
- type SQLDB
- type SQLDBContexter
- type SQLDBNoContexter
- type SQLExec
- type SQLExecContext
- type SQLPing
- type SQLPingContext
- type SQLPrepare
- type SQLPrepareContext
- type SQLQuery
- type SQLQueryContext
- type SQLQueryRow
- type SQLQueryRowContext
- type SQLRollback
- type SQLRow
- type SQLRows
- type SQLStmt
- type SQLStmtContext
- type SQLTx
- type Serve
- type ServeTLS
- type SetDeadline
- type SetReadDeadline
- type SetReadWriteDeadline
- type SetWriteDeadline
- type ShutdownContext
- type Sync
- type SysLogWriter
- type TarHeader
- type TarReader
- type TarWriter
- type Temporary
- type Timeout
- type Truncate
- type UnmarshalFunc
- type XMLDecoder
- type XMLEncoder
- type ZipFile
- type ZipFileHeader
- type ZipReader
- type ZipWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NopWriteCloser ¶
func NopWriteCloser(w io.Writer) io.WriteCloser
NopWriteCloser close able for writer
Types ¶
type Base32Encoding ¶
type Base32Encoding interface { Decode(dst, src []byte) (n int, err error) DecodeString(s string) ([]byte, error) DecodedLen(n int) int Encode(dst, src []byte) EncodeToString(src []byte) string EncodedLen(n int) int WithPadding(padding rune) *base32.Encoding }
Base32Encoding interface of *base32.Encoding
type Base64Encoding ¶
type Base64Encoding interface { Decode(dst, src []byte) (n int, err error) DecodeString(s string) ([]byte, error) DecodedLen(n int) int Encode(dst, src []byte) EncodeToString(src []byte) string EncodedLen(n int) int Strict() *base64.Encoding WithPadding(padding rune) *base64.Encoding }
Base64Encoding interface of *base64.Encoding
type BufIOReader ¶
type BufIOReader interface { Buffered() int Discard(n int) (discarded int, err error) Peek(n int) ([]byte, error) Read(p []byte) (n int, err error) ReadByte() (byte, error) ReadBytes(delim byte) ([]byte, error) ReadLine() (line []byte, isPrefix bool, err error) ReadRune() (r rune, size int, err error) ReadSlice(delim byte) (line []byte, err error) ReadString(delim byte) (string, error) Reset(r io.Reader) Size() int UnreadByte() error UnreadRune() error WriteTo(w io.Writer) (n int64, err error) }
BufIOReader interface of *bufio.Reader
type BufIOScanner ¶
type BufIOScanner interface { Buffer(buf []byte, max int) Bytes() []byte Err() error Scan() bool Split(split bufio.SplitFunc) Text() string }
BufIOScanner interface of *bufio.Scanner
type BufIOWriter ¶
type BufIOWriter interface { Available() int Buffered() int Flush() error ReadFrom(r io.Reader) (n int64, err error) Reset(w io.Writer) Size() int Write(p []byte) (nn int, err error) WriteByte(c byte) error WriteRune(r rune) (size int, err error) WriteString(s string) (int, error) }
BufIOWriter interface of *bufio.Writer
type BytesBuffer ¶
type BytesBuffer interface { Bytes() []byte Cap() int Grow(n int) Len() int Next(n int) []byte Read(p []byte) (n int, err error) ReadByte() (byte, error) ReadBytes(delim byte) (line []byte, err error) ReadFrom(r io.Reader) (n int64, err error) ReadRune() (r rune, size int, err error) ReadString(delim byte) (line string, err error) Reset() String() string Truncate(n int) UnreadByte() error UnreadRune() error Write(p []byte) (n int, err error) WriteByte(c byte) error WriteRune(r rune) (n int, err error) WriteString(s string) (n int, err error) WriteTo(w io.Writer) (n int64, err error) }
BytesBuffer interface of *bytes.Buffer
func NewLockedBytesBuffer ¶
func NewLockedBytesBuffer(bf BytesBuffer) BytesBuffer
NewLockedBytesBuffer BytesBuffer with lock
type BytesReader ¶
type BytesReader interface { Len() int Read(b []byte) (n int, err error) ReadAt(b []byte, off int64) (n int, err error) ReadByte() (byte, error) ReadRune() (ch rune, size int, err error) Reset(b []byte) Seek(offset int64, whence int) (int64, error) Size() int64 UnreadByte() error UnreadRune() error WriteTo(w io.Writer) (n int64, err error) }
BytesReader interface *bytes.Reader
type CSVReader ¶
type CSVReader interface { Read() (record []string, err error) ReadAll() (records [][]string, err error) }
CSVReader interface of *csv.Reader
type CSVWriter ¶
type CSVWriter interface { Error() error Flush() Write(record []string) error WriteAll(records [][]string) error }
CSVWriter interface of *csv.Writer
type HTTPClient ¶
type HTTPClient interface { CloseIdleConnections() Do(req *http.Request) (*http.Response, error) Get(url string) (resp *http.Response, err error) Head(url string) (resp *http.Response, err error) Post(url, contentType string, body io.Reader) (resp *http.Response, err error) PostForm(url string, data url.Values) (resp *http.Response, err error) }
HTTPClient interface of *http.Client
type HTTPRequest ¶
type HTTPRequest interface { AddCookie(c *http.Cookie) BasicAuth() (username, password string, ok bool) Clone(ctx context.Context) *http.Request Context() context.Context Cookie(name string) (*http.Cookie, error) Cookies() []*http.Cookie FormFile(key string) (multipart.File, *multipart.FileHeader, error) FormValue(key string) string MultipartReader() (*multipart.Reader, error) ParseForm() error ParseMultipartForm(maxMemory int64) error PostFormValue(key string) string ProtoAtLeast(major, minor int) bool Referer() string SetBasicAuth(username, password string) UserAgent() string WithContext(ctx context.Context) *http.Request Write(w io.Writer) error WriteProxy(w io.Writer) error }
HTTPRequest interface of *http.Request
type HTTPResponse ¶
type HTTPResponse interface { Cookies() []*http.Cookie Location() (*url.URL, error) ProtoAtLeast(major, minor int) bool Write(w io.Writer) error }
HTTPResponse interface of *http.Response
type HTTPServeMux ¶
type HTTPServeMux interface { Handle(pattern string, handler http.Handler) HandleFunc(pattern string, handler func(http.ResponseWriter, *http.Request)) Handler(r *http.Request) (h http.Handler, pattern string) ServeHTTP(w http.ResponseWriter, r *http.Request) }
HTTPServeMux interface of *http.ServeMux
type HTTPServer ¶
type HTTPServer interface { Close() error ListenAndServe() error ListenAndServeTLS(certFile, keyFile string) error RegisterOnShutdown(f func()) Serve(l net.Listener) error ServeTLS(l net.Listener, certFile, keyFile string) error SetKeepAlivesEnabled(v bool) Shutdown(ctx context.Context) error }
HTTPServer interface of *http.Server
type HTTPTransport ¶
type HTTPTransport interface { CancelRequest(req *http.Request) Clone() *http.Transport CloseIdleConnections() RegisterProtocol(scheme string, rt http.RoundTripper) RoundTrip(req *http.Request) (*http.Response, error) }
HTTPTransport interface of *http.Transport
type IOPipeReader ¶
type IOPipeReader interface { Close() error CloseWithError(err error) error Read(data []byte) (n int, err error) }
IOPipeReader interface of *io.PipeReader
type IOPipeWriter ¶
type IOPipeWriter interface { Close() error CloseWithError(err error) error Write(data []byte) (n int, err error) }
IOPipeWriter interface of *io.PipeWriter
type IOSectionReader ¶
type IOSectionReader interface { Read(p []byte) (n int, err error) ReadAt(p []byte, off int64) (n int, err error) Seek(offset int64, whence int) (int64, error) Size() int64 }
IOSectionReader interface of *io.SectionReader
type JSONDecoder ¶
type JSONDecoder interface { Buffered() io.Reader Decode(v interface{}) error DisallowUnknownFields() More() bool Token() (json.Token, error) UseNumber() }
JSONDecoder interface of *json.Decoder
type JSONEncoder ¶
type JSONEncoder interface { Encode(v interface{}) error SetEscapeHTML(on bool) SetIndent(prefix, indent string) }
JSONEncoder interface of *json.Encoder
type LogFatalf ¶
type LogFatalf interface {
Fatalf(format string, v ...interface{})
}
LogFatalf fatalf log
type LogLogger ¶
type LogLogger interface { Fatal(v ...interface{}) Fatalf(format string, v ...interface{}) Fatalln(v ...interface{}) Flags() int Output(calldepth int, s string) error Panic(v ...interface{}) Panicf(format string, v ...interface{}) Panicln(v ...interface{}) Prefix() string Print(v ...interface{}) Printf(format string, v ...interface{}) Println(v ...interface{}) SetFlags(flag int) SetOutput(w io.Writer) SetPrefix(prefix string) Writer() io.Writer }
LogLogger interface of *log.Logger
type LogPanicf ¶
type LogPanicf interface {
Panicf(format string, v ...interface{})
}
LogPanicf panicf log
type LogPrintf ¶
type LogPrintf interface {
Printf(format string, v ...interface{})
}
LogPrintf printf log
type MarshalIndentFunc ¶
MarshalIndentFunc encode indent
type MultiPartPart ¶
type MultiPartPart interface { Close() error FileName() string FormName() string Read(d []byte) (n int, err error) }
MultiPartPart interface of *multipart.Part
type MultiPartReader ¶
type MultiPartReader interface { NextPart() (*multipart.Part, error) ReadForm(maxMemory int64) (*multipart.Form, error) }
MultiPartReader interface off *multipart.Reader
type MultiPartWriter ¶
type MultiPartWriter interface { Boundary() string Close() error CreateFormField(fieldname string) (io.Writer, error) CreateFormFile(fieldname, filename string) (io.Writer, error) CreatePart(header textproto.MIMEHeader) (io.Writer, error) FormDataContentType() string SetBoundary(boundary string) error WriteField(fieldname, value string) error }
MultiPartWriter interface of *multipart.Writer
type NetIPConn ¶
type NetIPConn interface { Close() error File() (f *os.File, err error) LocalAddr() net.Addr Read(b []byte) (int, error) ReadFrom(b []byte) (int, net.Addr, error) ReadFromIP(b []byte) (int, *net.IPAddr, error) ReadMsgIP(b, oob []byte) (n, oobn, flags int, addr *net.IPAddr, err error) RemoteAddr() net.Addr SetDeadline(t time.Time) error SetReadBuffer(bytes int) error SetReadDeadline(t time.Time) error SetWriteBuffer(bytes int) error SetWriteDeadline(t time.Time) error SyscallConn() (syscall.RawConn, error) Write(b []byte) (int, error) WriteMsgIP(b, oob []byte, addr *net.IPAddr) (n, oobn int, err error) WriteTo(b []byte, addr net.Addr) (int, error) WriteToIP(b []byte, addr *net.IPAddr) (int, error) }
NetIPConn interface of *net.IPConn
type NetListenConfig ¶
type NetListenConfig interface { Listen(ctx context.Context, network, address string) (net.Listener, error) ListenPacket(ctx context.Context, network, address string) (net.PacketConn, error) }
NetListenConfig interface of *net.ListenConfig
type NetOpError ¶
NetOpError interface of *net.OpError
type NetResolver ¶
type NetResolver interface { LookupAddr(ctx context.Context, addr string) (names []string, err error) LookupCNAME(ctx context.Context, host string) (cname string, err error) LookupHost(ctx context.Context, host string) (addrs []string, err error) LookupIPAddr(ctx context.Context, host string) ([]net.IPAddr, error) LookupMX(ctx context.Context, name string) ([]*net.MX, error) LookupNS(ctx context.Context, name string) ([]*net.NS, error) LookupPort(ctx context.Context, network, service string) (port int, err error) LookupSRV(ctx context.Context, service, proto, name string) (cname string, addrs []*net.SRV, err error) LookupTXT(ctx context.Context, name string) ([]string, error) }
NetResolver interface off *net.Resolver
type NetTCPConn ¶
type NetTCPConn interface { Close() error CloseRead() error CloseWrite() error File() (f *os.File, err error) LocalAddr() net.Addr Read(b []byte) (int, error) ReadFrom(r io.Reader) (int64, error) RemoteAddr() net.Addr SetDeadline(t time.Time) error SetKeepAlive(keepalive bool) error SetKeepAlivePeriod(d time.Duration) error SetLinger(sec int) error SetNoDelay(noDelay bool) error SetReadBuffer(bytes int) error SetReadDeadline(t time.Time) error SetWriteBuffer(bytes int) error SetWriteDeadline(t time.Time) error SyscallConn() (syscall.RawConn, error) Write(b []byte) (int, error) }
NetTCPConn interface of *net.TCPConn
type NetTCPListener ¶
type NetTCPListener interface { Accept() (net.Conn, error) AcceptTCP() (*net.TCPConn, error) Addr() net.Addr Close() error File() (f *os.File, err error) SetDeadline(t time.Time) error SyscallConn() (syscall.RawConn, error) }
NetTCPListener interface of *net.TCPListener
type NetUDPConn ¶
type NetUDPConn interface { Close() error File() (f *os.File, err error) LocalAddr() net.Addr Read(b []byte) (int, error) ReadFrom(b []byte) (int, net.Addr, error) ReadFromUDP(b []byte) (int, *net.UDPAddr, error) ReadMsgUDP(b, oob []byte) (n, oobn, flags int, addr *net.UDPAddr, err error) RemoteAddr() net.Addr SetDeadline(t time.Time) error SetReadBuffer(bytes int) error SetReadDeadline(t time.Time) error SetWriteBuffer(bytes int) error SetWriteDeadline(t time.Time) error SyscallConn() (syscall.RawConn, error) Write(b []byte) (int, error) WriteMsgUDP(b, oob []byte, addr *net.UDPAddr) (n, oobn int, err error) WriteTo(b []byte, addr net.Addr) (int, error) WriteToUDP(b []byte, addr *net.UDPAddr) (int, error) }
NetUDPConn interface of *net.UDPConn
type NetUnixConn ¶
type NetUnixConn interface { Close() error CloseRead() error CloseWrite() error File() (f *os.File, err error) LocalAddr() net.Addr Read(b []byte) (int, error) ReadFrom(b []byte) (int, net.Addr, error) ReadFromUnix(b []byte) (int, *net.UnixAddr, error) ReadMsgUnix(b, oob []byte) (n, oobn, flags int, addr *net.UnixAddr, err error) RemoteAddr() net.Addr SetDeadline(t time.Time) error SetReadBuffer(bytes int) error SetReadDeadline(t time.Time) error SetWriteBuffer(bytes int) error SetWriteDeadline(t time.Time) error SyscallConn() (syscall.RawConn, error) Write(b []byte) (int, error) WriteMsgUnix(b, oob []byte, addr *net.UnixAddr) (n, oobn int, err error) WriteTo(b []byte, addr net.Addr) (int, error) WriteToUnix(b []byte, addr *net.UnixAddr) (int, error) }
NetUnixConn interface of *net.UnixConn
type NetUnixListener ¶
type NetUnixListener interface { Accept() (net.Conn, error) AcceptUnix() (*net.UnixConn, error) Addr() net.Addr Close() error File() (f *os.File, err error) SetDeadline(t time.Time) error SetUnlinkOnClose(unlink bool) SyscallConn() (syscall.RawConn, error) }
NetUnixListener interface of *net.UnixListener
type OsFile ¶
type OsFile interface { Chdir() error Chmod(mode os.FileMode) error Chown(uid, gid int) error Close() error Fd() uintptr Name() string Read(b []byte) (n int, err error) ReadAt(b []byte, off int64) (n int, err error) Readdir(n int) ([]os.FileInfo, error) Readdirnames(n int) (names []string, err error) Seek(offset int64, whence int) (ret int64, err error) SetDeadline(t time.Time) error SetReadDeadline(t time.Time) error SetWriteDeadline(t time.Time) error Stat() (os.FileInfo, error) Sync() error SyscallConn() (syscall.RawConn, error) Truncate(size int64) error Write(b []byte) (n int, err error) WriteAt(b []byte, off int64) (n int, err error) WriteString(s string) (n int, err error) }
OsFile interface off *os.File
type OsProcess ¶
type OsProcess interface { Kill() error Release() error Signal(sig os.Signal) error Wait() (*os.ProcessState, error) }
OsProcess interface of *os.Process
type OsProcessState ¶
type OsProcessState interface { ExitCode() int Exited() bool Pid() int String() string Success() bool Sys() interface{} SysUsage() interface{} SystemTime() time.Duration UserTime() time.Duration }
OsProcessState interface of *os.ProcessState
type RegisterOnShutdown ¶
type RegisterOnShutdown interface {
RegisterOnShutdown(f func())
}
RegisterOnShutdown register func OnShutdown
type SQLBeginTx ¶
SQLBeginTx BeginTx
type SQLColumnType ¶
type SQLColumnType interface { DatabaseTypeName() string DecimalSize() (precision, scale int64, ok bool) Length() (length int64, ok bool) Name() string Nullable() (nullable, ok bool) ScanType() reflect.Type }
SQLColumnType interface of *sql.ColumnType
type SQLConn ¶
type SQLConn interface { BeginTx(ctx context.Context, opts *sql.TxOptions) (*sql.Tx, error) ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error) PingContext(ctx context.Context) error PrepareContext(ctx context.Context, query string) (*sql.Stmt, error) QueryContext(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error) QueryRowContext(ctx context.Context, query string, args ...interface{}) *sql.Row Raw(f func(driverConn interface{}) error) (err error) Close() error }
SQLConn interface *sql.Conn
type SQLDB ¶
type SQLDB interface { SetConnMaxLifetime(d time.Duration) SetMaxIdleConns(n int) SetMaxOpenConns(n int) Conn(ctx context.Context) (*sql.Conn, error) Driver() driver.Driver Stats() sql.DBStats Close() error SQLDBNoContexter SQLDBContexter }
SQLDB interface off *Sql.DB
type SQLDBContexter ¶
type SQLDBContexter interface { PingContext(ctx context.Context) error PrepareContext(ctx context.Context, query string) (*sql.Stmt, error) ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error) QueryContext(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error) QueryRowContext(ctx context.Context, query string, args ...interface{}) *sql.Row BeginTx(ctx context.Context, opts *sql.TxOptions) (*sql.Tx, error) }
SQLDBContexter interface of *Sql.DB
type SQLDBNoContexter ¶
type SQLDBNoContexter interface { Ping() error Prepare(query string) (*sql.Stmt, error) Exec(query string, args ...interface{}) (sql.Result, error) Query(query string, args ...interface{}) (*sql.Rows, error) QueryRow(query string, args ...interface{}) *sql.Row Begin() (*sql.Tx, error) }
SQLDBNoContexter interface of *Sql.DB
type SQLExecContext ¶
type SQLExecContext interface {
ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error)
}
SQLExecContext Exec with Context
type SQLPingContext ¶
SQLPingContext Ping with Context
type SQLPrepare ¶
SQLPrepare Prepare
type SQLPrepareContext ¶
type SQLPrepareContext interface {
PrepareContext(ctx context.Context, query string) (*sql.Stmt, error)
}
SQLPrepareContext Prepare with Context
type SQLQueryContext ¶
type SQLQueryContext interface {
QueryContext(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error)
}
SQLQueryContext Query with Context
type SQLQueryRow ¶
SQLQueryRow QueryRow
type SQLQueryRowContext ¶
type SQLQueryRowContext interface {
QueryRowContext(ctx context.Context, query string, args ...interface{}) *sql.Row
}
SQLQueryRowContext QueryRow with Context
type SQLRow ¶
type SQLRow interface {
Scan(dest ...interface{}) error
}
SQLRow interface off *sql.Row
type SQLRows ¶
type SQLRows interface { Close() error ColumnTypes() ([]*sql.ColumnType, error) Columns() ([]string, error) Err() error Next() bool NextResultSet() bool Scan(dest ...interface{}) error }
SQLRows interface for *sql.Rows
type SQLStmt ¶
type SQLStmt interface { Close() error Exec(args ...interface{}) (sql.Result, error) ExecContext(ctx context.Context, args ...interface{}) (sql.Result, error) Query(args ...interface{}) (*sql.Rows, error) QueryContext(ctx context.Context, args ...interface{}) (*sql.Rows, error) QueryRow(args ...interface{}) *sql.Row QueryRowContext(ctx context.Context, args ...interface{}) *sql.Row }
SQLStmt interface for *sql.Stmt
type SQLStmtContext ¶
SQLStmtContext Stmt with Context
type SQLTx ¶
type SQLTx interface { Commit() error Exec(query string, args ...interface{}) (sql.Result, error) ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error) Prepare(query string) (*sql.Stmt, error) PrepareContext(ctx context.Context, query string) (*sql.Stmt, error) Query(query string, args ...interface{}) (*sql.Rows, error) QueryContext(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error) QueryRow(query string, args ...interface{}) *sql.Row QueryRowContext(ctx context.Context, query string, args ...interface{}) *sql.Row Rollback() error Stmt(stmt *sql.Stmt) *sql.Stmt StmtContext(ctx context.Context, stmt *sql.Stmt) *sql.Stmt }
SQLTx interface for *sql.Tx
type SetDeadline ¶
SetDeadline can set deadline
type SetReadDeadline ¶
SetReadDeadline can set readDeadline
type SetReadWriteDeadline ¶
type SetReadWriteDeadline interface { SetReadDeadline(t time.Time) error SetWriteDeadline(t time.Time) error }
SetReadWriteDeadline can set read and write deadline
type SetWriteDeadline ¶
SetWriteDeadline can set writeDeadline
type ShutdownContext ¶
ShutdownContext shutdown
type SysLogWriter ¶
type SysLogWriter interface { Alert(m string) error Close() error Crit(m string) error Debug(m string) error Emerg(m string) error Err(m string) error Info(m string) error Notice(m string) error Warning(m string) error Write(b []byte) (int, error) }
SysLogWriter interface of *syslog.Writer
type TarWriter ¶
type TarWriter interface { Close() error Flush() error Write(b []byte) (int, error) WriteHeader(hdr *tar.Header) error }
TarWriter interface of *tar.Writer
type XMLDecoder ¶
type XMLDecoder interface { Decode(v interface{}) error DecodeElement(v interface{}, start *xml.StartElement) error InputOffset() int64 RawToken() (xml.Token, error) Skip() error Token() (xml.Token, error) }
XMLDecoder interface of *xml.Decoder
type XMLEncoder ¶
type XMLEncoder interface { Encode(v interface{}) error EncodeElement(v interface{}, start xml.StartElement) error EncodeToken(t xml.Token) error Flush() error Indent(prefix, indent string) }
XMLEncoder interface of *xml.Encoder
type ZipFile ¶
type ZipFile interface { DataOffset() (offset int64, err error) Open() (io.ReadCloser, error) }
ZipFile interface of *zip.File
type ZipFileHeader ¶
type ZipFileHeader interface { FileInfo() os.FileInfo ModTime() time.Time Mode() (mode os.FileMode) SetModTime(t time.Time) SetMode(mode os.FileMode) }
ZipFileHeader interface of *zip.FileHeader
type ZipReader ¶
type ZipReader interface {
RegisterDecompressor(method uint16, dcomp zip.Decompressor)
}
ZipReader interface of *zip.Reader
type ZipWriter ¶
type ZipWriter interface { Close() error Create(name string) (io.Writer, error) CreateHeader(fh *zip.FileHeader) (io.Writer, error) Flush() error RegisterCompressor(method uint16, comp zip.Compressor) SetComment(comment string) error SetOffset(n int64) }
ZipWriter interface of *zip.Writer