Documentation ¶
Index ¶
- type Entry
- func (e Entry) IsNil() bool
- func (e Entry) MarshalJSONObject(enc *gojay.Encoder)
- func (e Entry) NKeys() int
- func (e Entry) UnmarshalJSONObject(dec *gojay.Decoder, k string) error
- func (e Entry) WithField(name string, value interface{}) *Entry
- func (e Entry) WithFields(data map[string]interface{}) *Entry
- func (e Entry) WithTimeFormat(timeFormat string) *Entry
- func (e Entry) WithTimestamp() *Entry
- func (e Entry) WithVersion(version string) *Entry
- type Fields
- func (f Fields) IsNil() bool
- func (f Fields) MarshalJSONObject(enc *gojay.Encoder)
- func (f Fields) NKeys() int
- func (f Fields) UnmarshalJSONObject(dec *gojay.Decoder, k string) error
- func (f Fields) WithField(name string, value interface{}) *Entry
- func (f Fields) WithFields(data map[string]interface{}) *Entry
- func (f Fields) WithTimeFormat(timeFormat string) *Entry
- func (f Fields) WithTimestamp() *Entry
- func (f Fields) WithVersion(version string) *Entry
- type GojayJsonEncoder
- type HttpClient
- type JsonEncoder
- type SendItem
- type Sender
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Entry ¶
type Entry struct { Fields Fields Version string Timestamp *time.Time // contains filtered or unexported fields }
func (Entry) MarshalJSONObject ¶
func (Entry) UnmarshalJSONObject ¶
func (Entry) WithFields ¶
func (Entry) WithTimeFormat ¶
func (Entry) WithTimestamp ¶
func (Entry) WithVersion ¶
type Fields ¶
type Fields map[string]interface{}
func (Fields) MarshalJSONObject ¶
func (Fields) UnmarshalJSONObject ¶
func (Fields) WithFields ¶
func (Fields) WithTimeFormat ¶
func (Fields) WithTimestamp ¶
func (Fields) WithVersion ¶
type GojayJsonEncoder ¶
type GojayJsonEncoder struct{}
func NewGojayJsonEncoder ¶
func NewGojayJsonEncoder() *GojayJsonEncoder
type HttpClient ¶
type HttpClient struct { Host string HttpClient *http.Client JsonEncoder JsonEncoder }
func NewHttpClient ¶
func NewHttpClient(host string, httpClient *http.Client) *HttpClient
func (HttpClient) Send ¶
func (c HttpClient) Send(sendingItem SendItem) error
func (HttpClient) SendBytes ¶
func (c HttpClient) SendBytes(messageInBytes []byte) error
func (*HttpClient) SetJsonEncoder ¶
func (c *HttpClient) SetJsonEncoder(encoder JsonEncoder)
type JsonEncoder ¶
Click to show internal directories.
Click to hide internal directories.