Documentation ¶
Index ¶
- Variables
- func B(s string) (b []byte)
- func DecodeURI(src []byte) []byte
- func DecodeURIFormed(src []byte) []byte
- func EncodeHeaderValue(v []byte, buf *[]byte)
- func EncodeHeaderValueToBuf(v []byte, buf io.ByteWriter)
- func EncodeURI(v []byte, buf *[]byte)
- func EncodeURIComponent(v []byte, buf *[]byte)
- func EncodeURIComponentToBuf(v []byte, buf io.ByteWriter)
- func GetUnexportedField(field reflect.Value) interface{}
- func InPlaceTrimAsciiSpace(v []byte) []byte
- func MathRandSeed()
- func NewDigContainer(opts ...dig.Option) *_Dig
- func RandByte(pool []byte) byte
- func RandBytes(dist, pool []byte)
- func RecoverIf(fn func(interface{}) bool)
- func S(b []byte) string
- func SetUnexportedField(field reflect.Value, value interface{})
- type Buf
- type BufferPool
- type FixedSizeBufferPool
- type HashPool
- type IDTokenGenerator
- type KvItem
- type Kvs
- func (kvs *Kvs) Append(k string, v []byte) *KvItem
- func (kvs *Kvs) AppendBytes(k, v []byte) *KvItem
- func (kvs *Kvs) AppendString(k, v string) *KvItem
- func (kvs *Kvs) Cap() int
- func (kvs *Kvs) Del(k string)
- func (kvs *Kvs) EachItem(visitor func(item *KvItem) bool)
- func (kvs *Kvs) EachKey(visitor func(k []byte) bool)
- func (kvs *Kvs) EachValue(visitor func(v []byte) bool)
- func (kvs *Kvs) Get(k string) ([]byte, bool)
- func (kvs *Kvs) GetAll(k string) [][]byte
- func (kvs *Kvs) LoadAny(v interface{}) bool
- func (kvs *Kvs) LoadKvs(o *Kvs)
- func (kvs *Kvs) LoadMap(m MultiValueMap)
- func (kvs *Kvs) Reset()
- func (kvs *Kvs) Set(k string, v []byte) *KvItem
- func (kvs *Kvs) SetString(k, v string) *KvItem
- func (kvs *Kvs) Size() int
- func (kvs *Kvs) String() string
- type M
- type MultiValueMap
- type NamedFmt
- type TomlDuration
Constants ¶
This section is empty.
Variables ¶
View Source
var Base58BytesPool = []byte("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")
View Source
var Conf _ConfNamespace
View Source
var ErrBadHIDValue = errors.New("sha.utils: bad HID token value")
Functions ¶
func DecodeURIFormed ¶ added in v0.0.5
func EncodeHeaderValue ¶ added in v0.0.5
func EncodeHeaderValueToBuf ¶ added in v0.0.5
func EncodeHeaderValueToBuf(v []byte, buf io.ByteWriter)
func EncodeURIComponent ¶ added in v0.0.5
func EncodeURIComponentToBuf ¶ added in v0.0.5
func EncodeURIComponentToBuf(v []byte, buf io.ByteWriter)
func GetUnexportedField ¶ added in v0.0.5
func InPlaceTrimAsciiSpace ¶ added in v0.0.5
func MathRandSeed ¶
func MathRandSeed()
func NewDigContainer ¶
func SetUnexportedField ¶ added in v0.0.5
Types ¶
type BufferPool ¶
func NewBufferPoll ¶
func NewBufferPoll(maxSize int) *BufferPool
func (*BufferPool) Get ¶
func (pool *BufferPool) Get() *Buf
func (*BufferPool) Put ¶
func (pool *BufferPool) Put(buf *Buf)
type FixedSizeBufferPool ¶
type FixedSizeBufferPool struct { BufferPool // contains filtered or unexported fields }
func NewFixedSizeBufferPoll ¶
func NewFixedSizeBufferPoll(defaultSize, maxSize int) *FixedSizeBufferPool
func (*FixedSizeBufferPool) Put ¶
func (pool *FixedSizeBufferPool) Put(buf *Buf)
type IDTokenGenerator ¶
type IDTokenGenerator struct {
// contains filtered or unexported fields
}
func NewIDTokenGenerator ¶
func NewIDTokenGenerator(pool *HashPool) IDTokenGenerator
func (IDTokenGenerator) DecodeID ¶
func (g IDTokenGenerator) DecodeID(v string) (int64, int64, error)
func (IDTokenGenerator) EncodeID ¶
func (g IDTokenGenerator) EncodeID(v int64) string
type Kvs ¶
type Kvs struct {
// contains filtered or unexported fields
}
func (*Kvs) AppendBytes ¶
func (*Kvs) AppendString ¶ added in v0.0.5
func (*Kvs) LoadMap ¶ added in v0.0.5
func (kvs *Kvs) LoadMap(m MultiValueMap)
type MultiValueMap ¶ added in v0.0.5
type NamedFmt ¶
type NamedFmt struct { Args []string // contains filtered or unexported fields }
func NewNamedFmt ¶
type TomlDuration ¶
func (*TomlDuration) UnmarshalJSON ¶
func (d *TomlDuration) UnmarshalJSON(text []byte) error
func (*TomlDuration) UnmarshalText ¶
func (d *TomlDuration) UnmarshalText(text []byte) error
Click to show internal directories.
Click to hide internal directories.