Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareHashAndPassword ¶
CompareHashAndPassword compare a hashed password and a password
func ConvertLogLevelToMessage ¶
ConvertLogLevelToMessage LogLevelをメッセージ用表記に変更 nolint
func GenerateHashedPassword ¶
GenerateHashedPassword is generated from password
Types ¶
type ContextKey ¶
type ContextKey string
ContextKey コンテキストキー
const ( UUIDContextKey ContextKey = "uuid" LoggerContextKey ContextKey = "logger" )
UUIDContextKey UUIDのキー
type LogLevel ¶
type LogLevel int
LogLevel ログの出力レベル
func ConvertStringToLogLevel ¶
ConvertStringToLogLevel 文字列からログ出力レベルに変換する
type Logger ¶
type Logger interface { SetOutput(w io.Writer) SetLogger(logger *log.Logger) SetUUID(uuid string) Logger WithUUID(ctx context.Context) Logger Debug(format string, v ...interface{}) Info(format string, v ...interface{}) Warn(format string, v ...interface{}) Error(format string, v ...interface{}) }
Logger LoggerInterface
Click to show internal directories.
Click to hide internal directories.