Documentation ¶
Index ¶
- Constants
- func AddHostMapping(host, target string)
- func AddLocalOnly(expr string) (err error)
- func CopyN(dst io.Writer, src io.Reader, size int) (n int, err error)
- func DelHostMapping(host string)
- func DelLocalOnly(expr *regexp.Regexp)
- func DialServer(conf *Config) (ses net.Conn, err error)
- func FormatNS(raw float64) string
- func GetMappedHost(host string) string
- func IsLocalOnly(host string) bool
- func ListHostMapping() (mapping map[string]string)
- func ListLocalOnly() (list []*regexp.Regexp)
- func LoadLol(conf *Config) error
- func ParseLolFile(lolFile string)
- func PrintAcs()
- func ReadByte(r io.Reader) (rel byte, err error)
- func ReadFull(r io.Reader, buf []byte) error
- func Transfer(destination io.WriteCloser, source io.ReadCloser, flow string)
- type ACStream
- func (acs *ACStream) Close() error
- func (acs *ACStream) CloseR() error
- func (acs *ACStream) CloseW() error
- func (acs *ACStream) Destroy()
- func (acs *ACStream) Discard(n int) (discarded int, err error)
- func (acs *ACStream) Flush()
- func (acs *ACStream) LocalAddr() net.Addr
- func (acs *ACStream) Open() *ACStream
- func (acs *ACStream) Origin() interface{}
- func (acs *ACStream) Pick(n int) ([]byte, error)
- func (acs *ACStream) Read(buf []byte) (int, error)
- func (acs *ACStream) ReadLine() (line []byte, isPrefix bool, err error)
- func (acs *ACStream) Reader() *bufio.Reader
- func (acs *ACStream) RemoteAddr() net.Addr
- func (acs *ACStream) SetDeadline(t time.Time) error
- func (acs *ACStream) SetReadDeadline(t time.Time) error
- func (acs *ACStream) SetWriteDeadline(t time.Time) error
- func (acs *ACStream) Write(buf []byte) (int, error)
- func (acs *ACStream) Writer() *bufio.Writer
- type Config
- type Flusher
- type JournalReadWriter
Constants ¶
View Source
const ( K = float64(1024) M = 1024 * K G = 1024 * M )
Variables ¶
This section is empty.
Functions ¶
func AddHostMapping ¶
func AddHostMapping(host, target string)
func AddLocalOnly ¶
func DelHostMapping ¶
func DelHostMapping(host string)
func DelLocalOnly ¶
func GetMappedHost ¶
func IsLocalOnly ¶
func ListHostMapping ¶
func ListLocalOnly ¶
func ParseLolFile ¶
func ParseLolFile(lolFile string)
func Transfer ¶
func Transfer(destination io.WriteCloser, source io.ReadCloser, flow string)
Types ¶
type ACStream ¶
type ACStream struct { Index int // contains filtered or unexported fields }
func DialRemote ¶
func NewACS ¶
func NewACS(base io.ReadWriteCloser) *ACStream
func (*ACStream) RemoteAddr ¶
type Config ¶
type Config struct { HelloPageUrl string ServerName string LogFlags int LogOut io.Writer LogFile string Listen string Certificate string CertKey string ReadTimeout int IdleTimeout int WriteTimeout int LolFile string ServerMode bool Remote string HttpEnable bool CacheDir string LogChan chan interface{} Context context.Context SessionCacheDir string OnlyCacheRequest bool DecryptHttps bool CertCache string // contains filtered or unexported fields }
type JournalReadWriter ¶
type JournalReadWriter struct { io.ReadWriteCloser // contains filtered or unexported fields }
func NewJRW ¶
func NewJRW(origin io.ReadWriteCloser, readJournal, writerJournal string) (jrw *JournalReadWriter, err error)
func (*JournalReadWriter) Close ¶
func (jrw *JournalReadWriter) Close() (err error)
func (*JournalReadWriter) Flush ¶
func (jrw *JournalReadWriter) Flush()
Click to show internal directories.
Click to hide internal directories.