Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( EOF = errors.New("lmq: message reached EOF") ErrDecode = errors.New("lmq: message decode error") DefaultDecoder = new(duplicator) )
View Source
var DefaultTimeout = 10 * time.Second
Functions ¶
func RegisterDecoder ¶
Types ¶
type Client ¶
type Client interface { Push(string, string, io.Reader) (*PushResponse, error) PushAll(string, string, io.Reader) (map[string]*PushResponse, error) Pull(string, time.Duration) (*Message, error) PullAny(string, time.Duration) (*Message, error) Reply(*Message, ReplyType) error Delete(string) error GetProperty(string) (*Property, error) UpdateProperty(string, *Property) error DeleteProperty(string) error GetDefaultProperty() ([]*DefaultProperty, error) SetDefaultProperty([]*DefaultProperty) error DeleteDefaultProperty() error }
type DecoderFunc ¶
func (DecoderFunc) Decode ¶
func (f DecoderFunc) Decode(b []byte, v interface{}) error
type DefaultProperty ¶
func (*DefaultProperty) MarshalJSON ¶
func (p *DefaultProperty) MarshalJSON() ([]byte, error)
func (*DefaultProperty) UnmarshalJSON ¶
func (p *DefaultProperty) UnmarshalJSON(b []byte) error
type Message ¶
type Property ¶
func NewProperty ¶
func NewProperty() *Property
func (*Property) MarshalJSON ¶
func (*Property) UnmarshalJSON ¶
type PushResponse ¶
type PushResponse struct {
Accum string `json:"accum"`
}
Click to show internal directories.
Click to hide internal directories.