Documentation
¶
Index ¶
- func Contains(a interface{}, e interface{}) bool
- func CopyField(toValue, fromValue interface{}, fieldNames ...string) (err error)
- func GenerateSlug(str string) (slug string)
- func GetBytes(data interface{}) ([]byte, error)
- func GetFieldKind(obj interface{}, name string) reflect.Kind
- func GetFieldValue(obj interface{}, name string) interface{}
- func GetInterface(bts []byte, data interface{}) error
- func GetTimeInterval(spec string) (duration time.Duration, err error)
- func GetType(obj interface{}) string
- func GoroutineID() int
- func Indirect(reflectValue reflect.Value) reflect.Value
- func IndirectType(reflectType reflect.Type) reflect.Type
- func Intersect(a, b []string) []string
- func JsonToPb(b []byte, obj interface{}) error
- func PbToJSON(obj interface{}) ([]byte, error)
- func RegexpGetParams(regEx, url string) (paramsMap map[string]string)
- func RegexpMatch(regEx, url string) bool
- func VerifyJob(job *pb.Job) error
- type FanOutQueue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyField ¶
Copy field from a struct to another. if have fieldNames just copy this field, if not copy all same name field
func GenerateSlug ¶
func GetFieldKind ¶
func GetFieldValue ¶
func GetFieldValue(obj interface{}, name string) interface{}
func GetInterface ¶
func GetTimeInterval ¶ added in v0.2.6
func GoroutineID ¶ added in v0.2.6
func GoroutineID() int
func RegexpGetParams ¶
*
- Parses url with the given regular expression and returns the
- group values defined in the expression. *
func RegexpMatch ¶
Types ¶
type FanOutQueue ¶
type FanOutQueue struct {
// contains filtered or unexported fields
}
func (*FanOutQueue) FanOut ¶
func (f *FanOutQueue) FanOut()
func (*FanOutQueue) Sub ¶
func (f *FanOutQueue) Sub() chan struct{}
Click to show internal directories.
Click to hide internal directories.