writer

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 29, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithDebugMode

func WithDebugMode() *debug

WithDebugMode set the logs to show in terminal

func WithKafkaMode

func WithKafkaMode(broker []string, topic string) *kafkaW

WithKafkaMode send the logs to a kafka topic with the core.Message ToJSON() struct

func WithRabbitMode

func WithRabbitMode(queue, user, pass, host string, port int) *rabbitW

WithRabbitMode send the logs to a rabbitmq queue with the core.Message ToJSON() struct

func WithRestApiMode

func WithRestApiMode(url string, header http.Header, expectedStatus int) *restW

WithRestApiMode send the logs to a rest endpoint with ToJSON() struct

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL