Documentation ¶
Index ¶
- func Base64(s string) string
- func Base64Decode(s string) string
- func BrNow() time.Time
- func BuildTLSTransport(crtPath string, keyPath string, caPath string) (*http.Transport, error)
- func Decrypt(s string) string
- func DefaultHTTPClient() *http.Client
- func Duration(callback func()) (duration time.Duration)
- func Encrypt(s string) string
- func Get(url, body string, header map[string]string) (string, int, error)
- func HeaderToMap(h http.Header) map[string]string
- func Mod11(valueSequence string) string
- func NycNow() time.Time
- func PadLeft(value, char string, total uint) string
- func ParseJSON(s string, o interface{}) interface{}
- func Post(url, body string, header map[string]string) (string, int, error)
- func PostTLS(url, body string, header map[string]string, transport *http.Transport) (string, int, error)
- func RemoveDiacritics(s string) string
- func SeqLogConector(e *flow.ExchangeMessage, u flow.URI, params ...interface{}) error
- func Sha256(s string) string
- func Stringify(o interface{}) string
- func TlsConector(e *flow.ExchangeMessage, u flow.URI, params ...interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Base64Decode ¶
Base64Decode converte uma string base64 para uma string normal
func BuildTLSTransport ¶
BuildTLSTransport creates a TLS Client Transport from crt, ca and key files
func DefaultHTTPClient ¶
DefaultHTTPClient retorna um cliente http configurado para dar um skip na validação do certificado digital
func HeaderToMap ¶
HeaderToMap converte um http Header para um dicionário string -> string
func ParseJSON ¶
func ParseJSON(s string, o interface{}) interface{}
ParseJSON converte string para um objeto GO
func RemoveDiacritics ¶
RemoveDiacritics remove caracteres especiais de uma string
func SeqLogConector ¶
func SeqLogConector(e *flow.ExchangeMessage, u flow.URI, params ...interface{}) error
SeqLogConector é um connector flow para logar no Seq
func TlsConector ¶
func TlsConector(e *flow.ExchangeMessage, u flow.URI, params ...interface{}) error
TlsConector is a connector to send https request client certificate Params[0] *http.Transport (http.Transport configuration with certificate files config)
Types ¶
This section is empty.