Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type JSONLog ¶
type JSONLog struct { Log string `json:"log,omitempty"` Stream string `json:"stream,omitempty"` Created time.Time `json:"time"` }
func (*JSONLog) MarshalJSON ¶ added in v1.3.0
func (*JSONLog) MarshalJSONBuf ¶ added in v1.3.0
type JSONLogBytes ¶ added in v1.7.0
type JSONLogBytes struct { Log []byte `json:"log,omitempty"` Stream string `json:"stream,omitempty"` Created string `json:"time"` }
JSONLogBytes is based on JSONLog. It allows marshalling JSONLog from Log as []byte and an already marshalled Created timestamp.
func (*JSONLogBytes) MarshalJSONBuf ¶ added in v1.7.0
func (mj *JSONLogBytes) MarshalJSONBuf(buf *bytes.Buffer) error
MarshalJSONBuf is based on the same method from JSONLog It has been modified to take into account the necessary changes.
Click to show internal directories.
Click to hide internal directories.