Documentation
¶
Index ¶
- Constants
- Variables
- func Install()
- type Log
- func (l *Log) EndRobot()
- func (l *Log) Error(content interface{}, msg string)
- func (l *Log) ErrorBasicWithContent(msg, msgType string, content interface{})
- func (l *Log) ErrorWithBasic(msg, msgType string, err error)
- func (l *Log) ErrorWithContent(msg, msgType string, err error, content interface{})
- func (l *Log) Fatal(content interface{}, msg string)
- func (l *Log) GetBoleto(content interface{}, msgType string)
- func (l *Log) HandleMaskErrors(method string, messageType string, methodContent interface{})
- func (l *Log) Info(msg string)
- func (l *Log) InfoWithBasic(msg, msgType string, params map[string]interface{})
- func (l *Log) InfoWithParams(msg, msgType string, params map[string]interface{})
- func (l *Log) InitRobot(totalRecords int)
- func (l *Log) Request(content interface{}, url string, headers map[string]string)
- func (l *Log) RequestApplication(content interface{}, url string, headers map[string]string)
- func (l *Log) Response(content interface{}, url string, headers map[string]string)
- func (l *Log) ResponseApplication(content interface{}, url string, errorCode string)
- func (l *Log) ResponseApplicationFatal(content interface{}, url string, errorCode string)
- func (l *Log) ResumeRobot(key string)
- func (l *Log) Warn(content interface{}, msg string)
- type LogEntry
- type Safe
Constants ¶
const ( FailGetBoletoMessage = "Falha ao recuperar Boleto" SuccessGetBoletoMessage = "Boleto recuperado com sucesso" )
Variables ¶
var Operation string
Operation a operacao usada na API
var Recipient string
Recipient o nome do banco
Functions ¶
Types ¶
type Log ¶
type Log struct { Operation string Recipient string PayeeGuarantor string RequestKey string BankName string IPAddress string ServiceUser string NossoNumero string // contains filtered or unexported fields }
Log struct com os elementos do log
func (*Log) ErrorBasicWithContent ¶
ErrorBasicWithContent Cria um log de erro com as informações básicas e o conteúdo
func (*Log) ErrorWithBasic ¶
ErrorWithBasic Cria um log de erro com as informações básicas do log
func (*Log) ErrorWithContent ¶
FallbackErrorWithBasic Cria um log de erro com as informações básicas do log de fallback
func (*Log) HandleMaskErrors ¶
func (*Log) InfoWithBasic ¶
InfoWithBasic Cria um log de information com as informações básicas do log
func (*Log) InfoWithParams ¶
InfoWithParams cria log generico para um map
func (*Log) RequestApplication ¶
RequestApplication loga o request que chega na boleto api
func (*Log) ResponseApplication ¶
ResponseApplication loga o response que sai da boleto api
func (*Log) ResponseApplicationFatal ¶
ResponseApplicationFatal loga o response que sai do panic recovery
func (*Log) ResumeRobot ¶
ResumeRobot loga um resumo de Recovery do robô de recovery