Documentation ¶
Index ¶
- Variables
- func ConvertSQLNullBool(value string) reflect.Value
- func ConvertSQLNullFloat64(value string) reflect.Value
- func ConvertSQLNullInt64(value string) reflect.Value
- func ConvertSQLNullString(value string) reflect.Value
- func GenSymmetricKey(bits int) (k []byte, err error)
- func SchemaRegisterSQLNulls(d *schema.Decoder)
- type ChimithequeContextKey
- type NullTime
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Log is the general application logger Log *logrus.Logger // LogInternal is the application logger used to log fatal errors LogInternal *logrus.Logger // TokenSignKey is the JWT token signing key TokenSignKey []byte // Decoder is the form<>struct gorilla decoder Decoder *schema.Decoder // ProxyPath is the application proxy path if behind a proxy // "/"" by default ProxyPath string // ProxyURL is application base url // "http://localhost:8081" by default ProxyURL string // ApplicationFullURL is application full url // "http://localhost:8081" by default // "ProxyURL + ProxyPath" if behind a proxy ApplicationFullURL string // MailServerAddress is the SMTP server address // such as smtp.univ.fr MailServerAddress string // MailServerSender is the username used // to send mails MailServerSender string // MailServerPort is the SMTP server port MailServerPort string // MailServerUseTLS specify if a TLS SMTP connection // should be used MailServerUseTLS bool // MailServerTLSSkipVerify bypass the SMTP TLS verification MailServerTLSSkipVerify bool // Bundle is the i18n configuration bundle Bundle *i18n.Bundle // Localizer is the i18n translator Localizer *i18n.Localizer // BuildID is a compile time variable BuildID string )
Functions ¶
func ConvertSQLNullBool ¶
ConvertSQLNullBool converts a string into a NullBool
func ConvertSQLNullFloat64 ¶
ConvertSQLNullFloat64 converts a string into a NullFloat64
func ConvertSQLNullInt64 ¶
ConvertSQLNullInt64 converts a string into a NullInt64
func ConvertSQLNullString ¶
ConvertSQLNullString converts a string into a NullString
func GenSymmetricKey ¶
GenSymmetricKey generates a key for the JWT encryption https://github.com/northbright/Notes/blob/master/jwt/generate_hmac_secret_key_for_jwt.md
func SchemaRegisterSQLNulls ¶
SchemaRegisterSQLNulls registers the custom null type to the application
Types ¶
type ChimithequeContextKey ¶
type ChimithequeContextKey string
ChimithequeContextKey is the Go request context used in each request
Click to show internal directories.
Click to hide internal directories.