Documentation ¶
Index ¶
- Variables
- func All(funs ...Func) (err eerrors.ErrorSlice)
- func AnyErr(errs ...error) (err error)
- func Atoi32(s string) (int32, error)
- func Bytes2Time(b []byte) (time.Time, int)
- func Chain(funs ...Func) (err error)
- func ChainWrites(dest io.Writer, buffers ...[]byte) (err error)
- func FileExists(path string) bool
- func IsDir(path string) bool
- func IsFile(path string) bool
- func KafkaConsumerMetrics(mregistry metrics.Registry, basename string) (collectors []prometheus.Collector)
- func KafkaProducerMetrics(mregistry metrics.Registry, basename string) (collectors []prometheus.Collector)
- func LsDir(path string) (res []string)
- func MakeDecryptSplit(secret *memguard.LockedBuffer) bufio.SplitFunc
- func MakeSignSplit(signpubkey *memguard.LockedBuffer) (signSplit bufio.SplitFunc)
- func NFields(s []byte, n int) (fields [][]byte, advance int)
- func NegotiateContentType(r *http.Request, serverOffers []string, defaultOffer string) string
- func NewTLSConfig(address, caFile, caPath, certFile, keyFile string, insecure bool, ...) (*tls.Config, error)
- func NewUidString() string
- func Parallel(funs ...Func) eerrors.ErrorSlice
- func PluginSplit(data []byte, atEOF bool) (advance int, token []byte, eoferr error)
- func PrintableUsASCII(s string) bool
- func Recover(r interface{}) error
- func RelpSplit(data []byte, atEOF bool) (advance int, token []byte, eoferr error)
- func SelectDecoder(coding string) *encoding.Decoder
- func Time2Bytes(t time.Time, dst []byte) []byte
- type AcceptSpec
- type CtxScanner
- type EncryptWriter
- type Func
- type Generator
- type MyULID
- func (uid MyULID) Compare(other MyULID) int
- func (uid MyULID) Equal(other MyULID) bool
- func (uid MyULID) Equals(other gotomic.Thing) bool
- func (uid MyULID) HashCode() uint32
- func (uid MyULID) Marshal() ([]byte, error)
- func (uid MyULID) MarshalJSON() ([]byte, error)
- func (uid MyULID) MarshalTo(dst []byte) (n int, err error)
- func (uid *MyULID) Size() int
- func (uid MyULID) String() string
- func (uid *MyULID) Unmarshal(data []byte) error
- func (uid *MyULID) UnmarshalJSON(data []byte) error
- type OFile
- type RecoverScanner
- type RefCount
- type Scanner
- type Semaphore
- type SigWriter
- type UIDString
Constants ¶
This section is empty.
Variables ¶
var NOW []byte = []byte("now")
var SP []byte = []byte(" ")
var ZeroULID = MyULID(string(zzz[:]))
ZeroULID is a zero ULID.
Functions ¶
func All ¶
func All(funs ...Func) (err eerrors.ErrorSlice)
All executes all the provided funcs and returns the errors.
func ChainWrites ¶
ChainWrites writes the provided buffers until an error is returned.
func FileExists ¶
func KafkaConsumerMetrics ¶
func KafkaConsumerMetrics(mregistry metrics.Registry, basename string) (collectors []prometheus.Collector)
func KafkaProducerMetrics ¶
func KafkaProducerMetrics(mregistry metrics.Registry, basename string) (collectors []prometheus.Collector)
func MakeDecryptSplit ¶
func MakeDecryptSplit(secret *memguard.LockedBuffer) bufio.SplitFunc
MakeDecryptSplit returns a split function that extracts and decrypts messages.
func MakeSignSplit ¶
func MakeSignSplit(signpubkey *memguard.LockedBuffer) (signSplit bufio.SplitFunc)
MakeSignSplit returns a split function that checks for message signatures.
func NegotiateContentType ¶
func NewTLSConfig ¶
func NewTLSConfig(address, caFile, caPath, certFile, keyFile string, insecure bool, confined bool) (*tls.Config, error)
NewTLSConfig builds and returns a TLS config from the provided parameters.
func NewUidString ¶
func NewUidString() string
NewUidString generates a ULID for the current time and serializes it to a string.
func Parallel ¶
func Parallel(funs ...Func) eerrors.ErrorSlice
Parallel executes the provided funcs in parallel and returns the errors
func PluginSplit ¶
PluginSplit is a split function used by plugins.
func PrintableUsASCII ¶
PrintableUsASCII returns true if the provided string is only composed by ASCII characters.
func SelectDecoder ¶
SelectDecoder returns a decoder from the provided coding string/
Types ¶
type AcceptSpec ¶
func ParseAccept ¶
func ParseAccept(headers []string) (specs []AcceptSpec)
func (*AcceptSpec) Inferior ¶
func (self *AcceptSpec) Inferior(other AcceptSpec) bool
func (*AcceptSpec) IsHalfWild ¶
func (spec *AcceptSpec) IsHalfWild() bool
func (*AcceptSpec) IsWild ¶
func (spec *AcceptSpec) IsWild() bool
func (*AcceptSpec) Match ¶
func (spec *AcceptSpec) Match(offer string) bool
func (*AcceptSpec) SubType ¶
func (spec *AcceptSpec) SubType() string
func (*AcceptSpec) Type ¶
func (spec *AcceptSpec) Type() string
type CtxScanner ¶
func (*CtxScanner) Buffer ¶
func (s *CtxScanner) Buffer(buf []byte, max int)
func (*CtxScanner) Bytes ¶
func (s *CtxScanner) Bytes() []byte
func (*CtxScanner) Err ¶
func (s *CtxScanner) Err() error
func (*CtxScanner) Scan ¶
func (s *CtxScanner) Scan() bool
func (*CtxScanner) Split ¶
func (s *CtxScanner) Split(f bufio.SplitFunc)
func (*CtxScanner) Text ¶
func (s *CtxScanner) Text() string
type EncryptWriter ¶
type EncryptWriter struct {
// contains filtered or unexported fields
}
func NewEncryptWriter ¶
func NewEncryptWriter(dest io.Writer, encryptkey *memguard.LockedBuffer) *EncryptWriter
func (*EncryptWriter) WriteMsgUnix ¶
func (*EncryptWriter) WriteWithHeader ¶
func (s *EncryptWriter) WriteWithHeader(header []byte, message []byte) (err error)
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
func NewGenerator ¶
func NewGenerator() *Generator
type MyULID ¶
type MyULID string
MyULID wraps ulid.ULID to allow protobuf marshaling.
func MustParseULID ¶
func ParseMyULID ¶
ParseMyULID parse a string into a ULID.
func (MyULID) MarshalJSON ¶
MarshalJSON marshals the ULID to JSON.
func (*MyULID) UnmarshalJSON ¶
UnmarshalJSON unmarshals the data into a ULID using JSON.
type OFile ¶
type OFile struct { Name string // contains filtered or unexported fields }
type RecoverScanner ¶
type RecoverScanner struct {
// contains filtered or unexported fields
}
func WithRecover ¶
func WithRecover(scanner Scanner) *RecoverScanner
func (*RecoverScanner) Buffer ¶
func (s *RecoverScanner) Buffer(buf []byte, max int)
func (*RecoverScanner) Bytes ¶
func (s *RecoverScanner) Bytes() []byte
func (*RecoverScanner) Err ¶
func (s *RecoverScanner) Err() error
func (*RecoverScanner) Scan ¶
func (s *RecoverScanner) Scan() (ret bool)
func (*RecoverScanner) Split ¶
func (s *RecoverScanner) Split(f bufio.SplitFunc)
func (*RecoverScanner) Text ¶
func (s *RecoverScanner) Text() string
type RefCount ¶
type RefCount struct {
// contains filtered or unexported fields
}
func NewRefCount ¶
func NewRefCount() *RefCount
type Scanner ¶
type Semaphore ¶
type Semaphore struct {
// contains filtered or unexported fields
}
func NewSemaphore ¶
type SigWriter ¶
type SigWriter struct {
// contains filtered or unexported fields
}
func NewSignatureWriter ¶
func NewSignatureWriter(dest io.Writer, privsignkey *memguard.LockedBuffer) *SigWriter
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package civil implements types for civil time, a time-zone-independent representation of time that follows the rules of the proleptic Gregorian calendar with exactly 24-hour days, 60-minute hours, and 60-second minutes.
|
Package civil implements types for civil time, a time-zone-independent representation of time that follows the rules of the proleptic Gregorian calendar with exactly 24-hour days, 60-minute hours, and 60-second minutes. |
Package ctrie provides an implementation of the Ctrie data structure, which is a concurrent, lock-free hash trie.
|
Package ctrie provides an implementation of the Ctrie data structure, which is a concurrent, lock-free hash trie. |
filetrie
Package ctrie provides an implementation of the Ctrie data structure, which is a concurrent, lock-free hash trie.
|
Package ctrie provides an implementation of the Ctrie data structure, which is a concurrent, lock-free hash trie. |
inttrie
Package ctrie provides an implementation of the Ctrie data structure, which is a concurrent, lock-free hash trie.
|
Package ctrie provides an implementation of the Ctrie data structure, which is a concurrent, lock-free hash trie. |
Package logging is a generated protocol buffer package.
|
Package logging is a generated protocol buffer package. |