Documentation ¶
Index ¶
- type Client
- type Data
- type ErrorLog
- type LoggerWriter
- type RegistRequest
- func (z *RegistRequest) DecodeMsg(dc *msgp.Reader) (err error)
- func (z RegistRequest) EncodeMsg(en *msgp.Writer) (err error)
- func (z RegistRequest) MarshalMsg(b []byte) (o []byte, err error)
- func (z RegistRequest) Msgsize() (s int)
- func (z *RegistRequest) UnmarshalMsg(bts []byte) (o []byte, err error)
- type Task
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Data ¶
func (Data) MarshalMsg ¶
MarshalMsg implements msgp.Marshaler
type ErrorLog ¶
type ErrorLog struct { Level string `json:"level"` Timestamp string `json:"timestamp"` Source string `json:"source"` Plugin string `json:"plugin"` Msg string `json:"msg"` }
ErrorLog describes the log format sent to the server
type LoggerWriter ¶
type LoggerWriter struct {
Client *Client
}
LoggerWriter is an empty structure of log hook
type RegistRequest ¶
type RegistRequest struct { Pid uint32 `msg:"pid"` Name string `msg:"name"` Version string `msg:"version"` }
RegistRequest is used to describe the data structure of the plugin registration request
func (*RegistRequest) DecodeMsg ¶
func (z *RegistRequest) DecodeMsg(dc *msgp.Reader) (err error)
DecodeMsg implements msgp.Decodable
func (RegistRequest) EncodeMsg ¶
func (z RegistRequest) EncodeMsg(en *msgp.Writer) (err error)
EncodeMsg implements msgp.Encodable
func (RegistRequest) MarshalMsg ¶
func (z RegistRequest) MarshalMsg(b []byte) (o []byte, err error)
MarshalMsg implements msgp.Marshaler
func (RegistRequest) Msgsize ¶
func (z RegistRequest) Msgsize() (s int)
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (*RegistRequest) UnmarshalMsg ¶
func (z *RegistRequest) UnmarshalMsg(bts []byte) (o []byte, err error)
UnmarshalMsg implements msgp.Unmarshaler
type Task ¶
func (Task) MarshalMsg ¶
MarshalMsg implements msgp.Marshaler
Click to show internal directories.
Click to hide internal directories.