Documentation ¶
Index ¶
- Constants
- Variables
- func DebugInfo(msg string, v interface{})
- func ExtractMap(m map[string]string) string
- func FormatMapper(typ, id, name string) string
- func GetV1ResultBadRequest(msg string) *v1.Result
- func GetV1ResultInternalError(msg string) *v1.Result
- func GetV1ResultOK() *v1.Result
- func Hash32(text string) uint32
- func ParseSearchEngine(dsn string) (drive driver.Type, username, password string, urls []string, err error)
- func ResolveAddr() string
- func Search(slice sort.StringSlice, elem string) int
- func SliceAppend(slice sort.StringSlice, vals []string) sort.StringSlice
- func UUID(prefix string) string
- func Unique(slice sort.StringSlice) sort.StringSlice
- func UnixMilli() int64
- func UnwrapS(s string) string
- func WrapS(str string) string
- type ElapsedTime
- type ReEntryLock
- type Waiter
Constants ¶
View Source
const (
EtcdMapperPrefix = "core.mapper."
)
View Source
const RangeOutIndex = -1
Variables ¶
View Source
var ErrMaxStackDepthExceeded = errors.New("maximum stack depth exceeded")
Functions ¶
func ExtractMap ¶ added in v0.3.0
func FormatMapper ¶ added in v0.3.0
func GetV1ResultBadRequest ¶
func GetV1ResultOK ¶
func ParseSearchEngine ¶ added in v0.3.1
func ResolveAddr ¶ added in v0.4.1
func ResolveAddr() string
func SliceAppend ¶ added in v0.4.1
func SliceAppend(slice sort.StringSlice, vals []string) sort.StringSlice
func Unique ¶ added in v0.4.1
func Unique(slice sort.StringSlice) sort.StringSlice
Unique input order slice.
Types ¶
type ElapsedTime ¶ added in v0.3.1
type ElapsedTime struct {
// contains filtered or unexported fields
}
func NewElapsedFrom ¶ added in v0.4.1
func NewElapsedFrom(t time.Time) *ElapsedTime
NewElapsedFrom construct ElapsedTime from t.
func (*ElapsedTime) Elapsed ¶ added in v0.3.1
func (et *ElapsedTime) Elapsed() time.Duration
Elapsed returns elapsed duration.
func (*ElapsedTime) ElapsedMicro ¶ added in v0.3.1
func (et *ElapsedTime) ElapsedMicro() int64
ElapsedMicro returns elapsed microseconds.
func (*ElapsedTime) ElapsedMilli ¶ added in v0.3.1
func (et *ElapsedTime) ElapsedMilli() int64
ElapsedMill returns elapsed milliseconds.
func (*ElapsedTime) ElapsedNano ¶ added in v0.3.1
func (et *ElapsedTime) ElapsedNano() int64
ElapsedNano returns elapsed nanoseconds.
func (*ElapsedTime) ElapsedSecond ¶ added in v0.3.1
func (et *ElapsedTime) ElapsedSecond() int64
ElapsedSecond returns elapsed seconds.
func (*ElapsedTime) Reset ¶ added in v0.4.1
func (et *ElapsedTime) Reset() *ElapsedTime
type ReEntryLock ¶ added in v0.2.1
type ReEntryLock struct {
// contains filtered or unexported fields
}
ReEntryLock re-entry lock.
func NewReEntryLock ¶ added in v0.2.1
func NewReEntryLock(maxStackDepth int32) *ReEntryLock
func (*ReEntryLock) Lock ¶ added in v0.2.1
func (a *ReEntryLock) Lock(requestID *string) error
func (*ReEntryLock) Unlock ¶ added in v0.2.1
func (a *ReEntryLock) Unlock()
Source Files ¶
Click to show internal directories.
Click to hide internal directories.