{"modulePath":"github.com/Cosin/framework","version":"v0.0.0-20200411092139-678c32f7526f","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package queue\n\n## Functions\n\n```go\nfunc Close(k string) error\n```\n\n```go\nfunc Depth(k string) int64\n```\n\n```go\nfunc GetQueues() []string\n```\n\n```go\nfunc PauseRead(k string)\n```\n\n```go\nfunc Pop(k string) ([]byte, error)\n```\n\n```go\nfunc PopTimeout(k string, timeoutInSeconds time.Duration) ([]byte, error)\n```\n\n```go\nfunc Push(k string, v []byte) error\n```\n\n```go\nfunc ReadChan(k string) chan []byte\n```\n\n```go\nfunc Register(name string, h Queue)\n```\n\n```go\nfunc ResumeRead(k string)\n```\n\n## Types\n\n```go\ntype Queue interface {\n\tPush(string, []byte) error\n\tPop(string, time.Duration) ([]byte, error)\n\tReadChan(k string) chan []byte\n\tClose(string) error\n\tDepth(string) int64\n\tGetQueues() []string\n}\n```\n\n","path":"github.com/Cosin/framework/core/queue","name":"queue","synopsis":"","isRedistributable":true}
