Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StreamServerInterceptor ¶
func StreamServerInterceptor(logger grpclog.LoggerV2) grpc.StreamServerInterceptor
func UnaryServerInterceptor ¶
func UnaryServerInterceptor(logger grpclog.LoggerV2) grpc.UnaryServerInterceptor
Types ¶
type Config ¶
type Config struct { Port int CertFile string CertKeyFile string Timeout uint Redis struct { Addr string Password string } Opts struct { Issuer string // Number of seconds a Code hash is valid for. Defaults to 30 seconds.s Period uint // Code Digits length. Available 6 or 8. Defaults to 6. Digits int // Generate code algorithm option. Available SHA1, SHA256, SHA512, MD5 algorithm. Defaults to SHA1. Algorithm string } }
Click to show internal directories.
Click to hide internal directories.