util

package
v0.0.0-...-8e96a00 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 18, 2020 License: MIT Imports: 10 Imported by: 0

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
	}
}

func GetConfig

func GetConfig() *Config

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL