Documentation ¶
Index ¶
- func Marshal(src Entry) ([]byte, error)
- func ReleaseEntry(e *Entry)
- func ReleaseResponse(r *Response)
- func Unmarshal(dst *Entry, data []byte) error
- type Cache
- func (c *Cache) Del(key string) error
- func (c *Cache) DelBytes(key []byte) error
- func (c *Cache) Get(key string, dst *Entry) error
- func (c *Cache) GetBytes(key []byte, dst *Entry) error
- func (c *Cache) Iterator() *bigcache.EntryInfoIterator
- func (c *Cache) Len() int
- func (c *Cache) Reset() error
- func (c *Cache) Set(key string, entry Entry) error
- func (c *Cache) SetBytes(key []byte, entry Entry) error
- type Config
- type Entry
- func (z *Entry) DecodeMsg(dc *msgp.Reader) (err error)
- func (e *Entry) DelResponse(path []byte)
- func (z *Entry) EncodeMsg(en *msgp.Writer) (err error)
- func (e Entry) GetAllResponses() []Response
- func (e Entry) GetResponse(path []byte) *Response
- func (e Entry) HasResponse(path []byte) bool
- func (e Entry) Len() int
- func (z *Entry) MarshalMsg(b []byte) (o []byte, err error)
- func (z *Entry) Msgsize() (s int)
- func (e *Entry) Reset()
- func (e *Entry) SetResponse(resp Response)
- func (z *Entry) UnmarshalMsg(bts []byte) (o []byte, err error)
- type Response
- func (z *Response) DecodeMsg(dc *msgp.Reader) (err error)
- func (z *Response) EncodeMsg(en *msgp.Writer) (err error)
- func (r *Response) HasHeader(k, v []byte) bool
- func (z *Response) MarshalMsg(b []byte) (o []byte, err error)
- func (z *Response) Msgsize() (s int)
- func (r *Response) Reset()
- func (r *Response) SetHeader(k, v []byte)
- func (z *Response) UnmarshalMsg(bts []byte) (o []byte, err error)
- type ResponseHeader
- func (z *ResponseHeader) DecodeMsg(dc *msgp.Reader) (err error)
- func (z *ResponseHeader) EncodeMsg(en *msgp.Writer) (err error)
- func (z *ResponseHeader) MarshalMsg(b []byte) (o []byte, err error)
- func (z *ResponseHeader) Msgsize() (s int)
- func (z *ResponseHeader) UnmarshalMsg(bts []byte) (o []byte, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Entry ¶
type Entry struct {
Responses []Response
}
Entry ...
func (*Entry) MarshalMsg ¶
MarshalMsg implements msgp.Marshaler
type Response ¶
type Response struct { Path []byte Body []byte Headers []ResponseHeader }
Response ...
func (*Response) MarshalMsg ¶
MarshalMsg implements msgp.Marshaler
type ResponseHeader ¶
ResponseHeader ...
func (*ResponseHeader) DecodeMsg ¶
func (z *ResponseHeader) DecodeMsg(dc *msgp.Reader) (err error)
DecodeMsg implements msgp.Decodable
func (*ResponseHeader) EncodeMsg ¶
func (z *ResponseHeader) EncodeMsg(en *msgp.Writer) (err error)
EncodeMsg implements msgp.Encodable
func (*ResponseHeader) MarshalMsg ¶
func (z *ResponseHeader) MarshalMsg(b []byte) (o []byte, err error)
MarshalMsg implements msgp.Marshaler
func (*ResponseHeader) Msgsize ¶
func (z *ResponseHeader) Msgsize() (s int)
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (*ResponseHeader) UnmarshalMsg ¶
func (z *ResponseHeader) UnmarshalMsg(bts []byte) (o []byte, err error)
UnmarshalMsg implements msgp.Unmarshaler
Click to show internal directories.
Click to hide internal directories.