Documentation ¶
Index ¶
- Constants
- func BytesToString(b []byte) string
- func Compress(data []byte, compType CompressionType) []byte
- func Decompress(data []byte, compType CompressionType) []byte
- func FileExists(fileName string) (bool, error)
- func IsReadTimeoutError(err error) bool
- func IsTimeoutError(err error) bool
- func IsWriteTimeoutError(err error) bool
- func LoadClientCert(certFile, keyFile, caFile string, verifySsl bool) (config *tls.Config, err error)
- func LoadServerCert(certFile, keyFile, caFile string, verifySsl bool) (config *tls.Config, err error)
- func MaxDuration(a, b time.Duration) time.Duration
- func MaxFloat32(a, b float32) float32
- func MaxFloat64(a, b float64) float64
- func MaxInt(a, b int) int
- func MaxInt16(a, b int16) int16
- func MaxInt32(a, b int32) int32
- func MaxInt64(a, b int64) int64
- func MinDuration(a, b time.Duration) time.Duration
- func MinFloat32(a, b float32) float32
- func MinFloat64(a, b float64) float64
- func MinInt(a, b int) int
- func MinInt16(a, b int16) int16
- func MinInt32(a, b int32) int32
- func MinInt64(a, b int64) int64
- func NewLine() []byte
- func PathExists(path string) (bool, error)
- func PrepareFile(filename string) string
- func PreparePath(dir string) string
- func RecStartBytes() []byte
- func RecStopBytes() []byte
- type Chan
- func MakeChan(typ reflect.Type) *Chan
- func MakeChanBool() *Chan
- func MakeChanBuffered(typ reflect.Type, size int) *Chan
- func MakeChanBufferedBool(size int) *Chan
- func MakeChanBufferedByte(size int) *Chan
- func MakeChanBufferedByteArray(size int) *Chan
- func MakeChanBufferedFloat32(size int) *Chan
- func MakeChanBufferedFloat64(size int) *Chan
- func MakeChanBufferedInt(size int) *Chan
- func MakeChanBufferedInt16(size int) *Chan
- func MakeChanBufferedInt32(size int) *Chan
- func MakeChanBufferedInt64(size int) *Chan
- func MakeChanBufferedInt8(size int) *Chan
- func MakeChanBufferedString(size int) *Chan
- func MakeChanBufferedUint(size int) *Chan
- func MakeChanBufferedUint16(size int) *Chan
- func MakeChanBufferedUint32(size int) *Chan
- func MakeChanBufferedUint64(size int) *Chan
- func MakeChanBufferedUint8(size int) *Chan
- func MakeChanByte() *Chan
- func MakeChanByteArray() *Chan
- func MakeChanFloat32() *Chan
- func MakeChanFloat64() *Chan
- func MakeChanInt() *Chan
- func MakeChanInt16() *Chan
- func MakeChanInt32() *Chan
- func MakeChanInt64() *Chan
- func MakeChanInt8() *Chan
- func MakeChanString() *Chan
- func MakeChanUint() *Chan
- func MakeChanUint16() *Chan
- func MakeChanUint32() *Chan
- func MakeChanUint64() *Chan
- func MakeChanUint8() *Chan
- func (c *Chan) AssumeReceived()
- func (c *Chan) AssumeReceiving() bool
- func (c *Chan) Close() bool
- func (c *Chan) Closed() bool
- func (c *Chan) Kind() reflect.Kind
- func (c *Chan) Receive() (v reflect.Value, stat ChanActionStatus)
- func (c *Chan) ReceiveBool() (val bool, stat ChanActionStatus)
- func (c *Chan) ReceiveByte() (val byte, stat ChanActionStatus)
- func (c *Chan) ReceiveByteArray() (val []byte, stat ChanActionStatus)
- func (c *Chan) ReceiveFloat32() (val float32, stat ChanActionStatus)
- func (c *Chan) ReceiveFloat64() (val float64, stat ChanActionStatus)
- func (c *Chan) ReceiveInt() (val int, stat ChanActionStatus)
- func (c *Chan) ReceiveInt16() (val int16, stat ChanActionStatus)
- func (c *Chan) ReceiveInt32() (val int32, stat ChanActionStatus)
- func (c *Chan) ReceiveInt64() (val int64, stat ChanActionStatus)
- func (c *Chan) ReceiveInt8() (val int8, stat ChanActionStatus)
- func (c *Chan) ReceiveString() (val string, stat ChanActionStatus)
- func (c *Chan) ReceiveUint() (val uint, stat ChanActionStatus)
- func (c *Chan) ReceiveUint16() (val uint16, stat ChanActionStatus)
- func (c *Chan) ReceiveUint32() (val uint32, stat ChanActionStatus)
- func (c *Chan) ReceiveUint64() (val uint64, stat ChanActionStatus)
- func (c *Chan) ReceiveUint8() (val uint8, stat ChanActionStatus)
- func (c *Chan) Send(v reflect.Value) bool
- func (c *Chan) SendBool(val bool) bool
- func (c *Chan) SendByte(val byte) bool
- func (c *Chan) SendByteArray(val []byte) bool
- func (c *Chan) SendFloat32(val float32) bool
- func (c *Chan) SendFloat64(val float64) bool
- func (c *Chan) SendInt(val int) bool
- func (c *Chan) SendInt16(val int16) bool
- func (c *Chan) SendInt32(val int32) bool
- func (c *Chan) SendInt64(val int64) bool
- func (c *Chan) SendInt8(val int8) bool
- func (c *Chan) SendString(val string) bool
- func (c *Chan) SendUint(val uint) bool
- func (c *Chan) SendUint16(val uint16) bool
- func (c *Chan) SendUint32(val uint32) bool
- func (c *Chan) SendUint64(val uint64) bool
- func (c *Chan) SendUint8(val uint8) bool
- func (c *Chan) Size() int
- func (c *Chan) UnderlyingChan() *reflect.Value
- type ChanActionStatus
- type CompressionType
- type FileInfo
- type FileInfoList
- type JsonPath
- type JsonPathPart
- type JsonPathPartType
- type JsonPathType
- type LogType
- type ServiceMode
- type UUID
- type WorkGroup
Constants ¶
View Source
const ( In = "in" Out = "out" InOut = "inout" Publish = "PUBLISH" LPush = "LPUSH" RPush = "RPUSH" Subscribe = "SUBSCRIBE" PSubscribe = "PSUBSCRIBE" RPop = "RPOP" LPop = "LPOP" BrPop = "BRPOP" BlPop = "BLPOP" PSubscribechars = "*?[]" RecStart uint32 = 12345 RecStop uint32 = 54321 MinBufferSize = 8 * 1024 MaxBufferSize = 10 * 1024 * 1024 MinBufferCount = 10 MaxBufferCount = 1000 DefaultOutBulkCount = 50 MinLogSize = 2 * 1024 MaxLogSize = 10 * 1024 * 1024 DayAsSec = 60 * 60 * 24 DayAsMSec = DayAsSec * 1000 InvalidMessageSize = 1024 * 1024 ISO8601Time = "2006-01-02T15:04:05.999-07:00" TCPUDPMsgStart = "///*[" TCPUDPMsgEnd = "]*\\\\\\" Byte = 1 KByte = 1024 * Byte MByte = 1024 * KByte GByte = 1024 * MByte )
Variables ¶
This section is empty.
Functions ¶
func BytesToString ¶
func Compress ¶
func Compress(data []byte, compType CompressionType) []byte
func Decompress ¶
func Decompress(data []byte, compType CompressionType) []byte
func FileExists ¶
func IsReadTimeoutError ¶
func IsTimeoutError ¶
func IsWriteTimeoutError ¶
func LoadClientCert ¶
func LoadServerCert ¶
func MaxFloat32 ¶
func MaxFloat64 ¶
func MinFloat32 ¶
func MinFloat64 ¶
func PathExists ¶
func PrepareFile ¶
func PreparePath ¶
func RecStartBytes ¶
func RecStartBytes() []byte
func RecStopBytes ¶
func RecStopBytes() []byte
Types ¶
type Chan ¶
type Chan struct {
// contains filtered or unexported fields
}
func MakeChanBool ¶
func MakeChanBool() *Chan
func MakeChanBufferedBool ¶
func MakeChanBufferedByte ¶
func MakeChanBufferedFloat32 ¶
func MakeChanBufferedFloat64 ¶
func MakeChanBufferedInt ¶
func MakeChanBufferedInt16 ¶
func MakeChanBufferedInt32 ¶
func MakeChanBufferedInt64 ¶
func MakeChanBufferedInt8 ¶
func MakeChanBufferedString ¶
func MakeChanBufferedUint ¶
func MakeChanBufferedUint16 ¶
func MakeChanBufferedUint32 ¶
func MakeChanBufferedUint64 ¶
func MakeChanBufferedUint8 ¶
func MakeChanByte ¶
func MakeChanByte() *Chan
func MakeChanByteArray ¶
func MakeChanByteArray() *Chan
func MakeChanFloat32 ¶
func MakeChanFloat32() *Chan
func MakeChanFloat64 ¶
func MakeChanFloat64() *Chan
func MakeChanInt ¶
func MakeChanInt() *Chan
func MakeChanInt16 ¶
func MakeChanInt16() *Chan
func MakeChanInt32 ¶
func MakeChanInt32() *Chan
func MakeChanInt64 ¶
func MakeChanInt64() *Chan
func MakeChanInt8 ¶
func MakeChanInt8() *Chan
func MakeChanString ¶
func MakeChanString() *Chan
func MakeChanUint ¶
func MakeChanUint() *Chan
func MakeChanUint16 ¶
func MakeChanUint16() *Chan
func MakeChanUint32 ¶
func MakeChanUint32() *Chan
func MakeChanUint64 ¶
func MakeChanUint64() *Chan
func MakeChanUint8 ¶
func MakeChanUint8() *Chan
func (*Chan) AssumeReceived ¶
func (c *Chan) AssumeReceived()
func (*Chan) AssumeReceiving ¶
func (*Chan) ReceiveBool ¶
func (c *Chan) ReceiveBool() (val bool, stat ChanActionStatus)
func (*Chan) ReceiveByte ¶
func (c *Chan) ReceiveByte() (val byte, stat ChanActionStatus)
func (*Chan) ReceiveByteArray ¶
func (c *Chan) ReceiveByteArray() (val []byte, stat ChanActionStatus)
func (*Chan) ReceiveFloat32 ¶
func (c *Chan) ReceiveFloat32() (val float32, stat ChanActionStatus)
func (*Chan) ReceiveFloat64 ¶
func (c *Chan) ReceiveFloat64() (val float64, stat ChanActionStatus)
func (*Chan) ReceiveInt ¶
func (c *Chan) ReceiveInt() (val int, stat ChanActionStatus)
func (*Chan) ReceiveInt16 ¶
func (c *Chan) ReceiveInt16() (val int16, stat ChanActionStatus)
func (*Chan) ReceiveInt32 ¶
func (c *Chan) ReceiveInt32() (val int32, stat ChanActionStatus)
func (*Chan) ReceiveInt64 ¶
func (c *Chan) ReceiveInt64() (val int64, stat ChanActionStatus)
func (*Chan) ReceiveInt8 ¶
func (c *Chan) ReceiveInt8() (val int8, stat ChanActionStatus)
func (*Chan) ReceiveString ¶
func (c *Chan) ReceiveString() (val string, stat ChanActionStatus)
func (*Chan) ReceiveUint ¶
func (c *Chan) ReceiveUint() (val uint, stat ChanActionStatus)
func (*Chan) ReceiveUint16 ¶
func (c *Chan) ReceiveUint16() (val uint16, stat ChanActionStatus)
func (*Chan) ReceiveUint32 ¶
func (c *Chan) ReceiveUint32() (val uint32, stat ChanActionStatus)
func (*Chan) ReceiveUint64 ¶
func (c *Chan) ReceiveUint64() (val uint64, stat ChanActionStatus)
func (*Chan) ReceiveUint8 ¶
func (c *Chan) ReceiveUint8() (val uint8, stat ChanActionStatus)
func (*Chan) SendByteArray ¶
func (*Chan) SendFloat32 ¶
func (*Chan) SendFloat64 ¶
func (*Chan) SendString ¶
func (*Chan) SendUint16 ¶
func (*Chan) SendUint32 ¶
func (*Chan) SendUint64 ¶
func (*Chan) UnderlyingChan ¶
type ChanActionStatus ¶
type ChanActionStatus int
const ( ChanNotOK ChanActionStatus = iota ChanOK ChanError ChanClosed )
type FileInfoList ¶
type FileInfoList []*FileInfo
func (FileInfoList) Len ¶
func (f FileInfoList) Len() int
func (FileInfoList) Less ¶
func (f FileInfoList) Less(i, j int) bool
func (FileInfoList) Swap ¶
func (f FileInfoList) Swap(i, j int)
type JsonPath ¶
type JsonPath struct { Type JsonPathType Parts []JsonPathPart }
func NewJsonPath ¶
func (*JsonPath) EvalString ¶
type JsonPathPart ¶
type JsonPathPart struct { Data string Type JsonPathPartType Start int Len int }
func (*JsonPathPart) IsStatic ¶
func (jp *JsonPathPart) IsStatic() bool
func (*JsonPathPart) String ¶
func (jp *JsonPathPart) String() string
type JsonPathPartType ¶
type JsonPathPartType int
const ( JPPStatic JsonPathPartType = iota JPPDynamic )
func (JsonPathPartType) String ¶
func (jt JsonPathPartType) String() string
type JsonPathType ¶
type JsonPathType int
const ( JPStatic JsonPathType = iota JPComplex )
func (JsonPathType) String ¶
func (jt JsonPathType) String() string
Click to show internal directories.
Click to hide internal directories.