Documentation ¶
Index ¶
- Variables
- func AddWriter(wn io.Writer)
- func BigLittleSwap(v uint) uint
- func ByteToUint32(data []byte, bigEndian bool) (ret uint32, err error)
- func ByteToUint32N(data []byte) (ret uint32, err error)
- func ByteToUint64N(data []byte) (ret uint64, err error)
- func CORS(w http.ResponseWriter, r *http.Request)
- func CurrentDir(path ...string) string
- func Exist(filename string) bool
- func GetFillBytes(data byte, n int) []byte
- func GetPCR(v uint64) uint64
- func GetPtsDts(v uint64) uint64
- func GetSlice(s int) []byte
- func GetUev(buff []byte, start int) (value int, pos int)
- func ListenAddrs(addr, addTLS, cert, key string, handler http.Handler)
- func ListenTCP(addr string, process func(net.Conn)) error
- func ListenUDP(address string, networkBuffer int) (*net.UDPConn, error)
- func MayBeError(info error) (hasError bool)
- func Print(v ...interface{})
- func Printf(format string, v ...interface{})
- func Println(v ...interface{})
- func PutPCR(pcr uint64) uint64
- func PutPtsDts(v uint64) uint64
- func ReadByteToUint16(r io.Reader, bigEndian bool) (data uint16, err error)
- func ReadByteToUint24(r io.Reader, bigEndian bool) (data uint32, err error)
- func ReadByteToUint32(r io.Reader, bigEndian bool) (data uint32, err error)
- func ReadByteToUint40(r io.Reader, bigEndian bool) (data uint64, err error)
- func ReadByteToUint48(r io.Reader, bigEndian bool) (data uint64, err error)
- func ReadByteToUint64(r io.Reader, bigEndian bool) (data uint64, err error)
- func ReadByteToUint8(r io.Reader) (data uint8, err error)
- func ReadFileLines(filename string) (lines []string, err error)
- func RecycleSlice(slice []byte)
- func ToFloat64(num interface{}) float64
- func Uint32ToByte(data uint32, bigEndian bool) (ret []byte, err error)
- func WriteUint16ToByte(w io.Writer, data uint16, bigEndian bool) error
- func WriteUint24ToByte(w io.Writer, data uint32, bigEndian bool) error
- func WriteUint32ToByte(w io.Writer, data uint32, bigEndian bool) error
- func WriteUint40ToByte(w io.Writer, data uint64, bigEndian bool) error
- func WriteUint48ToByte(w io.Writer, data uint64, bigEndian bool) error
- func WriteUint64ToByte(w io.Writer, data uint64, bigEndian bool) error
- func WriteUint8ToByte(w io.Writer, data uint8) error
- type Crc32Reader
- type Crc32Writer
- type Event
- type EventContext
- type IOVec
- type IOVecWriter
- type MultiLogWriter
- type SSE
- type SysIOVec
Constants ¶
This section is empty.
Variables ¶
View Source
var BigEndian bigEndian
BigEndian is the big-endian implementation of ByteOrder.
View Source
var Crc32_Table = []uint32{}/* 256 elements not displayed */
View Source
var LittleEndian littleEndian
Functions ¶
func BigLittleSwap ¶
func ByteToUint32 ¶
千万注意大小端,RTMP是大端
func CurrentDir ¶
func GetFillBytes ¶
func ListenAddrs ¶
ListenAddrs Listen http and https
func Printf ¶
func Printf(format string, v ...interface{})
Printf calls Output to print to the standard logger. Arguments are handled in the manner of fmt.Printf.
func Println ¶
func Println(v ...interface{})
Println calls Output to print to the standard logger. Arguments are handled in the manner of fmt.Println.
func ReadFileLines ¶
func RecycleSlice ¶
func RecycleSlice(slice []byte)
Types ¶
type Crc32Reader ¶
func (*Crc32Reader) ReadCrc32UIntAndCheck ¶
func (cr *Crc32Reader) ReadCrc32UIntAndCheck() (err error)
type Crc32Writer ¶
type EventContext ¶ added in v3.0.3
type IOVecWriter ¶
type IOVecWriter struct {
// contains filtered or unexported fields
}
func NewIOVecWriter ¶
func NewIOVecWriter(w io.Writer) (iow *IOVecWriter)
func (*IOVecWriter) Flush ¶
func (iow *IOVecWriter) Flush() error
type MultiLogWriter ¶
MultiLogWriter 多端写日志类
Source Files ¶
Click to show internal directories.
Click to hide internal directories.